the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "MemoryTracker.h"
3class ByteBuffer;
4class IntBuffer;
5class FloatBuffer;
6using namespace std;
7
8/** Original comment
9 * This class is used so we can release all memory (allocated on the graphics card on shutdown)
10 */
11// 4J - all member functions in here were synchronized
12class MemoryTracker
13{
14private:
15 static unordered_map<int,int> GL_LIST_IDS;
16 static vector<int> TEXTURE_IDS;
17
18public:
19 static int genLists(int count);
20 static int genTextures();
21 static void releaseLists(int id);
22 static void releaseTextures();
23 static void release();
24 // 4J - note - have removed buffer types from here that we aren't using
25 static ByteBuffer *createByteBuffer(int size);
26 static IntBuffer *createIntBuffer(int size);
27 static FloatBuffer *createFloatBuffer(int size);
28};