⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
Create and compile shader. More...
#include <ShaderModuleGL.h>
Inherits ShaderModule.
Public Member Functions | |
| ShaderModuleImpl (ShaderStage stage, std::string_view source) | |
| GLuint | getShader () const |
| Get shader object. | |
| Public Member Functions inherited from ShaderModule | |
| ShaderStage | getShaderStage () const |
| Get shader stage. | |
| Public Member Functions inherited from Object | |
| 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. | |
Additional Inherited Members | |
| Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
Create and compile shader.
| ShaderModuleImpl | ( | ShaderStage | stage, |
| std::string_view | source ) |
| stage | Specifies whether is vertex shader or fragment shader. |
| source | Specifies shader source. |
|
inline |
Get shader object.