/usr/include/oce/OpenGl_Memory.hxx is in liboce-visualization-dev 0.9.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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
|