|
| ProgramGL (std::string_view vertexShader, std::string_view fragmentShader) |
|
const std::vector< AttributeInfo > & | getAttributeInfos () const |
| Get attribute informations.
|
|
GLuint | getHandler () const |
| Get program object.
|
|
virtual UniformLocation | getUniformLocation (std::string_view uniform) const override |
| Get uniform location by name.
|
|
virtual UniformLocation | getUniformLocation (backend::Uniform name) const override |
| Get uniform location by engine built-in uniform enum name.
|
|
virtual int | getAttributeLocation (std::string_view name) const override |
| Get attribute location by attribute name.
|
|
virtual int | getAttributeLocation (Attribute name) const override |
| Get attribute location by engine built-in attribute enum name.
|
|
virtual int | getMaxVertexLocation () const override |
| Get maximum vertex location.
|
|
virtual int | getMaxFragmentLocation () const override |
| Get maximum fragment location.
|
|
virtual const hlookup::string_map< AttributeBindInfo > & | getActiveAttributes () const override |
| Get active vertex attributes.
|
|
virtual std::size_t | getUniformBufferSize (ShaderStage stage) const override |
| Get uniform buffer size in bytes that can hold all the uniforms.
|
|
virtual const hlookup::string_map< UniformInfo > & | getAllActiveUniformInfo (ShaderStage stage) const override |
| Get all uniformInfos.
|
|
std::string_view | getVertexShader () const |
| Get vertex shader.
|
|
std::string_view | getFragmentShader () const |
| Get fragment shader.
|
|
void | setupVertexLayout (VertexLayoutType vlt) |
| Sets the program shared vertex layout type, see: VertexLayoutType.
|
|
uint32_t | getProgramType () const |
| Get engine built-in program type.
|
|
uint64_t | getProgramId () const |
| Get program id.
|
|
void | retain () |
| Retains the ownership.
|
|
void | release () |
| Releases the ownership immediately.
|
|
Object * | autorelease () |
| Releases the ownership sometime soon automatically.
|
|
unsigned int | getReferenceCount () const |
| Returns the Object's current reference count.
|
|
virtual | ~Object () |
| Destructor.
|
|