mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +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:
@@ -29,19 +29,19 @@ cShape * cShapeGroup::Add( cShape * Shape ) {
|
||||
}
|
||||
|
||||
cShape * cShapeGroup::Add( const Uint32& TexId, const std::string& Name ) {
|
||||
return Add( new cShape( TexId, Name ) );
|
||||
return Add( eeNew( cShape, ( TexId, Name ) ) );
|
||||
}
|
||||
|
||||
cShape * cShapeGroup::Add( const Uint32& TexId, const eeRecti& SrcRect, const std::string& Name ) {
|
||||
return Add( new cShape( TexId, SrcRect, Name ) );
|
||||
return Add( eeNew( cShape, ( TexId, SrcRect, Name ) ) );
|
||||
}
|
||||
|
||||
cShape * cShapeGroup::Add( const Uint32& TexId, const eeRecti& SrcRect, const eeFloat& DestWidth, const eeFloat& DestHeight, const std::string& Name ) {
|
||||
return Add( new cShape( TexId, SrcRect, DestWidth, DestHeight, Name ) );
|
||||
return Add( eeNew ( cShape, ( TexId, SrcRect, DestWidth, DestHeight, Name ) ) );
|
||||
}
|
||||
|
||||
cShape * cShapeGroup::Add( const Uint32& TexId, const eeRecti& SrcRect, const eeFloat& DestWidth, const eeFloat& DestHeight, const eeFloat& OffsetX, const eeFloat& OffsetY, const std::string& Name ) {
|
||||
return Add( new cShape( TexId, SrcRect, DestWidth, DestHeight, OffsetX, OffsetY, Name ) );
|
||||
return Add( eeNew ( cShape, ( TexId, SrcRect, DestWidth, DestHeight, OffsetX, OffsetY, Name ) ) );
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user