ScummVM API documentation
opengl_3d.h
1 /* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21 
22 #ifndef WATCHMAKER_OPENGL_3D_H
23 #define WATCHMAKER_OPENGL_3D_H
24 
25 #include "watchmaker/windows_hacks.h"
26 #include "watchmaker/render.h"
27 
28 #define MAXTEXTURES 2000
29 
30 namespace Watchmaker {
31 
32 struct gAvailFormat {
33  //DDPIXELFORMAT SurfaceDesc;
34  char rbits;
35  char gbits;
36  char bbits;
37  char abits;
38 };
39 
40 struct Vertex {
41  float sx, sy, sz, rhw;
42  uint32 color;
43 };
44 
45 extern unsigned int gNumTrianglesArray;
46 extern unsigned int gNumLinesArray;
47 
48 extern gAvailFormat *gCurrentFormat;
49 extern int NumAvailableFormats;
50 extern gAvailFormat AvailableFormats[];
51 
52 extern gTexture gTextureList[];
53 extern unsigned int gNumTextureList;
54 
55 extern uint16 gLinesArray[];
56 extern unsigned int gNumLinesArray;
57 extern unsigned int gNumTrianglesArray;
58 extern Vertex gTriangles[];
59 extern int g_lpD3DPointsBuffer;
60 extern void *g_lpD3DUserVertexBuffer;
61 extern unsigned int g_dwD3DUserVertexBufferCounter;
62 extern unsigned int gNumPointsBuffer;
63 
64 
65 } // End of namespace Watchmaker
66 
67 #endif // WATCHMAKER_OPENGL_3D_H
Definition: 2d_stuff.h:30
Definition: opengl_3d.h:40
Definition: texture.h:36
Definition: opengl_3d.h:32