19#include <RmlUi/Core.h>
20#include <spdlog/spdlog.h>
35 void RenderGeometry(Rml::Vertex* vertices,
int num_vertices,
int* indices,
int num_indices,
36 Rml::TextureHandle texture,
const Rml::Vector2f& translation)
override;
38 Rml::CompiledGeometryHandle
CompileGeometry(Rml::Vertex* vertices,
int num_vertices,
int* indices,
int num_indices,
39 Rml::TextureHandle texture)
override;
41 void RenderCompiledGeometry(Rml::CompiledGeometryHandle geometry,
const Rml::Vector2f& translation)
override;
49 bool LoadTexture(Rml::TextureHandle& texture_handle, Rml::Vector2i& texture_dimensions,
50 const Rml::String& source)
override;
52 bool GenerateTexture(Rml::TextureHandle& texture_handle,
const Rml::byte* source,
53 const Rml::Vector2i& source_dimensions)
override;
57 void SetTransform(
const Rml::Matrix4f* transform)
override;
78 std::shared_ptr<spdlog::logger>
logger;
Definition: application.h:47
Definition: rmlrenderinterface.h:30
void SetTransform(const Rml::Matrix4f *transform) override
Definition: rmlrenderinterface.cpp:269
asset::Shader vert_shader
Definition: rmlrenderinterface.h:67
void RenderGeometry(Rml::Vertex *vertices, int num_vertices, int *indices, int num_indices, Rml::TextureHandle texture, const Rml::Vector2f &translation) override
Definition: rmlrenderinterface.cpp:124
asset::Shader frag_shader
Definition: rmlrenderinterface.h:68
void ReleaseTexture(Rml::TextureHandle texture) override
Definition: rmlrenderinterface.cpp:265
asset::Shader texture_frag_shader
Definition: rmlrenderinterface.h:69
glm::mat4 m_transform_matrix
Definition: rmlrenderinterface.h:75
bool LoadTexture(Rml::TextureHandle &texture_handle, Rml::Vector2i &texture_dimensions, const Rml::String &source) override
Definition: rmlrenderinterface.cpp:226
void PrepareRenderBuffer()
Definition: rmlrenderinterface.cpp:283
CQSPRenderInterface(Application &app)
Definition: rmlrenderinterface.cpp:56
bool GenerateTexture(Rml::TextureHandle &texture_handle, const Rml::byte *source, const Rml::Vector2i &source_dimensions) override
Definition: rmlrenderinterface.cpp:253
int counter
Definition: rmlrenderinterface.h:77
void ReleaseCompiledGeometry(Rml::CompiledGeometryHandle geometry) override
Definition: rmlrenderinterface.cpp:200
bool m_transform_enabled
Definition: rmlrenderinterface.h:74
void RenderCompiledGeometry(Rml::CompiledGeometryHandle geometry, const Rml::Vector2f &translation) override
Definition: rmlrenderinterface.cpp:169
~CQSPRenderInterface()=default
cqsp::asset::ShaderProgram_t texture_shader
Definition: rmlrenderinterface.h:73
void SetScissorRegion(int x, int y, int width, int height) override
Definition: rmlrenderinterface.cpp:219
cqsp::asset::ShaderProgram_t color_shader
Definition: rmlrenderinterface.h:72
void PresentRenderBuffer()
Definition: rmlrenderinterface.cpp:285
std::shared_ptr< spdlog::logger > logger
Definition: rmlrenderinterface.h:78
Rml::CompiledGeometryHandle CompileGeometry(Rml::Vertex *vertices, int num_vertices, int *indices, int num_indices, Rml::TextureHandle texture) override
Definition: rmlrenderinterface.cpp:135
Application & app
Definition: rmlrenderinterface.h:66
void EnableScissorRegion(bool enable) override
Definition: rmlrenderinterface.cpp:204
std::shared_ptr< ShaderProgram > ShaderProgram_t
The preferred way of using a shader program.
Definition: shader.h:112
Definition: application.cpp:54