Untitled Game engine no.5
1.0
|
Scene Component for passing drawing data to the renderer. Stores vertex data and references to the texture maps which they belong to. More...
#include <MeshRenderer.hpp>
Public Member Functions | |
void | SetMesh (const Ref< Mesh > &renderMesh) |
void | SetMap (const Ref< Texture > &tex) |
Public Attributes | |
Ref< ColorMap > | colorMap = nullptr |
Ref< TextureMap > | map = nullptr |
Ref< Texture > | texture = nullptr |
std::vector< Ref< Texture > > | vertexTextures = std::vector<Ref<Texture>>() |
Ref< Mesh > | mesh = nullptr |
Scene Component for passing drawing data to the renderer. Stores vertex data and references to the texture maps which they belong to.
Set the texture mapping of the renderer.
tex | the texture mapping |
Set the mesh of the renderer.
renderMesh | linked render mesh |
Ref<TextureMap> Engine::MeshRenderer::map = nullptr |
Texture coordinate mapping data indexed by mesh values.
Vertex data storage. Can be the only thing passed to the renderer, as it is where the data ends up overwriting.
Single texture reference for simple vertex rendering
Mapped texture references index by mesh values.