nw::gfx::RenderContext Class

Syntax

class RenderContext : public nw::gfx::GfxObject

Description

Class that stores information for controlling the render process.

Classes

nw::gfx::RenderContext::Builder Class for building render contexts.

Structures

nw::gfx::RenderContext::MaterialHash

Enumerated Types

Render Modes Render mode definition.
ResetStateMode Defines states to be reset.

typedef Definitions

VertexAttributeArray Array of vertex attributes.
AttributeScaleArray Array of scale values for vertex attributes.

Member Functions

Basic drawing functions
SetRenderTarget Sets the render target.
ResetState Initializes the rendering environment. We recommended calling this after rendering each frame.
ClearBuffer Clears a buffer.
GetRenderTarget Gets a render target.
ActivateContext Activates a context.
ActivateParticleContext Enables particle version context. You must call this if particles are enabled.
RenderPrimitive Renders a primitive.
Setting/Getting Render Contents
SetActiveCamera Activates the camera with the specified index.
GetActiveCamera Gets the currently active camera.
GetActiveCameraIndex Gets the currently active camera index.
SetCameraMatrix Sets the camera matrix.
NW_DEPRECATED_FUNCTION Deprecated to help speed processing.
SetModelMatrixForModel Sets the model matrix.
SetModelMatrixForSkeletalModel Sets the skeletal model matrix.
GetModelCache Gets a model cache.
GetMaterial Gets the material.
SetMaterial Sets a material.
GetMaterialCache Gets a material cache.
GetShaderProgram Gets a shader program.
GetSceneEnvironment Gets the environment set for the render context.
SetMaterialHash Gets a material hash.
GetMaterialHash Gets a material hash.
GetRenderMode Gets the rendering mode.
SetRenderMode Rendering Mode
IsShaderProgramDirty Gets the flag indicating whether the shader program is updated.
ActivateVertexAttribute Sets vertext attribute settings in the GPU.
DeactivateVertexAttribute Disables GPU vertex attributes.
Create/Destroy
Destroy Destroys an object.(Derived from GfxObject.)

Class Hierarchy

nw::gfx::GfxObject
  nw::gfx::RenderContext


CONFIDENTIAL