ScummVM API documentation
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(Scissor, 4, "%d %d %d %d")
52 ADD_OP(Viewport, 4, "%d %d %d %d")
53 ADD_OP(Frustum, 6, "%f %f %f %f %f %f")
54 
55 ADD_OP(Material, 6, "%C %C %f %f %f %f")
56 ADD_OP(ColorMaterial, 2, "%C %C")
57 ADD_OP(Light, 6, "%C %C %f %f %f %f")
58 ADD_OP(LightModel, 5, "%C %f %f %f %f")
59 
60 ADD_OP(Clear, 1, "%d")
61 ADD_OP(ClearColor, 4, "%f %f %f %f")
62 ADD_OP(ClearDepth, 1, "%f")
63 ADD_OP(ClearStencil, 1, "%d")
64 
65 ADD_OP(InitNames, 0, "")
66 ADD_OP(PushName, 1, "%d")
67 ADD_OP(PopName, 0, "")
68 ADD_OP(LoadName, 1, "%d")
69 
70 ADD_OP(TexImage2D, 9, "%d %d %d %d %d %d %d %d %d")
71 ADD_OP(BindTexture, 2, "%C %d")
72 ADD_OP(TexEnv, 7, "%C %C %C %f %f %f %f")
73 ADD_OP(TexParameter, 7, "%C %C %C %f %f %f %f")
74 
75 ADD_OP(ShadeModel, 1, "%C")
76 ADD_OP(CullFace, 1, "%C")
77 ADD_OP(FrontFace, 1, "%C")
78 ADD_OP(PolygonMode, 2, "%C %C")
79 ADD_OP(ColorMask, 1, "%08x")
80 ADD_OP(DepthMask, 1, "%d")
81 ADD_OP(StencilMask, 1, "%d")
82 ADD_OP(BlendFunc, 2, "%d %d")
83 ADD_OP(AlphaFunc, 2, "%d %f")
84 ADD_OP(DepthFunc, 1, "%d")
85 ADD_OP(StencilFunc, 3, "%C %d %d")
86 ADD_OP(StencilOp, 3, "%C %C %C")
87 
88 ADD_OP(PolygonStipple, 128, "%d")
89 
90 ADD_OP(Fog, 5, "%d %f %f %f %f")
91 
92 ADD_OP(CallList, 1, "%d")
93 ADD_OP(Hint, 2, "%C %C")
94 
95 // special opcodes
96 ADD_OP(EndList, 0, "")
97 ADD_OP(NextBuffer, 1, "%p")
98 
99 // opengl 1.1 arrays
100 ADD_OP(ArrayElement, 1, "%d")
101 ADD_OP(DrawArrays, 3, "%C %d %d")
102 ADD_OP(DrawElements, 4, "%C %d %C %p")
103 
104 // opengl 1.1 polygon offset
105 ADD_OP(PolygonOffset, 2, "%f %f")
106 
107 #undef ADD_OP
Definition: display_client.h:53