14 #ifndef ROCKET_RENDER_INTERFACE_H 15 #define ROCKET_RENDER_INTERFACE_H 24 #include <Rocket/Core/RenderInterface.h> 34 struct CompiledGeometry {
39 PT(
Geom) make_geom(Rocket::Core::Vertex* vertices,
40 int num_vertices,
int* indices,
int num_indices,
41 GeomEnums::UsageHint uh,
const LVecBase2 &tex_scale);
42 void render_geom(
const Geom* geom,
const RenderState* state,
const Rocket::Core::Vector2f& translation);
44 void RenderGeometry(Rocket::Core::Vertex* vertices,
int num_vertices,
int* indices,
int num_indices, Rocket::Core::TextureHandle texture,
const Rocket::Core::Vector2f& translation);
45 Rocket::Core::CompiledGeometryHandle CompileGeometry(Rocket::Core::Vertex* vertices,
int num_vertices,
int* indices,
int num_indices, Rocket::Core::TextureHandle texture);
46 void RenderCompiledGeometry(Rocket::Core::CompiledGeometryHandle geometry,
const Rocket::Core::Vector2f& translation);
47 void ReleaseCompiledGeometry(Rocket::Core::CompiledGeometryHandle geometry);
49 bool LoadTexture(Rocket::Core::TextureHandle& texture_handle,
50 Rocket::Core::Vector2i& texture_dimensions,
51 const Rocket::Core::String& source);
52 bool GenerateTexture(Rocket::Core::TextureHandle& texture_handle,
53 const Rocket::Core::byte* source,
54 const Rocket::Core::Vector2i& source_dimensions);
55 void ReleaseTexture(Rocket::Core::TextureHandle texture_handle);
57 void EnableScissorRegion(
bool enable);
58 void SetScissorRegion(
int x,
int y,
int width,
int height);
71 Rocket::Core::Vector2i _dimensions;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A standard mutex, or mutual exclusion lock.
void render(Rocket::Core::Context *context, CullTraverser *trav)
Called by RocketNode in cull_callback.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A container for geometry primitives.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Class that provides the main render interface for libRocket integration.
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...