mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-03 03:56:30 +03:00
Added Vertex Buffer support ( cVertexBuffer base class (interface), cVertexBufferOGL fallback if gpu doesn't support VBO's, cVertexBufferVBO uses ARB Vertex Buffer Object ).
Added a Memory Manager to trace memory leaks. Fixed some memory leaks detected with the new memory manager. Added an allocator for STL ( to use it with the custom allocation seted in the memory manager ). Fixed Makefiles ( i wroke them ).
This commit is contained in:
@@ -8,10 +8,10 @@ namespace EE { namespace Graphics {
|
||||
|
||||
cFrameBuffer * cFrameBuffer::CreateNew( const Uint32& Width, const Uint32& Height, bool DepthBuffer ) {
|
||||
if ( cFrameBufferFBO::IsSupported() )
|
||||
return new cFrameBufferFBO( Width, Height, DepthBuffer );
|
||||
return eeNew( cFrameBufferFBO, ( Width, Height, DepthBuffer ) );
|
||||
|
||||
if ( cFrameBufferPBuffer::IsSupported() )
|
||||
return new cFrameBufferPBuffer( Width, Height, DepthBuffer );
|
||||
return eeNew( cFrameBufferPBuffer, ( Width, Height, DepthBuffer ) );
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user