CYIRenderSystem is a singleton class used to acquire global instances of a number of classes.
CYIRenderSystem can be initialized by calling Init() which will create instances of all of the referenced classes. If GetInstance() is called without calling Init() then a nullptr pointer will be returned.
#include <renderer/YiRenderSystem.h>
Public Member Functions | |
virtual | ~CYIRenderSystem () |
void | SetScreenFrameBufferBinding () |
const CYICapabilities * | GetCapabilities () const |
IYIMaterialFactory * | GetMaterialFactory () |
CYIMeshFactory * | GetMeshFactory () |
IYIBufferFactory * | GetBufferFactory () |
IYIRenderer * | GetSceneRenderer () |
Static Public Member Functions | |
static CYIRenderSystem * | GetInstance () |
|
strong |
Control the alpha blending rules of the graphics API.
|
strong |
|
strong |
Control the depth testing rules of the graphics API
|
strong |
Control stencil operations of the graphics API
|
strong |
|
virtual |
IYIBufferFactory* CYIRenderSystem::GetBufferFactory | ( | ) |
The buffer factory is the entry point for the creation of platform-specific buffer objects, such as vertex and index buffers.
const CYICapabilities* CYIRenderSystem::GetCapabilities | ( | ) | const |
Returns a pointer to the CYICapabilities class.
|
static |
Returns a pointer to the singleton class.
IYIMaterialFactory* CYIRenderSystem::GetMaterialFactory | ( | ) |
The material factory is the entry point for the creation of platform-specific objects related to materials, such as: textures, shaders, and related data.
CYIMeshFactory* CYIRenderSystem::GetMeshFactory | ( | ) |
The mesh factory is the entry point for convenience functions related to mesh creation.
IYIRenderer* CYIRenderSystem::GetSceneRenderer | ( | ) |
Returns the platform-specific renderer.
void CYIRenderSystem::SetScreenFrameBufferBinding | ( | ) |