Back to class index

Class Shader

Summary

Stores a compiled vertex or pixel shader program.

Member Reference

ShaderStores a compiled vertex or pixel shader program.
typeOne of NullShader, VertexShader or PixelShader.
filenameA human-readable string to identify this Shader object.
shaderHandleSpecifies the OPENGL ES handle to the compiled shader.
shaderVariables
ctorConstructs a null Shader object.
~dtor
LoadFromFile(...) (+2 overloads)
LoadFromString(...)
Deinit()Frees up all the resources used by this Shader, and makes this a null object.
Name()[const]
ReflectShaderCode(shaderData)Parses the shader code string and populates the found shader variables in it into shaderVariables list.
FromFile(...)[static] (+2 overloads)Loads a shader from a text file.
FromString(...)[static]
Back to class index