Shader.hpp
7 // In no event will the authors be held liable for any damages arising from the use of this software.
64 Fragment
140 bool loadFromFile(const std::string& vertexShaderFilename, const std::string& fragmentShaderFilename);
162 bool loadFromFile(const std::string& vertexShaderFilename, const std::string& geometryShaderFilename, const std::string& fragmentShaderFilename);
225 bool loadFromMemory(const std::string& vertexShader, const std::string& geometryShader, const std::string& fragmentShader);
288 bool loadFromStream(InputStream& vertexShaderStream, InputStream& geometryShaderStream, InputStream& fragmentShaderStream);
506 void setUniformArray(const std::string& name, const Glsl::Vec2* vectorArray, std::size_t length);
516 void setUniformArray(const std::string& name, const Glsl::Vec3* vectorArray, std::size_t length);
526 void setUniformArray(const std::string& name, const Glsl::Vec4* vectorArray, std::size_t length);
536 void setUniformArray(const std::string& name, const Glsl::Mat3* matrixArray, std::size_t length);
546 void setUniformArray(const std::string& name, const Glsl::Mat4* matrixArray, std::size_t length);
709 bool compile(const char* vertexShaderCode, const char* geometryShaderCode, const char* fragmentShaderCode);
Image living on the graphics card that can be used for drawing.
Definition: Texture.hpp:47
Utility template class for manipulating 3-dimensional vectors.
Definition: Vector3.hpp:37
Special type that can be passed to setUniform(), and that represents the texture of the object being ...
Definition: Shader.hpp:74
Utility class that makes any derived class non-copyable.
Definition: NonCopyable.hpp:41
static CurrentTextureType CurrentTexture
Represents the texture of the object being drawn.
Definition: Shader.hpp:82
Definition: AlResource.hpp:34