|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
The Class responsible for drawing the basic 3D Renderable objects onto the screen. More...
#include <renderable3d.h>


Public Member Functions | |
| Renderable3D (Transform transform, glm::vec4 color, Primitive3D primitive3d) | |
| Creates the renderable. More... | |
| Renderable3D (Transform transform, glm::vec4 color, Primitive3D primitive3d, Shader *shader) | |
| Creates the renderable. More... | |
| Renderable3D (Transform transform, glm::vec4 color, Primitive3D primitive3d, Shader *shader, Texture *texture) | |
| Creates the renderable. More... | |
| Renderable3D () | |
| Create a empty renderable. More... | |
| virtual | ~Renderable3D () |
| virtual void | submit (Renderer3D *renderer) const |
| Virtual overload of the submit function, customize the way you can submit the renderable to the renderer. More... | |
| const Transform & | getTransform () const |
| Gets the reference to the transform of the renderable object. More... | |
| const glm::vec4 & | getColor () const |
| Gets the reference to the color of the renderable object. More... | |
| const std::vector< glm::vec2 > & | getUV () const |
| Gets the reference to the texture coordinates of the renderable. More... | |
| const GLuint | getTID () const |
| Gets the texture ID of the texture being used by the renderable. More... | |
| const Primitive3D & | gerPrimitive () const |
| Gets the 3D primitive that is being rendered. More... | |
| std::vector< VertexData3D > | getVerts () const |
| Gets vertices of the 3d renderable. More... | |
| GLuint | getVertsSize () const |
| Gets the vertices count of the 3d renderable. More... | |
| std::vector< GLushort > | getInidces () const |
| Gets the indices of the 3d renderable. More... | |
| GLsizei | getIndicesSize () const |
| Gets the indices count of the 3d renderable. More... | |
Public Attributes | |
| std::uint32_t | objectID |
| The unique object ID of renderable object. More... | |
| Shader * | shader |
| The shader used to draw the renderable object. More... | |
| Texture * | m_Texture |
| The texture used to draw the renderable object. More... | |
Protected Attributes | |
| Transform | m_Transform |
| The transform of the object in 3D space. More... | |
| glm::vec4 | m_Color |
| Vertex color of the renderable. More... | |
| Primitive3D | m_Primitive3D |
| The basic primitive that is being rendered, (Does not denote the primitive used to render the 3d object) More... | |
| std::vector< glm::vec2 > | m_UV |
| The texture coordinates of the 3d renderable. More... | |
| std::vector< VertexData3D > | m_Vertices |
| The vertices pool of the 3d object. More... | |
| std::vector< GLushort > | m_Indices |
| The indices pool of the 3d object. More... | |
The Class responsible for drawing the basic 3D Renderable objects onto the screen.
Every 3D renderable object is derived from this class
|
inline |
Creates the renderable.
| transform | The Transform of the renderable |
| color | The color of the renderable |
| primitive3d | The primitive shape of the renderable |
|
inline |
Creates the renderable.
| transform | The Transform of the renderable |
| color | The color of the renderable The primitive shape of the renderable |
|
inline |
Creates the renderable.
| transform | The Transform of the renderable |
| color | The color of the renderable The primitive shape of the renderable |
|
inline |
Create a empty renderable.
|
inlinevirtual |
|
inline |
Gets the 3D primitive that is being rendered.
|
inline |
Gets the reference to the color of the renderable object.
|
inline |
Gets the indices count of the 3d renderable.
|
inline |
Gets the indices of the 3d renderable.
|
inline |
Gets the texture ID of the texture being used by the renderable.
|
inline |
Gets the reference to the transform of the renderable object.
|
inline |
Gets the reference to the texture coordinates of the renderable.
|
inline |
Gets vertices of the 3d renderable.
|
inline |
Gets the vertices count of the 3d renderable.
|
inlinevirtual |
Virtual overload of the submit function, customize the way you can submit the renderable to the renderer.
|
protected |
Vertex color of the renderable.
|
protected |
The indices pool of the 3d object.
|
protected |
The basic primitive that is being rendered, (Does not denote the primitive used to render the 3d object)
| Texture* fireworks::graphics::Renderable3D::m_Texture |
The texture used to draw the renderable object.
|
protected |
The transform of the object in 3D space.
|
mutableprotected |
The texture coordinates of the 3d renderable.
|
protected |
The vertices pool of the 3d object.
| std::uint32_t fireworks::graphics::Renderable3D::objectID |
The unique object ID of renderable object.
| Shader* fireworks::graphics::Renderable3D::shader |
The shader used to draw the renderable object.