1 #ifndef OPENGL_MEMORY_H
2 #define OPENGL_MEMORY_H
4 #include <OpenGl_tgl_all.hxx>
5 #include <Standard_TypeDef.hxx>
6 #include <NCollection_DataMap.hxx>
7 #include <NCollection_Stack.hxx>
8 #include <NCollection_List.hxx>
9 #include <NCollection_Array1.hxx>
10 #include <NCollection_Vector.hxx>
13 template <class XType> XType *cmn_resizemem( XType *ptr, Tint size )
15 size *= sizeof(XType);
17 ptr = (XType*)realloc( ptr, size );
20 fprintf(stderr, "Could not reallocate '%d'\
21 bytes of memory.\n", size);
27 class OpenGl_MemoryMgr {
30 OpenGl_MemoryMgr(const OpenGl_MemoryMgr&);
34 #endif //OPENGL_MEMORY_H