3 #include <Rocket/Core/RenderInterface.h>
5 #include "../gfx/Shader.h"
26 virtual void RenderGeometry(Rocket::Core::Vertex* vertices,
int num_vertices,
int* indices,
int num_indices, Rocket::Core::TextureHandle texture,
const Rocket::Core::Vector2f& translation);
29 virtual Rocket::Core::CompiledGeometryHandle CompileGeometry(Rocket::Core::Vertex* vertices,
int num_vertices,
int* indices,
int num_indices, Rocket::Core::TextureHandle texture);
32 virtual void RenderCompiledGeometry(Rocket::Core::CompiledGeometryHandle geometry,
const Rocket::Core::Vector2f& translation);
35 virtual void ReleaseCompiledGeometry(Rocket::Core::CompiledGeometryHandle geometry);
38 virtual void EnableScissorRegion(
bool enable);
41 virtual void SetScissorRegion(
int x,
int y,
int width,
int height);
44 virtual bool LoadTexture(Rocket::Core::TextureHandle& texture_handle, Rocket::Core::Vector2i& texture_dimensions,
const Rocket::Core::String& source);
47 virtual bool GenerateTexture(Rocket::Core::TextureHandle& texture_handle,
const u8* source,
const Rocket::Core::Vector2i& source_dimensions);
50 virtual void ReleaseTexture(Rocket::Core::TextureHandle texture_handle);
53 float GetHorizontalTexelOffset();
56 float GetVerticalTexelOffset();