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 | Public Attributes | List of all members
cqsp::engine::Renderable Class Reference

#include <renderable.h>

Public Member Functions

void SetTexture (const std::string &name, int id, asset::Texture *texture)
 
void SetMVP (const glm::mat4 &model, const glm::mat4 &view, const glm::mat4 &projection)
 

Public Attributes

Mesh_t mesh
 
glm::mat4 model
 
cqsp::asset::ShaderProgram_t shaderProgram
 
std::vector< asset::Texture * > textures
 
int z = 0
 

Member Function Documentation

◆ SetMVP()

void cqsp::engine::Renderable::SetMVP ( const glm::mat4 &  model,
const glm::mat4 &  view,
const glm::mat4 &  projection 
)

◆ SetTexture()

void cqsp::engine::Renderable::SetTexture ( const std::string &  name,
int  id,
asset::Texture texture 
)

Member Data Documentation

◆ mesh

Mesh_t cqsp::engine::Renderable::mesh

◆ model

glm::mat4 cqsp::engine::Renderable::model

◆ shaderProgram

cqsp::asset::ShaderProgram_t cqsp::engine::Renderable::shaderProgram

◆ textures

std::vector<asset::Texture*> cqsp::engine::Renderable::textures

◆ z

int cqsp::engine::Renderable::z = 0

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