Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::libRocketKGERenderer Class Reference

#include <libRocketKGERenderer.h>

Public Member Functions

 libRocketKGERenderer ()
 Constructor.
 ~libRocketKGERenderer ()
 Destructor.
virtual void RenderGeometry (Rocket::Core::Vertex *vertices, int num_vertices, int *indices, int num_indices, Rocket::Core::TextureHandle texture, const Rocket::Core::Vector2f &translation)
 Called by Rocket when it wants to render geometry that it does not wish to optimise.
virtual
Rocket::Core::CompiledGeometryHandle 
CompileGeometry (Rocket::Core::Vertex *vertices, int num_vertices, int *indices, int num_indices, Rocket::Core::TextureHandle texture)
 Called by Rocket when it wants to compile geometry it believes will be static for the forseeable future.
virtual void RenderCompiledGeometry (Rocket::Core::CompiledGeometryHandle geometry, const Rocket::Core::Vector2f &translation)
 Called by Rocket when it wants to render application-compiled geometry.
virtual void ReleaseCompiledGeometry (Rocket::Core::CompiledGeometryHandle geometry)
 Called by Rocket when it wants to release application-compiled geometry.
virtual void EnableScissorRegion (bool enable)
 Called by Rocket when it wants to enable or disable scissoring to clip content.
virtual void SetScissorRegion (int x, int y, int width, int height)
 Called by Rocket when it wants to change the scissor region.
virtual bool LoadTexture (Rocket::Core::TextureHandle &texture_handle, Rocket::Core::Vector2i &texture_dimensions, const Rocket::Core::String &source)
 Called by Rocket when a texture is required by the library.
virtual bool GenerateTexture (Rocket::Core::TextureHandle &texture_handle, const u8 *source, const Rocket::Core::Vector2i &source_dimensions)
 Called by Rocket when a texture is required to be built from an internally-generated sequence of pixels.
virtual void ReleaseTexture (Rocket::Core::TextureHandle texture_handle)
 Called by Rocket when a loaded texture is no longer required.
float GetHorizontalTexelOffset ()
 Returns the native horizontal texel offset for the renderer.
float GetVerticalTexelOffset ()
 Returns the native vertical texel offset for the renderer.

Protected Attributes

gfx::VertexDecm_pVD
gfx::Materialm_pMat
gfx::ShaderHandle m_VshWVP
gfx::Texturem_pWhiteTexture

Detailed Description

Definition at line 15 of file libRocketKGERenderer.h.

Constructor & Destructor Documentation

kge::libRocketKGERenderer::libRocketKGERenderer ( )

Constructor.

kge::libRocketKGERenderer::~libRocketKGERenderer ( )

Destructor.

Member Function Documentation

virtual Rocket::Core::CompiledGeometryHandle kge::libRocketKGERenderer::CompileGeometry ( Rocket::Core::Vertex *  vertices,
int  num_vertices,
int *  indices,
int  num_indices,
Rocket::Core::TextureHandle  texture 
)
virtual

Called by Rocket when it wants to compile geometry it believes will be static for the forseeable future.

virtual void kge::libRocketKGERenderer::EnableScissorRegion ( bool  enable)
virtual

Called by Rocket when it wants to enable or disable scissoring to clip content.

virtual bool kge::libRocketKGERenderer::GenerateTexture ( Rocket::Core::TextureHandle &  texture_handle,
const u8 source,
const Rocket::Core::Vector2i &  source_dimensions 
)
virtual

Called by Rocket when a texture is required to be built from an internally-generated sequence of pixels.

float kge::libRocketKGERenderer::GetHorizontalTexelOffset ( )

Returns the native horizontal texel offset for the renderer.

float kge::libRocketKGERenderer::GetVerticalTexelOffset ( )

Returns the native vertical texel offset for the renderer.

virtual bool kge::libRocketKGERenderer::LoadTexture ( Rocket::Core::TextureHandle &  texture_handle,
Rocket::Core::Vector2i &  texture_dimensions,
const Rocket::Core::String &  source 
)
virtual

Called by Rocket when a texture is required by the library.

virtual void kge::libRocketKGERenderer::ReleaseCompiledGeometry ( Rocket::Core::CompiledGeometryHandle  geometry)
virtual

Called by Rocket when it wants to release application-compiled geometry.

virtual void kge::libRocketKGERenderer::ReleaseTexture ( Rocket::Core::TextureHandle  texture_handle)
virtual

Called by Rocket when a loaded texture is no longer required.

virtual void kge::libRocketKGERenderer::RenderCompiledGeometry ( Rocket::Core::CompiledGeometryHandle  geometry,
const Rocket::Core::Vector2f &  translation 
)
virtual

Called by Rocket when it wants to render application-compiled geometry.

virtual void kge::libRocketKGERenderer::RenderGeometry ( Rocket::Core::Vertex *  vertices,
int  num_vertices,
int *  indices,
int  num_indices,
Rocket::Core::TextureHandle  texture,
const Rocket::Core::Vector2f &  translation 
)
virtual

Called by Rocket when it wants to render geometry that it does not wish to optimise.

virtual void kge::libRocketKGERenderer::SetScissorRegion ( int  x,
int  y,
int  width,
int  height 
)
virtual

Called by Rocket when it wants to change the scissor region.

Member Data Documentation

gfx::Material* kge::libRocketKGERenderer::m_pMat
protected

Definition at line 61 of file libRocketKGERenderer.h.

gfx::VertexDec* kge::libRocketKGERenderer::m_pVD
protected

Definition at line 60 of file libRocketKGERenderer.h.

gfx::Texture* kge::libRocketKGERenderer::m_pWhiteTexture
protected

Definition at line 63 of file libRocketKGERenderer.h.

gfx::ShaderHandle kge::libRocketKGERenderer::m_VshWVP
protected

Definition at line 62 of file libRocketKGERenderer.h.


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