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.
Namespaces | Macros | Functions
modelloader.cpp File Reference
#include "engine/asset/modelloader.h"
#include <glad/glad.h>
#include <stb_image.h>
#include <cstddef>
#include <filesystem>
#include <memory>
#include <utility>
#include <vector>
#include "engine/graphics/mesh.h"
#include "engine/graphics/texture.h"

Namespaces

namespace  cqsp
 When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to find out how to add a resource to the game.
 
namespace  cqsp::asset
 

Macros

#define SET_MATERIAL_TEXTURES(part)
 

Functions

void cqsp::asset::GenerateMesh (engine::Mesh &mesh, std::vector< Vertex > vertices, std::vector< unsigned int > indices)
 
void cqsp::asset::LoadModelPrototype (ModelPrototype *prototype, Model *asset)
 
void cqsp::asset::LoadModelData (engine::Mesh *mesh, std::vector< Vertex > &vertices, std::vector< unsigned int > &indices)
 

Macro Definition Documentation

◆ SET_MATERIAL_TEXTURES

#define SET_MATERIAL_TEXTURES (   part)
Value:
for (auto&(part) : material_prototype.second.part) { \
material.part.push_back(texture_map[part]); \
}