Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
ShaderModuleImpl Class Reference

Create and compile shader. More...

#include <ShaderModuleGL.h>

Inherits ShaderModule.

Public Member Functions

 ShaderModuleImpl (ShaderStage stage, Data &data)
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.
uint64_t getObjectID () const noexcept
 Returns the process-local diagnostic identifier assigned at construction.
virtual ~Object ()
 Destructor.

Detailed Description

Create and compile shader.

Constructor & Destructor Documentation

◆ ShaderModuleImpl()

ShaderModuleImpl ( ShaderStage stage,
Data & data )
Parameters
stageSpecifies whether is vertex shader or fragment shader.
sourceSpecifies shader source.

Member Function Documentation

◆ getShader()

GLuint getShader ( ) const
inline

Get shader object.

Returns
Shader object.

The documentation for this class was generated from the following file:
  • ShaderModuleGL.h