ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
opinfo.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 /*
23  * This file is based on, or a modified version of code from TinyGL (C) 1997-2022 Fabrice Bellard,
24  * which is licensed under the MIT license (see LICENSE).
25  * It also has modifications by the ResidualVM-team, which are covered under the GPLv2 (or later).
26  */
27 
28 
29 ADD_OP(Color, 4, "%f %f %f %f")
30 ADD_OP(TexCoord, 4, "%f %f %f %f")
31 ADD_OP(EdgeFlag, 1, "%d")
32 ADD_OP(Normal, 3, "%f %f %f")
33 
34 ADD_OP(Begin, 1, "%C")
35 ADD_OP(Vertex, 4, "%f %f %f %f")
36 ADD_OP(End, 0, "")
37 
38 ADD_OP(EnableDisable, 2, "%C %d")
39 
40 ADD_OP(MatrixMode, 1, "%C")
41 ADD_OP(LoadMatrix, 16, "")
42 ADD_OP(LoadIdentity, 0, "")
43 ADD_OP(MultMatrix, 16, "")
44 ADD_OP(PushMatrix, 0, "")
45 ADD_OP(PopMatrix, 0, "")
46 ADD_OP(Rotate, 4, "%f %f %f %f")
47 ADD_OP(Translate, 3, "%f %f %f")
48 ADD_OP(Scale, 3, "%f %f %f")
49 ADD_OP(Ortho, 6, "%f %f %f %f %f %f")
50 
51 ADD_OP(Viewport, 4, "%d %d %d %d")
52 ADD_OP(Frustum, 6, "%f %f %f %f %f %f")
53 
54 ADD_OP(Material, 6, "%C %C %f %f %f %f")
55 ADD_OP(ColorMaterial, 2, "%C %C")
56 ADD_OP(Light, 6, "%C %C %f %f %f %f")
57 ADD_OP(LightModel, 5, "%C %f %f %f %f")
58 
59 ADD_OP(Clear, 1, "%d")
60 ADD_OP(ClearColor, 4, "%f %f %f %f")
61 ADD_OP(ClearDepth, 1, "%f")
62 ADD_OP(ClearStencil, 1, "%d")
63 
64 ADD_OP(InitNames, 0, "")
65 ADD_OP(PushName, 1, "%d")
66 ADD_OP(PopName, 0, "")
67 ADD_OP(LoadName, 1, "%d")
68 
69 ADD_OP(TexImage2D, 9, "%d %d %d %d %d %d %d %d %d")
70 ADD_OP(BindTexture, 2, "%C %d")
71 ADD_OP(TexEnv, 7, "%C %C %C %f %f %f %f")
72 ADD_OP(TexParameter, 7, "%C %C %C %f %f %f %f")
73 
74 ADD_OP(ShadeModel, 1, "%C")
75 ADD_OP(CullFace, 1, "%C")
76 ADD_OP(FrontFace, 1, "%C")
77 ADD_OP(PolygonMode, 2, "%C %C")
78 ADD_OP(ColorMask, 1, "%08x")
79 ADD_OP(DepthMask, 1, "%d")
80 ADD_OP(StencilMask, 1, "%d")
81 ADD_OP(BlendFunc, 2, "%d %d")
82 ADD_OP(AlphaFunc, 2, "%d %f")
83 ADD_OP(DepthFunc, 1, "%d")
84 ADD_OP(StencilFunc, 3, "%C %d %d")
85 ADD_OP(StencilOp, 3, "%C %C %C")
86 
87 ADD_OP(PolygonStipple, 128, "%d")
88 
89 ADD_OP(Fog, 5, "%d %f %f %f %f")
90 
91 ADD_OP(CallList, 1, "%d")
92 ADD_OP(Hint, 2, "%C %C")
93 
94 // special opcodes
95 ADD_OP(EndList, 0, "")
96 ADD_OP(NextBuffer, 1, "%p")
97 
98 // opengl 1.1 arrays
99 ADD_OP(ArrayElement, 1, "%d")
100 ADD_OP(DrawArrays, 3, "%C %d %d")
101 ADD_OP(DrawElements, 4, "%C %d %C %p")
102 
103 // opengl 1.1 polygon offset
104 ADD_OP(PolygonOffset, 2, "%f %f")
105 
106 #undef ADD_OP
Definition: display_client.h:53