Symphony Of Empires
|
A simple object - use these to store "simple" objects that MAY repeat. More...
#include <model.hpp>
Public Member Functions | |
SimpleModel (enum Eng3D::MeshMode _mode) | |
~SimpleModel ()=default | |
SimpleModel (const SimpleModel &)=delete | |
SimpleModel (SimpleModel &&) noexcept=default | |
SimpleModel & | operator= (const SimpleModel &)=delete |
virtual void | draw (const Eng3D::OpenGL::Program &shader, int instances=0) const |
Public Member Functions inherited from Eng3D::Mesh< glm::vec3, glm::vec2 > | |
Mesh (enum Eng3D::MeshMode _mode) | |
Mesh (const Mesh &)=delete | |
Mesh (Mesh &&) noexcept=default | |
virtual | ~Mesh ()=default |
Mesh & | operator= (const Mesh &)=delete |
void | draw (int instances=0) const |
virtual void | upload () const |
void | instancing (I &instances_buffer, int instances=0) |
Enables instances on this simple mesh. More... | |
Public Attributes | |
std::shared_ptr< Eng3D::Material > | material |
Public Attributes inherited from Eng3D::Mesh< glm::vec3, glm::vec2 > | |
std::vector< DataType > | buffer |
std::vector< unsigned int > | indices |
enum Eng3D::MeshMode | mode |
Additional Inherited Members | |
Public Types inherited from Eng3D::Mesh< glm::vec3, glm::vec2 > | |
using | DataType = Eng3D::MeshData< glm::vec3, glm::vec2, void > |
A simple object - use these to store "simple" objects that MAY repeat.
|
inline |
|
default |
|
delete |
|
defaultnoexcept |
|
virtual |
|
delete |
std::shared_ptr<Eng3D::Material> Eng3D::SimpleModel::material |