Panda3D
Classes | Public Member Functions | Protected Member Functions

RocketRenderInterface Class Reference

Class that provides the main render interface for libRocket integration. More...

#include "rocketRenderInterface.h"

List of all members.

Classes

struct  CompiledGeometry

Public Member Functions

void render (Rocket::Core::Context *context, CullTraverser *trav)
 Called by RocketNode in cull_callback.

Protected Member Functions

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.
void EnableScissorRegion (bool enable)
 Called by Rocket when it wants to enable or disable scissoring to clip content.
bool GenerateTexture (Rocket::Core::TextureHandle &texture_handle, const Rocket::Core::byte *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.
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.
void ReleaseCompiledGeometry (Rocket::Core::CompiledGeometryHandle geometry)
 Called by Rocket when it wants to release application-compiled geometry.
void ReleaseTexture (Rocket::Core::TextureHandle texture_handle)
 Called by Rocket when a loaded texture is no longer required.
void RenderCompiledGeometry (Rocket::Core::CompiledGeometryHandle geometry, const Rocket::Core::Vector2f &translation)
 Called by Rocket when it wants to render application-compiled geometry.
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 the application does not wish to optimize.
void SetScissorRegion (int x, int y, int width, int height)
 Called by Rocket when it wants to change the scissor region.

Detailed Description

Class that provides the main render interface for libRocket integration.

Definition at line 32 of file rocketRenderInterface.h.


Member Function Documentation

Rocket::Core::CompiledGeometryHandle RocketRenderInterface::CompileGeometry ( Rocket::Core::Vertex *  vertices,
int  num_vertices,
int *  indices,
int  num_indices,
Rocket::Core::TextureHandle  texture 
) [protected]

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

Definition at line 164 of file rocketRenderInterface.cxx.

void RocketRenderInterface::EnableScissorRegion ( bool  enable) [protected]

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

Definition at line 301 of file rocketRenderInterface.cxx.

bool RocketRenderInterface::GenerateTexture ( Rocket::Core::TextureHandle &  texture_handle,
const Rocket::Core::byte *  source,
const Rocket::Core::Vector2i &  source_dimensions 
) [protected]

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

Definition at line 249 of file rocketRenderInterface.cxx.

References Texture::setup_2d_texture().

bool RocketRenderInterface::LoadTexture ( Rocket::Core::TextureHandle &  texture_handle,
Rocket::Core::Vector2i &  texture_dimensions,
const Rocket::Core::String &  source 
) [protected]

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

Definition at line 222 of file rocketRenderInterface.cxx.

References Filename::from_os_specific(), and TexturePool::load_texture().

void RocketRenderInterface::ReleaseCompiledGeometry ( Rocket::Core::CompiledGeometryHandle  geometry) [protected]

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

Definition at line 211 of file rocketRenderInterface.cxx.

void RocketRenderInterface::ReleaseTexture ( Rocket::Core::TextureHandle  texture_handle) [protected]

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

Definition at line 287 of file rocketRenderInterface.cxx.

References ReferenceCount::unref().

void RocketRenderInterface::render ( Rocket::Core::Context *  context,
CullTraverser trav 
)

Called by RocketNode in cull_callback.

Invokes context->Render() and culls the result.

Definition at line 39 of file rocketRenderInterface.cxx.

References CullTraverser::get_world_transform().

Referenced by RocketRegion::do_cull().

void RocketRenderInterface::RenderCompiledGeometry ( Rocket::Core::CompiledGeometryHandle  geometry,
const Rocket::Core::Vector2f &  translation 
) [protected]

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

Definition at line 198 of file rocketRenderInterface.cxx.

void RocketRenderInterface::RenderGeometry ( Rocket::Core::Vertex *  vertices,
int  num_vertices,
int *  indices,
int  num_indices,
Rocket::Core::TextureHandle  texture,
const Rocket::Core::Vector2f &  translation 
) [protected]

Called by Rocket when it wants to render geometry that the application does not wish to optimize.

Definition at line 144 of file rocketRenderInterface.cxx.

void RocketRenderInterface::SetScissorRegion ( int  x,
int  y,
int  width,
int  height 
) [protected]

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

Definition at line 312 of file rocketRenderInterface.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations