YAGE
1.0
Yet Another Game Engine
|
#include <Mesh.h>
Public Member Functions | |
Mesh (const aiMesh *, const aiMaterial *, Transform *) | |
Mesh (const Mesh *, Transform *) | |
~Mesh () | |
std::vector< VertexFormat > | GetVertices () override final |
void | Create () |
void | DrawShadow (GLuint) override final |
Draw shadows via the given shader. More... | |
void | Draw (GLuint) override final |
Draws via the given shader. More... | |
void | Update () override final |
Updates this object. More... | |
std::vector< glm::vec3 > | GetPositionVertices () |
![]() | |
Model () | |
Model (Transform *t) | |
virtual | ~Model () |
void | SetProgram (GLuint) override |
Sets the main shader program corresponding to this object. More... | |
void | SetShadowProgram (GLuint) override |
Sets the shadow pass shader program corresponding to this object. More... | |
void | Destroy () override |
Destroys this object. More... | |
GLuint | GetVao () const |
const std::vector< GLuint > & | GetVbos () const |
const GLuint | GetTexture (const std::string &) const override |
Gets a texture. More... | |
void | SetTexture (const std::string &textureName, const TextureType &textureType, const GLuint &texture) override |
Adds a texture to an object. More... | |
![]() | |
virtual | ~IGameObject () |
Destructor that deletes the unique shader program and shadow program belonging to the object. More... | |
virtual GLuint | GetProgram () |
Gets the object's main shader program. More... | |
virtual GLuint | GetShadowProgram () |
Gets the object's shadow program. More... | |
Public Attributes | |
float | shininess |
float | strength |
Additional Inherited Members | |
![]() | |
Transform * | transform |
GLuint | vao |
std::vector< GLuint > | vbos |
std::vector< Texture > | textures |
![]() | |
GLuint | program = 0 |
GLuint | shadowProgram = 0 |
Mesh::Mesh | ( | const aiMesh * | ai_mesh, |
const aiMaterial * | ai_mat, | ||
Transform * | transform | ||
) |
Mesh::~Mesh | ( | ) |
void Mesh::Create | ( | ) |
|
finaloverridevirtual |
|
finaloverridevirtual |
Draw shadows via the given shader.
Implements IGameObject.
std::vector< glm::vec3 > Mesh::GetPositionVertices | ( | ) |
|
finaloverridevirtual |
Implements Model.
|
finaloverridevirtual |
Updates this object.
Implements IGameObject.
float Mesh::shininess |
float Mesh::strength |