the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3
4
5const int GL_BYTE = 0;
6const int GL_FLOAT = 0;
7const int GL_UNSIGNED_BYTE = 0;
8
9const int GL_COLOR_ARRAY = 0;
10const int GL_VERTEX_ARRAY = 0;
11const int GL_NORMAL_ARRAY = 0;
12const int GL_TEXTURE_COORD_ARRAY = 0;
13
14const int GL_COMPILE = 0;
15
16const int GL_NORMALIZE = 0;
17
18const int GL_RESCALE_NORMAL = 0;
19
20
21
22const int GL_SMOOTH = 0;
23const int GL_FLAT = 0;
24
25
26
27const int GL_RGBA = 0;
28const int GL_BGRA = 1;
29const int GL_BGR = 0;
30
31const int GL_SAMPLES_PASSED_ARB = 0;
32const int GL_QUERY_RESULT_AVAILABLE_ARB = 0;
33const int GL_QUERY_RESULT_ARB = 0;
34
35const int GL_POLYGON_OFFSET_FILL = 0;
36
37const int GL_FRONT = 0;
38const int GL_BACK = 1;
39const int GL_FRONT_AND_BACK = 2;
40
41const int GL_COLOR_MATERIAL = 0;
42
43const int GL_AMBIENT_AND_DIFFUSE = 0;
44
45const int GL_TEXTURE1 = 0;
46const int GL_TEXTURE0 = 1;
47
48void glFlush();
49void glTexGeni(int,int,int);
50void glTexGen(int,int,FloatBuffer *);
51void glReadPixels(int,int, int, int, int, int, ByteBuffer *);
52void glClearDepth(double);
53void glCullFace(int);
54void glDeleteLists(int,int);
55void glGenTextures(IntBuffer *);
56int glGenTextures();
57int glGenLists(int);
58void glLight(int, int,FloatBuffer *);
59void glLightModel(int, FloatBuffer *);
60void glGetFloat(int a, FloatBuffer *b);
61void glTexCoordPointer(int, int, int, int);
62void glTexCoordPointer(int, int, FloatBuffer *);
63void glNormalPointer(int, int, int);
64void glNormalPointer(int, ByteBuffer *);
65void glEnableClientState(int);
66void glDisableClientState(int);
67void glColorPointer(int, bool, int, ByteBuffer *);
68void glColorPointer(int, int, int, int);
69void glVertexPointer(int, int, int, int);
70void glVertexPointer(int, int, FloatBuffer *);
71void glDrawArrays(int,int,int);
72void glTranslatef(float,float,float);
73void glRotatef(float,float,float,float);
74void glNewList(int,int);
75void glEndList(int vertexCount = 0);
76void glCallList(int);
77void glPopMatrix();
78void glPushMatrix();
79void glColor3f(float,float,float);
80void glScalef(float,float,float);
81void glMultMatrixf(float *);
82void glColor4f(float,float,float,float);
83void glDisable(int);
84void glEnable(int);
85void glBlendFunc(int,int);
86void glDepthMask(bool);
87void glNormal3f(float,float,float);
88void glDepthFunc(int);
89void glMatrixMode(int);
90void glLoadIdentity();
91void glBindTexture(int,int);
92void glTexParameteri(int,int,int);
93void glTexImage2D(int,int,int,int,int,int,int,int,ByteBuffer *);
94void glDeleteTextures(IntBuffer *);
95void glDeleteTextures(int);
96void glCallLists(IntBuffer *);
97void glGenQueriesARB(IntBuffer *);
98void glColorMask(bool,bool,bool,bool);
99void glBeginQueryARB(int,int);
100void glEndQueryARB(int);
101void glGetQueryObjectuARB(int,int,IntBuffer *);
102void glShadeModel(int);
103void glPolygonOffset(float,float);
104void glLineWidth(float);
105void glScaled(double,double,double);
106void gluPerspective(float,float,float,float);
107void glClear(int);
108void glViewport(int,int,int,int);
109void glAlphaFunc(int,float);
110void glOrtho(float,float,float,float,float,float);
111void glClearColor(float,float,float,float);
112void glFogi(int,int);
113void glFogf(int,float);
114void glFog(int,FloatBuffer *);
115void glColorMaterial(int,int);
116void glMultiTexCoord2f(int, float, float);
117
118//1.8.2
119void glClientActiveTexture(int);
120void glActiveTexture(int);
121
122class GL11
123{
124public:
125 static const int GL_SMOOTH = 0;
126 static const int GL_FLAT = 0;
127 static void glShadeModel(int) {};
128};
129
130class ARBVertexBufferObject
131{
132public:
133 static const int GL_ARRAY_BUFFER_ARB = 0;
134 static const int GL_STREAM_DRAW_ARB = 0;
135 static void glBindBufferARB(int, int) {}
136 static void glBufferDataARB(int, ByteBuffer *, int) {}
137 static void glGenBuffersARB(IntBuffer *) {}
138};
139
140
141class Level;
142class Player;
143class Textures;
144class Font;
145class MapItemSavedData;
146class Mob;
147class Particles
148{
149public:
150 void render(float) {}
151 void tick() {}
152};
153
154class BufferedImage;
155
156class Graphics
157{
158public:
159 void drawImage(BufferedImage *, int, int, void *) {}
160 void dispose() {}
161};
162
163class ZipEntry
164{
165};
166class InputStream;
167
168class File;
169class ZipFile
170{
171public:
172 ZipFile(File *file) {}
173 InputStream *getInputStream(ZipEntry *entry) { return NULL; }
174 ZipEntry *getEntry(const wstring& name) {return NULL;}
175 void close() {}
176};
177
178class ImageIO
179{
180public:
181 static BufferedImage *read(InputStream *in) { return NULL; }
182};
183
184class Keyboard
185{
186public:
187 static void create() {}
188 static void destroy() {}
189#ifdef _WINDOWS64
190 static bool isKeyDown(int key);
191#else
192 static bool isKeyDown(int) {return false;}
193#endif
194 static wstring getKeyName(int) { return L"KEYNAME"; }
195 static void enableRepeatEvents(bool) {}
196 static const int KEY_A = 0;
197 static const int KEY_B = 1;
198 static const int KEY_C = 2;
199 static const int KEY_D = 3;
200 static const int KEY_E = 4;
201 static const int KEY_F = 5;
202 static const int KEY_G = 6;
203 static const int KEY_H = 7;
204 static const int KEY_I = 8;
205 static const int KEY_J = 9;
206 static const int KEY_K = 10;
207 static const int KEY_L = 11;
208 static const int KEY_M = 12;
209 static const int KEY_N = 13;
210 static const int KEY_O = 14;
211 static const int KEY_P = 15;
212 static const int KEY_Q = 16;
213 static const int KEY_R = 17;
214 static const int KEY_S = 18;
215 static const int KEY_T = 19;
216 static const int KEY_U = 20;
217 static const int KEY_V = 21;
218 static const int KEY_W = 22;
219 static const int KEY_X = 23;
220 static const int KEY_Y = 24;
221 static const int KEY_Z = 25;
222 static const int KEY_SPACE = 26;
223 static const int KEY_LSHIFT = 27;
224 static const int KEY_ESCAPE = 28;
225 static const int KEY_BACK = 29;
226 static const int KEY_RETURN = 30;
227 static const int KEY_RSHIFT = 31;
228 static const int KEY_UP = 32;
229 static const int KEY_DOWN = 33;
230 static const int KEY_TAB = 34;
231 static const int KEY_LEFT = 35;
232 static const int KEY_RIGHT = 36;
233};
234
235class Mouse
236{
237public:
238 static void create() {}
239 static void destroy() {}
240#ifdef _WINDOWS64
241 static int getX();
242 static int getY();
243 static bool isButtonDown(int button);
244#else
245 static int getX() { return 0; }
246 static int getY() { return 0; }
247 static bool isButtonDown(int) { return false; }
248#endif
249};
250
251class Display
252{
253public:
254 static bool isActive() {return true;}
255 static void update();
256 static void swapBuffers();
257 static void destroy() {}
258};
259
260class BackgroundDownloader
261{
262public:
263 BackgroundDownloader(File workDir, Minecraft* minecraft) {}
264 void start() {}
265 void halt() {}
266 void forceReload() {}
267};
268
269class Color
270{
271public:
272 static int HSBtoRGB(float,float,float) {return 0;}
273};