mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-10 00:31:20 +03:00
Minor clean up.
--HG-- branch : dev-stateful-drawable
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 ),
|
||||
|
||||
@@ -27,7 +27,7 @@ Constraint * mMouseJoint;
|
||||
|
||||
void createJointAndBody() {
|
||||
mMouseJoint = NULL;
|
||||
mMouseBody = eeNew( Body, ( INFINITY, INFINITY ) );
|
||||
mMouseBody = Body::New( INFINITY, INFINITY );
|
||||
}
|
||||
|
||||
EE::Window::Window * mWindow;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user