Sha256: 6f81dac34981aa1361ab9dc0164487b3b266f6d8d0496e409c18a5320512c1f6

Contents?: true

Size: 1.47 KB

Versions: 16

Compression:

Stored size: 1.47 KB

Contents

// -*- c++ -*-
#pragma once
#ifndef __RAYS_SHADER_H__
#define __RAYS_SHADER_H__


#include <xot/pimpl.h>
#include <rays/defs.h>
#include <rays/coord.h>


namespace Rays
{


	class Image;


	class Shader
	{

		typedef Shader This;

		public:

			Shader (const char* source = NULL);

			~Shader ();

			void set_uniform (const char* name, int arg1);

			void set_uniform (const char* name, int arg1, int arg2);

			void set_uniform (const char* name, int arg1, int arg2, int arg3);

			void set_uniform (const char* name, int arg1, int arg2, int arg3, int arg4);

			void set_uniform (const char* name, const int* args, size_t size);

			void set_uniform (const char* name, float arg1);

			void set_uniform (const char* name, float arg1, float arg2);

			void set_uniform (const char* name, float arg1, float arg2, float arg3);

			void set_uniform (const char* name, float arg1, float arg2, float arg3, float arg4);

			void set_uniform (const char* name, const float* args, size_t size);

			void set_uniform (const char* name, const Coord2& vec2);

			void set_uniform (const char* name, const Coord3& vec3);

			void set_uniform (const char* name, const Coord4& vec4);

			void set_uniform (const char* name, const Image& texture);

			operator bool () const;

			bool operator ! () const;

			friend bool operator == (const This& lhs, const This& rhs);

			friend bool operator != (const This& lhs, const This& rhs);

			struct Data;

			Xot::PSharedImpl<Data> self;

	};// Shader


}// Rays


#endif//EOH

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rays-0.1.28 include/rays/shader.h
rays-0.1.27 include/rays/shader.h
rays-0.1.26 include/rays/shader.h
rays-0.1.25 include/rays/shader.h
rays-0.1.24 include/rays/shader.h
rays-0.1.23 include/rays/shader.h
rays-0.1.22 include/rays/shader.h
rays-0.1.21 include/rays/shader.h
rays-0.1.20 include/rays/shader.h
rays-0.1.19 include/rays/shader.h
rays-0.1.18 include/rays/shader.h
rays-0.1.17 include/rays/shader.h
rays-0.1.16 include/rays/shader.h
rays-0.1.15 include/rays/shader.h
rays-0.1.14 include/rays/shader.h
rays-0.1.13 include/rays/shader.h