API Documentation
Static Public Member Functions | Public Attributes | List of all members
nkGraphics::RenderCommand Class Referencefinal

Describes a render command and provides the necessary information for it to happen. More...

Static Public Member Functions

static RenderCommand draw ()
 
static RenderCommand changeShader (Shader *shader)
 
static RenderCommand changeMesh (Mesh *mesh)
 
static RenderCommand prepareInstance (Entity *entity)
 

Public Attributes

Mesh_mesh = nullptr
 If necessary, the mesh to work with.
 
Shader_shader = nullptr
 If necessary, the shader to work with.
 
Entity_instance = nullptr
 If necessary, the instance to work with.
 
RENDER_COMMAND_TYPE _type = RENDER_COMMAND_TYPE::UNKNOWN
 Its type.
 

Detailed Description

Describes a render command and provides the necessary information for it to happen.

Member Function Documentation

◆ draw()

static RenderCommand nkGraphics::RenderCommand::draw ( )
static

Creates a drawing command.

Returns
The command requested.

◆ changeShader()

static RenderCommand nkGraphics::RenderCommand::changeShader ( Shader shader)
static

Creates a shader changing command.

Parameters
shaderThe shader to use.
Returns
The command requested.

◆ changeMesh()

static RenderCommand nkGraphics::RenderCommand::changeMesh ( Mesh mesh)
static

Creates a mesh changing command.

Parameters
meshThe mesh to use.
Returns
The command requested.

◆ prepareInstance()

static RenderCommand nkGraphics::RenderCommand::prepareInstance ( Entity entity)
static

Creates a prepare instance command.

Parameters
entityThe entity instance to use.
Returns
The command requested.

The documentation for this class was generated from the following file: