blob: bc03f8f552c8fa96a2b042a216bfb5b7168b3497 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef OPENGL_MEMORY_H
#define OPENGL_MEMORY_H
#include <OpenGl_tgl_all.hxx>
#include <Standard_TypeDef.hxx>
#include <NCollection_DataMap.hxx>
#include <NCollection_Stack.hxx>
#include <NCollection_List.hxx>
#include <NCollection_Array1.hxx>
#include <NCollection_Vector.hxx>
template <class XType> XType *cmn_resizemem( XType *ptr, Tint size )
{
size *= sizeof(XType);
ptr = (XType*)realloc( ptr, size );
if ( !ptr ) {
fprintf(stderr, "Could not reallocate '%d'\
bytes of memory.\n", size);
}
return ptr;
}
class OpenGl_MemoryMgr {
private:
OpenGl_MemoryMgr();
OpenGl_MemoryMgr(const OpenGl_MemoryMgr&);
~OpenGl_MemoryMgr();
};
#endif //OPENGL_MEMORY_H
|