Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Public Member Functions | Private Attributes | List of all members
cqsp::engine::CQSPRenderInterface Class Reference

#include <rmlrenderinterface.h>

Inheritance diagram for cqsp::engine::CQSPRenderInterface:

Public Member Functions

 CQSPRenderInterface (Application &app)
 
 ~CQSPRenderInterface ()=default
 
void RenderGeometry (Rml::Vertex *vertices, int num_vertices, int *indices, int num_indices, Rml::TextureHandle texture, const Rml::Vector2f &translation) override
 
Rml::CompiledGeometryHandle CompileGeometry (Rml::Vertex *vertices, int num_vertices, int *indices, int num_indices, Rml::TextureHandle texture) override
 
void RenderCompiledGeometry (Rml::CompiledGeometryHandle geometry, const Rml::Vector2f &translation) override
 
void ReleaseCompiledGeometry (Rml::CompiledGeometryHandle geometry) override
 
void EnableScissorRegion (bool enable) override
 
void SetScissorRegion (int x, int y, int width, int height) override
 
bool LoadTexture (Rml::TextureHandle &texture_handle, Rml::Vector2i &texture_dimensions, const Rml::String &source) override
 
bool GenerateTexture (Rml::TextureHandle &texture_handle, const Rml::byte *source, const Rml::Vector2i &source_dimensions) override
 
void ReleaseTexture (Rml::TextureHandle texture) override
 
void SetTransform (const Rml::Matrix4f *transform) override
 
void PrepareRenderBuffer ()
 
void PresentRenderBuffer ()
 

Private Attributes

Applicationapp
 
asset::Shader vert_shader
 
asset::Shader frag_shader
 
asset::Shader texture_frag_shader
 
cqsp::asset::ShaderProgram_t color_shader
 
cqsp::asset::ShaderProgram_t texture_shader
 
bool m_transform_enabled = false
 
glm::mat4 m_transform_matrix = glm::mat4(1.0)
 
int counter = 0
 
std::shared_ptr< spdlog::logger > logger
 

Constructor & Destructor Documentation

◆ CQSPRenderInterface()

cqsp::engine::CQSPRenderInterface::CQSPRenderInterface ( Application app)
explicit

◆ ~CQSPRenderInterface()

cqsp::engine::CQSPRenderInterface::~CQSPRenderInterface ( )
default

Member Function Documentation

◆ CompileGeometry()

Rml::CompiledGeometryHandle cqsp::engine::CQSPRenderInterface::CompileGeometry ( Rml::Vertex *  vertices,
int  num_vertices,
int *  indices,
int  num_indices,
Rml::TextureHandle  texture 
)
override

◆ EnableScissorRegion()

void cqsp::engine::CQSPRenderInterface::EnableScissorRegion ( bool  enable)
override

◆ GenerateTexture()

bool cqsp::engine::CQSPRenderInterface::GenerateTexture ( Rml::TextureHandle &  texture_handle,
const Rml::byte *  source,
const Rml::Vector2i &  source_dimensions 
)
override

◆ LoadTexture()

bool cqsp::engine::CQSPRenderInterface::LoadTexture ( Rml::TextureHandle &  texture_handle,
Rml::Vector2i &  texture_dimensions,
const Rml::String &  source 
)
override

◆ PrepareRenderBuffer()

void cqsp::engine::CQSPRenderInterface::PrepareRenderBuffer ( )

◆ PresentRenderBuffer()

void cqsp::engine::CQSPRenderInterface::PresentRenderBuffer ( )

◆ ReleaseCompiledGeometry()

void cqsp::engine::CQSPRenderInterface::ReleaseCompiledGeometry ( Rml::CompiledGeometryHandle  geometry)
override

◆ ReleaseTexture()

void cqsp::engine::CQSPRenderInterface::ReleaseTexture ( Rml::TextureHandle  texture)
override

◆ RenderCompiledGeometry()

void cqsp::engine::CQSPRenderInterface::RenderCompiledGeometry ( Rml::CompiledGeometryHandle  geometry,
const Rml::Vector2f &  translation 
)
override

◆ RenderGeometry()

void cqsp::engine::CQSPRenderInterface::RenderGeometry ( Rml::Vertex *  vertices,
int  num_vertices,
int *  indices,
int  num_indices,
Rml::TextureHandle  texture,
const Rml::Vector2f &  translation 
)
override

◆ SetScissorRegion()

void cqsp::engine::CQSPRenderInterface::SetScissorRegion ( int  x,
int  y,
int  width,
int  height 
)
override

◆ SetTransform()

void cqsp::engine::CQSPRenderInterface::SetTransform ( const Rml::Matrix4f *  transform)
override

Member Data Documentation

◆ app

Application& cqsp::engine::CQSPRenderInterface::app
private

◆ color_shader

cqsp::asset::ShaderProgram_t cqsp::engine::CQSPRenderInterface::color_shader
private

◆ counter

int cqsp::engine::CQSPRenderInterface::counter = 0
private

◆ frag_shader

asset::Shader cqsp::engine::CQSPRenderInterface::frag_shader
private

◆ logger

std::shared_ptr<spdlog::logger> cqsp::engine::CQSPRenderInterface::logger
private

◆ m_transform_enabled

bool cqsp::engine::CQSPRenderInterface::m_transform_enabled = false
private

◆ m_transform_matrix

glm::mat4 cqsp::engine::CQSPRenderInterface::m_transform_matrix = glm::mat4(1.0)
private

◆ texture_frag_shader

asset::Shader cqsp::engine::CQSPRenderInterface::texture_frag_shader
private

◆ texture_shader

cqsp::asset::ShaderProgram_t cqsp::engine::CQSPRenderInterface::texture_shader
private

◆ vert_shader

asset::Shader cqsp::engine::CQSPRenderInterface::vert_shader
private

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