Minor clean up.

--HG--
branch : dev-stateful-drawable
This commit is contained in:
Martín Lucas Golini
2018-12-19 23:12:35 -03:00
parent af314e3015
commit c5bdea14b4
4 changed files with 14 additions and 2 deletions

View File

@@ -28,6 +28,10 @@ struct eeVertex {
/** @brief A batch rendering class. */
class EE_API BatchRenderer {
public:
static BatchRenderer * New();
static BatchRenderer * New( const unsigned int& Prealloc );
BatchRenderer();
virtual ~BatchRenderer();

View File

@@ -6,6 +6,14 @@
namespace EE { namespace Graphics {
BatchRenderer * BatchRenderer::New() {
return eeNew( BatchRenderer, ( ) );
}
BatchRenderer * BatchRenderer::New( const unsigned int& Prealloc ) {
return eeNew( BatchRenderer, ( Prealloc ) );
}
BatchRenderer::BatchRenderer() :
mVertex( NULL ),
mVertexSize( 0 ),

View File

@@ -27,7 +27,7 @@ Constraint * mMouseJoint;
void createJointAndBody() {
mMouseJoint = NULL;
mMouseBody = eeNew( Body, ( INFINITY, INFINITY ) );
mMouseBody = Body::New( INFINITY, INFINITY );
}
EE::Window::Window * mWindow;

View File

@@ -9,7 +9,7 @@ FrameBuffer * FBO = NULL;
// Controls that the rendering is only done when is needed, preventing redundant OpenGL API calls
// Usually the user will not need to use this class manually, since eepp controls this internally.
// The engine uses the singleton class GlobalBatchRenderer instance to render textures and primitives.
BatchRenderer * Batch = eeNew( BatchRenderer, () );
BatchRenderer * Batch = BatchRenderer::New();
Float ang = 0, scale = 1;
bool side = false;