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::asset::Model Struct Reference

#include <model.h>

Inheritance diagram for cqsp::asset::Model:
cqsp::asset::Asset

Public Member Functions

void PostLoad (AssetManager &)
 
AssetType GetAssetType () override
 
void Draw (ShaderProgram_t shader)
 
void Draw ()
 
- Public Member Functions inherited from cqsp::asset::Asset
virtual ~Asset ()=default
 

Public Attributes

std::vector< ModelMesh_tmeshes
 
std::map< int, Materialmaterials
 
glm::vec3 scale
 
ShaderProgram_t shader
 
std::string shader_name
 
- Public Attributes inherited from cqsp::asset::Asset
std::string path
 
int accessed = 0
 

Member Function Documentation

◆ Draw() [1/2]

void cqsp::asset::Model::Draw ( )
inline

◆ Draw() [2/2]

void cqsp::asset::Model::Draw ( ShaderProgram_t  shader)
inline

◆ GetAssetType()

AssetType cqsp::asset::Model::GetAssetType ( )
inlineoverridevirtual

Implements cqsp::asset::Asset.

◆ PostLoad()

void cqsp::asset::Model::PostLoad ( AssetManager manager)
virtual

Reimplemented from cqsp::asset::Asset.

Member Data Documentation

◆ materials

std::map<int, Material> cqsp::asset::Model::materials

◆ meshes

std::vector<ModelMesh_t> cqsp::asset::Model::meshes

◆ scale

glm::vec3 cqsp::asset::Model::scale

◆ shader

ShaderProgram_t cqsp::asset::Model::shader

◆ shader_name

std::string cqsp::asset::Model::shader_name

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