mango-engine ~master (2016-12-01T15:09:30Z)
Dub
Repo
Shader
mango_engine
graphics
shader
Represents an individual Shader which can be added to a ShaderProgram.
abstract
class
Shader {
immutable
ShaderType
type
;
GameManager
game
[@property getter];
this
(GameManager game, string source, ShaderType type);
static
Shader
build
(GameManager game, string source, ShaderType type);
void
onShaderAdd
();
void
onShaderRemove
();
void
cleanup
();
}
Constructors
this
this
(GameManager game, string source, ShaderType type)
Undocumented in source.
Members
Functions
cleanup
void
cleanup
()
Undocumented in source.
onShaderAdd
void
onShaderAdd
()
Undocumented in source.
onShaderRemove
void
onShaderRemove
()
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
game
GameManager
game
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Static functions
build
Shader
build
(GameManager game, string source, ShaderType type)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
type
ShaderType
type
;
Undocumented in source.
Meta
Source
See Implementation
mango_engine
graphics
shader
classes
Shader
ShaderProgram
enums
ShaderType
Represents an individual Shader which can be added to a ShaderProgram.