TDME2 1.9.121
|
Batch renderer for transparent triangles. More...
#include <tdme/engine/subsystems/rendering/BatchRendererTriangles.h>
Public Member Functions | |
BatchRendererTriangles (Renderer *renderer, int32_t id) | |
Public constructor. More... | |
~BatchRendererTriangles () | |
Destructor. More... | |
bool | isAcquired () |
bool | acquire () |
Acquire. More... | |
void | release () |
Release. More... | |
void | initialize () |
Init. More... | |
void | dispose () |
Dispose. More... | |
Private Member Functions | |
void | clear () |
Clears this batch vbo renderer. More... | |
void | render () |
Render. More... | |
bool | addVertex (const Vector3 &vertex, const Vector3 &normal, const Vector2 &textureCoordinate) |
Adds a vertex to this transparent render faces group. More... | |
Private Attributes | |
Renderer * | renderer { nullptr } |
vector< int32_t > * | vboIds { nullptr } |
int32_t | id |
bool | acquired |
int32_t | vertices |
ByteBuffer * | fbModelMatricesByteBuffer { nullptr } |
FloatBuffer | fbModelMatrices |
ByteBuffer * | fbEffectColorMulsByteBuffer { nullptr } |
FloatBuffer | fbEffectColorMuls |
ByteBuffer * | fbEffectColorAddsByteBuffer { nullptr } |
FloatBuffer | fbEffectColorAdds |
ByteBuffer * | fbVerticesByteBuffer { nullptr } |
FloatBuffer | fbVertices |
ByteBuffer * | fbNormalsByteBuffer { nullptr } |
FloatBuffer | fbNormals |
ByteBuffer * | fbTextureCoordinatesByteBuffer { nullptr } |
FloatBuffer | fbTextureCoordinates |
Static Private Attributes | |
static constexpr int32_t | TRIANGLE_COUNT { 1024 } |
static constexpr int32_t | VERTEX_COUNT { TRIANGLE_COUNT * 3 } |
Friends | |
class | TransparentRenderFacesGroup |
Batch renderer for transparent triangles.
Definition at line 37 of file BatchRendererTriangles.h.
BatchRendererTriangles | ( | Renderer * | renderer, |
int32_t | id | ||
) |
Public constructor.
renderer | renderer |
id | id |
Definition at line 32 of file BatchRendererTriangles.cpp.
Destructor.
Definition at line 49 of file BatchRendererTriangles.cpp.
bool acquire | ( | ) |
Acquire.
Definition at line 64 of file BatchRendererTriangles.cpp.
|
inlineprivate |
Adds a vertex to this transparent render faces group.
vertex | vertex |
normal | normal |
textureCoordinate | texture coordinate |
Definition at line 79 of file BatchRendererTriangles.h.
|
private |
Clears this batch vbo renderer.
Definition at line 138 of file BatchRendererTriangles.cpp.
void dispose | ( | ) |
Dispose.
Definition at line 130 of file BatchRendererTriangles.cpp.
void initialize | ( | ) |
Init.
Definition at line 78 of file BatchRendererTriangles.cpp.
bool isAcquired | ( | ) |
Definition at line 59 of file BatchRendererTriangles.cpp.
void release | ( | ) |
Release.
Definition at line 73 of file BatchRendererTriangles.cpp.
|
private |
Render.
Definition at line 88 of file BatchRendererTriangles.cpp.
|
friend |
Definition at line 39 of file BatchRendererTriangles.h.
|
private |
Definition at line 47 of file BatchRendererTriangles.h.
|
private |
Definition at line 54 of file BatchRendererTriangles.h.
|
private |
Definition at line 53 of file BatchRendererTriangles.h.
|
private |
Definition at line 52 of file BatchRendererTriangles.h.
|
private |
Definition at line 51 of file BatchRendererTriangles.h.
|
private |
Definition at line 50 of file BatchRendererTriangles.h.
|
private |
Definition at line 49 of file BatchRendererTriangles.h.
|
private |
Definition at line 58 of file BatchRendererTriangles.h.
|
private |
Definition at line 57 of file BatchRendererTriangles.h.
|
private |
Definition at line 60 of file BatchRendererTriangles.h.
|
private |
Definition at line 59 of file BatchRendererTriangles.h.
|
private |
Definition at line 56 of file BatchRendererTriangles.h.
|
private |
Definition at line 55 of file BatchRendererTriangles.h.
|
private |
Definition at line 46 of file BatchRendererTriangles.h.
|
private |
Definition at line 44 of file BatchRendererTriangles.h.
|
staticconstexprprivate |
Definition at line 42 of file BatchRendererTriangles.h.
|
private |
Definition at line 45 of file BatchRendererTriangles.h.
|
staticconstexprprivate |
Definition at line 43 of file BatchRendererTriangles.h.
|
private |
Definition at line 48 of file BatchRendererTriangles.h.