Euphoria
|
compiledmesh.h
Go to the documentation of this file.
Definition: button.h:15
std::shared_ptr< CompiledMesh > compile_mesh(const core::Mesh &mesh, MaterialShaderCache *shader_cache, TextureCache *texture_cache, const io::DirPath &texture_folder, const std::string &debug_name)
Definition: compiledmesh.cc:231
Definition: enum.h:54
Definition: mesh.h:101
Definition: vfs_path.h:67
bool validate() const
Asks the shader if all the textures are set, and if more than necessary are set.
Definition: compiledmesh.cc:109
void apply(const mat4f &model_matrix, const mat4f &projection_matrix, const mat4f &view_matrix, const vec3f &camera, const Light &light) const
Definition: compiledmesh.cc:51
void load_default_materials_from_shader(TextureCache *cache)
Gets the default materials from the shader if they are null/not set.
Definition: compiledmesh.cc:93
std::map< core::EnumValue, std::shared_ptr< Texture2 > > textures
Definition: compiledmesh.h:48
std::shared_ptr< MaterialShader > shader
Definition: compiledmesh.h:47
CompiledMeshMaterial()
Definition: compiledmesh.cc:25
void set_texture(const core::EnumValue &name, std::shared_ptr< Texture2 > texture)
Definition: compiledmesh.cc:36
Definition: compiledmesh.h:29
std::vector< std::shared_ptr< CompiledMeshPart > > parts
Definition: compiledmesh.h:83
std::vector< CompiledMeshMaterial > materials
Definition: compiledmesh.h:84
void render(const mat4f &model_matrix, const mat4f &projection_matrix, const mat4f &view_matrix, const vec3f &camera, const Light &light, const std::shared_ptr< MaterialOverride > &overridden_materials)
Definition: compiledmesh.cc:359
Definition: light.h:18
Stores what the data in the vertex_buffer is and how it is laid out/used Represents a OpenGL Vertex A...
Definition: buffer.h:34
Definition: texturecache.h:18