Révision | dcd06de137360600a18e735080a526ac225d3574 (tree) |
---|---|
l'heure | 2024-01-18 04:09:10 |
Auteur | Hotshot5000 <sebastian_bugiu@yaho...> |
Commiter | Hotshot5000 |
Removed opengl since we don't use it.
@@ -1,369 +1,369 @@ | ||
1 | -/******************************************************************************* | |
2 | - * Copyright 2011 See AUTHORS file. | |
3 | - * | |
4 | - * Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | - * you may not use this file except in compliance with the License. | |
6 | - * You may obtain a copy of the License at | |
7 | - * | |
8 | - * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | - * | |
10 | - * Unless required by applicable law or agreed to in writing, software | |
11 | - * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | - * See the License for the specific language governing permissions and | |
14 | - * limitations under the License. | |
1 | +/******************************************************************************* | |
2 | + * Copyright 2011 See AUTHORS file. | |
3 | + * | |
4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | + * you may not use this file except in compliance with the License. | |
6 | + * You may obtain a copy of the License at | |
7 | + * | |
8 | + * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | + * | |
10 | + * Unless required by applicable law or agreed to in writing, software | |
11 | + * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | + * See the License for the specific language governing permissions and | |
14 | + * limitations under the License. | |
15 | 15 | ******************************************************************************/ |
16 | 16 | |
17 | 17 | package com.badlogic.gdx.backends.iosrobovm; |
18 | 18 | |
19 | -import java.nio.Buffer; | |
20 | -import java.nio.FloatBuffer; | |
21 | -import java.nio.IntBuffer; | |
22 | - | |
23 | -import com.badlogic.gdx.graphics.GL20; | |
19 | +import java.nio.Buffer; | |
20 | +import java.nio.FloatBuffer; | |
21 | +import java.nio.IntBuffer; | |
22 | + | |
23 | +import com.badlogic.gdx.graphics.GL20; | |
24 | 24 | |
25 | 25 | public class IOSGLES20 implements GL20 |
26 | 26 | { |
27 | 27 | public IOSGLES20() { |
28 | 28 | init(); |
29 | - } | |
30 | - | |
31 | - /** last viewport set, needed because GLKView resets the viewport on each call to render... amazing **/ | |
29 | + } | |
30 | + | |
31 | + /** last viewport set, needed because GLKView resets the viewport on each call to render... amazing **/ | |
32 | 32 | public static int x, y, width, height; |
33 | 33 | |
34 | - private static native void init( ); | |
34 | + private static void init( ){ } | |
35 | 35 | |
36 | - public native void glActiveTexture ( int texture ); | |
36 | + public void glActiveTexture ( int texture ){ } | |
37 | 37 | |
38 | - public native void glAttachShader ( int program, int shader ); | |
38 | + public void glAttachShader ( int program, int shader ){ } | |
39 | 39 | |
40 | - public native void glBindAttribLocation ( int program, int index, String name ); | |
40 | + public void glBindAttribLocation ( int program, int index, String name ){ } | |
41 | 41 | |
42 | - public native void glBindBuffer ( int target, int buffer ); | |
42 | + public void glBindBuffer ( int target, int buffer ){ } | |
43 | 43 | |
44 | - public native void glBindFramebuffer ( int target, int framebuffer ); | |
44 | + public void glBindFramebuffer ( int target, int framebuffer ){ } | |
45 | 45 | |
46 | - public native void glBindRenderbuffer ( int target, int renderbuffer ); | |
46 | + public void glBindRenderbuffer ( int target, int renderbuffer ){ } | |
47 | 47 | |
48 | - public native void glBindTexture ( int target, int texture ); | |
48 | + public void glBindTexture ( int target, int texture ){ } | |
49 | 49 | |
50 | - public native void glBlendColor ( float red, float green, float blue, float alpha ); | |
50 | + public void glBlendColor ( float red, float green, float blue, float alpha ){ } | |
51 | 51 | |
52 | - public native void glBlendEquation ( int mode ); | |
52 | + public void glBlendEquation ( int mode ){ } | |
53 | 53 | |
54 | - public native void glBlendEquationSeparate ( int modeRGB, int modeAlpha ); | |
54 | + public void glBlendEquationSeparate ( int modeRGB, int modeAlpha ){ } | |
55 | 55 | |
56 | - public native void glBlendFunc ( int sfactor, int dfactor ); | |
56 | + public void glBlendFunc ( int sfactor, int dfactor ){ } | |
57 | 57 | |
58 | - public native void glBlendFuncSeparate ( int srcRGB, int dstRGB, int srcAlpha, int dstAlpha ); | |
58 | + public void glBlendFuncSeparate ( int srcRGB, int dstRGB, int srcAlpha, int dstAlpha ){ } | |
59 | 59 | |
60 | - public native void glBufferData ( int target, int size, Buffer data, int usage ); | |
60 | + public void glBufferData ( int target, int size, Buffer data, int usage ){ } | |
61 | 61 | |
62 | - public native void glBufferSubData ( int target, int offset, int size, Buffer data ); | |
62 | + public void glBufferSubData ( int target, int offset, int size, Buffer data ){ } | |
63 | 63 | |
64 | - public native int glCheckFramebufferStatus ( int target ); | |
64 | + public int glCheckFramebufferStatus ( int target ){ return 0; } | |
65 | 65 | |
66 | - public native void glClear ( int mask ); | |
66 | + public void glClear ( int mask ){ } | |
67 | 67 | |
68 | - public native void glClearColor ( float red, float green, float blue, float alpha ); | |
68 | + public void glClearColor ( float red, float green, float blue, float alpha ){ } | |
69 | 69 | |
70 | - public native void glClearDepthf ( float depth ); | |
70 | + public void glClearDepthf ( float depth ){ } | |
71 | 71 | |
72 | - public native void glClearStencil ( int s ); | |
72 | + public void glClearStencil ( int s ){ } | |
73 | 73 | |
74 | - public native void glColorMask ( boolean red, boolean green, boolean blue, boolean alpha ); | |
74 | + public void glColorMask ( boolean red, boolean green, boolean blue, boolean alpha ){ } | |
75 | 75 | |
76 | - public native void glCompileShader ( int shader ); | |
76 | + public void glCompileShader ( int shader ){ } | |
77 | 77 | |
78 | - public native void glCompressedTexImage2D ( int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data ); | |
78 | + public void glCompressedTexImage2D ( int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data ){ } | |
79 | 79 | |
80 | - public native void glCompressedTexSubImage2D ( int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data ); | |
80 | + public void glCompressedTexSubImage2D ( int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data ){ } | |
81 | 81 | |
82 | - public native void glCopyTexImage2D ( int target, int level, int internalformat, int x, int y, int width, int height, int border ); | |
82 | + public void glCopyTexImage2D ( int target, int level, int internalformat, int x, int y, int width, int height, int border ){ } | |
83 | 83 | |
84 | - public native void glCopyTexSubImage2D ( int target, int level, int xoffset, int yoffset, int x, int y, int width, int height ); | |
84 | + public void glCopyTexSubImage2D ( int target, int level, int xoffset, int yoffset, int x, int y, int width, int height ){ } | |
85 | 85 | |
86 | - public native int glCreateProgram ( ); | |
86 | + public int glCreateProgram ( ){ return 0; } | |
87 | 87 | |
88 | - public native int glCreateShader ( int type ); | |
88 | + public int glCreateShader ( int type ){ return 0; } | |
89 | 89 | |
90 | - public native void glCullFace ( int mode ); | |
90 | + public void glCullFace ( int mode ){ } | |
91 | 91 | |
92 | - public native void glDeleteBuffers ( int n, IntBuffer buffers ); | |
93 | - | |
94 | - public native void glDeleteBuffer(int buffer); | |
92 | + public void glDeleteBuffers ( int n, IntBuffer buffers ){ } | |
93 | + | |
94 | + public void glDeleteBuffer(int buffer){ } | |
95 | 95 | |
96 | - public native void glDeleteFramebuffers ( int n, IntBuffer framebuffers ); | |
97 | - | |
98 | - public native void glDeleteFramebuffer(int framebuffer); | |
96 | + public void glDeleteFramebuffers ( int n, IntBuffer framebuffers ){ } | |
97 | + | |
98 | + public void glDeleteFramebuffer(int framebuffer){ } | |
99 | 99 | |
100 | - public native void glDeleteProgram ( int program ); | |
100 | + public void glDeleteProgram ( int program ){ } | |
101 | 101 | |
102 | - public native void glDeleteRenderbuffers ( int n, IntBuffer renderbuffers ); | |
103 | - | |
104 | - public native void glDeleteRenderbuffer(int renderbuffer); | |
102 | + public void glDeleteRenderbuffers ( int n, IntBuffer renderbuffers ){ } | |
103 | + | |
104 | + public void glDeleteRenderbuffer(int renderbuffer){ } | |
105 | 105 | |
106 | - public native void glDeleteShader ( int shader ); | |
106 | + public void glDeleteShader ( int shader ){ } | |
107 | 107 | |
108 | - public native void glDeleteTextures ( int n, IntBuffer textures ); | |
109 | - | |
110 | - public native void glDeleteTexture(int texture); | |
108 | + public void glDeleteTextures ( int n, IntBuffer textures ){ } | |
109 | + | |
110 | + public void glDeleteTexture(int texture){ } | |
111 | 111 | |
112 | - public native void glDepthFunc ( int func ); | |
112 | + public void glDepthFunc ( int func ){ } | |
113 | 113 | |
114 | - public native void glDepthMask ( boolean flag ); | |
114 | + public void glDepthMask ( boolean flag ){ } | |
115 | 115 | |
116 | - public native void glDepthRangef ( float zNear, float zFar ); | |
116 | + public void glDepthRangef ( float zNear, float zFar ){ } | |
117 | 117 | |
118 | - public native void glDetachShader ( int program, int shader ); | |
118 | + public void glDetachShader ( int program, int shader ){ } | |
119 | 119 | |
120 | - public native void glDisable ( int cap ); | |
120 | + public void glDisable ( int cap ){ } | |
121 | 121 | |
122 | - public native void glDisableVertexAttribArray ( int index ); | |
122 | + public void glDisableVertexAttribArray ( int index ){ } | |
123 | 123 | |
124 | - public native void glDrawArrays ( int mode, int first, int count ); | |
124 | + public void glDrawArrays ( int mode, int first, int count ){ } | |
125 | 125 | |
126 | - public native void glDrawElements ( int mode, int count, int type, Buffer indices ); | |
126 | + public void glDrawElements ( int mode, int count, int type, Buffer indices ){ } | |
127 | 127 | |
128 | - public native void glDrawElements ( int mode, int count, int type, int indices ); | |
128 | + public void glDrawElements ( int mode, int count, int type, int indices ){ } | |
129 | 129 | |
130 | - public native void glEnable ( int cap ); | |
130 | + public void glEnable ( int cap ){ } | |
131 | 131 | |
132 | - public native void glEnableVertexAttribArray ( int index ); | |
132 | + public void glEnableVertexAttribArray ( int index ){ } | |
133 | 133 | |
134 | - public native void glFinish ( ); | |
134 | + public void glFinish ( ){ } | |
135 | 135 | |
136 | - public native void glFlush ( ); | |
136 | + public void glFlush ( ){ } | |
137 | 137 | |
138 | - public native void glFramebufferRenderbuffer ( int target, int attachment, int renderbuffertarget, int renderbuffer ); | |
138 | + public void glFramebufferRenderbuffer ( int target, int attachment, int renderbuffertarget, int renderbuffer ){ } | |
139 | 139 | |
140 | - public native void glFramebufferTexture2D ( int target, int attachment, int textarget, int texture, int level ); | |
140 | + public void glFramebufferTexture2D ( int target, int attachment, int textarget, int texture, int level ){ } | |
141 | 141 | |
142 | - public native void glFrontFace ( int mode ); | |
142 | + public void glFrontFace ( int mode ){ } | |
143 | 143 | |
144 | - public native void glGenBuffers ( int n, IntBuffer buffers ); | |
145 | - | |
146 | - public native int glGenBuffer(); | |
144 | + public void glGenBuffers ( int n, IntBuffer buffers ){ } | |
145 | + | |
146 | + public int glGenBuffer(){ return 0; } | |
147 | 147 | |
148 | - public native void glGenerateMipmap ( int target ); | |
148 | + public void glGenerateMipmap ( int target ){ } | |
149 | 149 | |
150 | - public native void glGenFramebuffers ( int n, IntBuffer framebuffers ); | |
151 | - | |
152 | - public native int glGenFramebuffer(); | |
150 | + public void glGenFramebuffers ( int n, IntBuffer framebuffers ){ } | |
151 | + | |
152 | + public int glGenFramebuffer(){ return 0; } | |
153 | 153 | |
154 | - public native void glGenRenderbuffers ( int n, IntBuffer renderbuffers ); | |
155 | - | |
156 | - public native int glGenRenderbuffer(); | |
154 | + public void glGenRenderbuffers ( int n, IntBuffer renderbuffers ){ } | |
155 | + | |
156 | + public int glGenRenderbuffer(){ return 0; } | |
157 | 157 | |
158 | - public native void glGenTextures ( int n, IntBuffer textures ); | |
159 | - | |
160 | - public native int glGenTexture(); | |
158 | + public void glGenTextures ( int n, IntBuffer textures ){ } | |
159 | + | |
160 | + public int glGenTexture(){ return 0; } | |
161 | + | |
162 | + public String glGetActiveAttrib ( int program, int index, IntBuffer size, IntBuffer type ){ return ""; } | |
161 | 163 | |
162 | - public native String glGetActiveAttrib ( int program, int index, IntBuffer size, IntBuffer type ); | |
164 | + public String glGetActiveUniform ( int program, int index, IntBuffer size, IntBuffer type ){ return ""; } | |
163 | 165 | |
164 | - public native String glGetActiveUniform ( int program, int index, IntBuffer size, IntBuffer type ); | |
166 | + public void glGetAttachedShaders ( int program, int maxcount, Buffer count, IntBuffer shaders ){ } | |
165 | 167 | |
166 | - public native void glGetAttachedShaders ( int program, int maxcount, Buffer count, IntBuffer shaders ); | |
168 | + public int glGetAttribLocation ( int program, String name ){ return 0; } | |
167 | 169 | |
168 | - public native int glGetAttribLocation ( int program, String name ); | |
170 | + public void glGetBooleanv ( int pname, Buffer params ){ } | |
169 | 171 | |
170 | - public native void glGetBooleanv ( int pname, Buffer params ); | |
172 | + public void glGetBufferParameteriv ( int target, int pname, IntBuffer params ){ } | |
171 | 173 | |
172 | - public native void glGetBufferParameteriv ( int target, int pname, IntBuffer params ); | |
174 | + public int glGetError ( ){ return 0; } | |
173 | 175 | |
174 | - public native int glGetError ( ); | |
176 | + public void glGetFloatv ( int pname, FloatBuffer params ){ } | |
175 | 177 | |
176 | - public native void glGetFloatv ( int pname, FloatBuffer params ); | |
178 | + public void glGetFramebufferAttachmentParameteriv ( int target, int attachment, int pname, IntBuffer params ){ } | |
177 | 179 | |
178 | - public native void glGetFramebufferAttachmentParameteriv ( int target, int attachment, int pname, IntBuffer params ); | |
180 | + public void glGetIntegerv ( int pname, IntBuffer params ){ } | |
179 | 181 | |
180 | - public native void glGetIntegerv ( int pname, IntBuffer params ); | |
182 | + public void glGetProgramiv ( int program, int pname, IntBuffer params ){ } | |
181 | 183 | |
182 | - public native void glGetProgramiv ( int program, int pname, IntBuffer params ); | |
184 | + public String glGetProgramInfoLog ( int program ){ return ""; } | |
183 | 185 | |
184 | - public native String glGetProgramInfoLog ( int program ); | |
186 | + public void glGetRenderbufferParameteriv ( int target, int pname, IntBuffer params ){ } | |
185 | 187 | |
186 | - public native void glGetRenderbufferParameteriv ( int target, int pname, IntBuffer params ); | |
188 | + public void glGetShaderiv ( int shader, int pname, IntBuffer params ){ } | |
187 | 189 | |
188 | - public native void glGetShaderiv ( int shader, int pname, IntBuffer params ); | |
190 | + public String glGetShaderInfoLog ( int shader ){ return ""; } | |
189 | 191 | |
190 | - public native String glGetShaderInfoLog ( int shader ); | |
192 | + public void glGetShaderPrecisionFormat ( int shadertype, int precisiontype, IntBuffer range, IntBuffer precision ){ } | |
191 | 193 | |
192 | - public native void glGetShaderPrecisionFormat ( int shadertype, int precisiontype, IntBuffer range, IntBuffer precision ); | |
194 | + public void glGetShaderSource ( int shader, int bufsize, Buffer length, String source ){ } | |
193 | 195 | |
194 | - public native void glGetShaderSource ( int shader, int bufsize, Buffer length, String source ); | |
196 | + public String glGetString ( int name ){ return ""; } | |
195 | 197 | |
196 | - public native String glGetString ( int name ); | |
198 | + public void glGetTexParameterfv ( int target, int pname, FloatBuffer params ){ } | |
197 | 199 | |
198 | - public native void glGetTexParameterfv ( int target, int pname, FloatBuffer params ); | |
200 | + public void glGetTexParameteriv ( int target, int pname, IntBuffer params ){ } | |
199 | 201 | |
200 | - public native void glGetTexParameteriv ( int target, int pname, IntBuffer params ); | |
202 | + public void glGetUniformfv ( int program, int location, FloatBuffer params ){ } | |
201 | 203 | |
202 | - public native void glGetUniformfv ( int program, int location, FloatBuffer params ); | |
204 | + public void glGetUniformiv ( int program, int location, IntBuffer params ){ } | |
203 | 205 | |
204 | - public native void glGetUniformiv ( int program, int location, IntBuffer params ); | |
206 | + public int glGetUniformLocation ( int program, String name ){ return 0; } | |
205 | 207 | |
206 | - public native int glGetUniformLocation ( int program, String name ); | |
208 | + public void glGetVertexAttribfv ( int index, int pname, FloatBuffer params ){ } | |
207 | 209 | |
208 | - public native void glGetVertexAttribfv ( int index, int pname, FloatBuffer params ); | |
210 | + public void glGetVertexAttribiv ( int index, int pname, IntBuffer params ){ } | |
209 | 211 | |
210 | - public native void glGetVertexAttribiv ( int index, int pname, IntBuffer params ); | |
212 | + public void glGetVertexAttribPointerv ( int index, int pname, Buffer pointer ){ } | |
211 | 213 | |
212 | - public native void glGetVertexAttribPointerv ( int index, int pname, Buffer pointer ); | |
214 | + public void glHint ( int target, int mode ){ } | |
213 | 215 | |
214 | - public native void glHint ( int target, int mode ); | |
216 | + public boolean glIsBuffer ( int buffer ){ return false; } | |
215 | 217 | |
216 | - public native boolean glIsBuffer ( int buffer ); | |
218 | + public boolean glIsEnabled ( int cap ){ return false; } | |
217 | 219 | |
218 | - public native boolean glIsEnabled ( int cap ); | |
220 | + public boolean glIsFramebuffer ( int framebuffer ){ return false; } | |
219 | 221 | |
220 | - public native boolean glIsFramebuffer ( int framebuffer ); | |
222 | + public boolean glIsProgram ( int program ){ return false; } | |
221 | 223 | |
222 | - public native boolean glIsProgram ( int program ); | |
224 | + public boolean glIsRenderbuffer ( int renderbuffer ){ return false; } | |
223 | 225 | |
224 | - public native boolean glIsRenderbuffer ( int renderbuffer ); | |
226 | + public boolean glIsShader ( int shader ){ return false; } | |
225 | 227 | |
226 | - public native boolean glIsShader ( int shader ); | |
228 | + public boolean glIsTexture ( int texture ){ return false; } | |
227 | 229 | |
228 | - public native boolean glIsTexture ( int texture ); | |
230 | + public void glLineWidth ( float width ){ } | |
229 | 231 | |
230 | - public native void glLineWidth ( float width ); | |
232 | + public void glLinkProgram ( int program ){ } | |
231 | 233 | |
232 | - public native void glLinkProgram ( int program ); | |
234 | + public void glPixelStorei ( int pname, int param ){ } | |
233 | 235 | |
234 | - public native void glPixelStorei ( int pname, int param ); | |
236 | + public void glPolygonOffset ( float factor, float units ){ } | |
235 | 237 | |
236 | - public native void glPolygonOffset ( float factor, float units ); | |
238 | + public void glReadPixels ( int x, int y, int width, int height, int format, int type, Buffer pixels ){ } | |
237 | 239 | |
238 | - public native void glReadPixels ( int x, int y, int width, int height, int format, int type, Buffer pixels ); | |
240 | + public void glReleaseShaderCompiler ( ){ } | |
239 | 241 | |
240 | - public native void glReleaseShaderCompiler ( ); | |
242 | + public void glRenderbufferStorage ( int target, int internalformat, int width, int height ){ } | |
241 | 243 | |
242 | - public native void glRenderbufferStorage ( int target, int internalformat, int width, int height ); | |
244 | + public void glSampleCoverage ( float value, boolean invert ){ } | |
243 | 245 | |
244 | - public native void glSampleCoverage ( float value, boolean invert ); | |
246 | + public void glScissor ( int x, int y, int width, int height ){ } | |
245 | 247 | |
246 | - public native void glScissor ( int x, int y, int width, int height ); | |
248 | + public void glShaderBinary ( int n, IntBuffer shaders, int binaryformat, Buffer binary, int length ){ } | |
247 | 249 | |
248 | - public native void glShaderBinary ( int n, IntBuffer shaders, int binaryformat, Buffer binary, int length ); | |
250 | + public void glShaderSource ( int shader, String string ){ } | |
249 | 251 | |
250 | - public native void glShaderSource ( int shader, String string ); | |
252 | + public void glStencilFunc ( int func, int ref, int mask ){ } | |
251 | 253 | |
252 | - public native void glStencilFunc ( int func, int ref, int mask ); | |
254 | + public void glStencilFuncSeparate ( int face, int func, int ref, int mask ){ } | |
253 | 255 | |
254 | - public native void glStencilFuncSeparate ( int face, int func, int ref, int mask ); | |
256 | + public void glStencilMask ( int mask ){ } | |
255 | 257 | |
256 | - public native void glStencilMask ( int mask ); | |
258 | + public void glStencilMaskSeparate ( int face, int mask ){ } | |
257 | 259 | |
258 | - public native void glStencilMaskSeparate ( int face, int mask ); | |
260 | + public void glStencilOp ( int fail, int zfail, int zpass ){ } | |
259 | 261 | |
260 | - public native void glStencilOp ( int fail, int zfail, int zpass ); | |
262 | + public void glStencilOpSeparate ( int face, int fail, int zfail, int zpass ){ } | |
261 | 263 | |
262 | - public native void glStencilOpSeparate ( int face, int fail, int zfail, int zpass ); | |
264 | + public void glTexImage2D ( int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels ){ } | |
263 | 265 | |
264 | - public native void glTexImage2D ( int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels ); | |
266 | + public void glTexParameterf ( int target, int pname, float param ){ } | |
265 | 267 | |
266 | - public native void glTexParameterf ( int target, int pname, float param ); | |
268 | + public void glTexParameterfv ( int target, int pname, FloatBuffer params ){ } | |
267 | 269 | |
268 | - public native void glTexParameterfv ( int target, int pname, FloatBuffer params ); | |
270 | + public void glTexParameteri ( int target, int pname, int param ){ } | |
269 | 271 | |
270 | - public native void glTexParameteri ( int target, int pname, int param ); | |
272 | + public void glTexParameteriv ( int target, int pname, IntBuffer params ){ } | |
271 | 273 | |
272 | - public native void glTexParameteriv ( int target, int pname, IntBuffer params ); | |
274 | + public void glTexSubImage2D ( int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels ){ } | |
273 | 275 | |
274 | - public native void glTexSubImage2D ( int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels ); | |
276 | + public void glUniform1f ( int location, float x ){ } | |
275 | 277 | |
276 | - public native void glUniform1f ( int location, float x ); | |
278 | + public void glUniform1fv ( int location, int count, FloatBuffer v ){ } | |
277 | 279 | |
278 | - public native void glUniform1fv ( int location, int count, FloatBuffer v ); | |
279 | - | |
280 | - public native void glUniform1fv(int location, int count, float[] v, int offset); | |
280 | + public void glUniform1fv(int location, int count, float[] v, int offset){ } | |
281 | 281 | |
282 | - public native void glUniform1i ( int location, int x ); | |
282 | + public void glUniform1i ( int location, int x ){ } | |
283 | 283 | |
284 | - public native void glUniform1iv ( int location, int count, IntBuffer v ); | |
285 | - | |
286 | - public native void glUniform1iv(int location, int count, int[] v, int offset); | |
284 | + public void glUniform1iv ( int location, int count, IntBuffer v ){ } | |
285 | + | |
286 | + public void glUniform1iv(int location, int count, int[] v, int offset){ } | |
287 | 287 | |
288 | - public native void glUniform2f ( int location, float x, float y ); | |
288 | + public void glUniform2f ( int location, float x, float y ){ } | |
289 | 289 | |
290 | - public native void glUniform2fv ( int location, int count, FloatBuffer v ); | |
291 | - | |
292 | - public native void glUniform2fv(int location, int count, float[] v, int offset); | |
290 | + public void glUniform2fv ( int location, int count, FloatBuffer v ){ } | |
291 | + | |
292 | + public void glUniform2fv(int location, int count, float[] v, int offset){ } | |
293 | 293 | |
294 | - public native void glUniform2i ( int location, int x, int y ); | |
294 | + public void glUniform2i ( int location, int x, int y ){ } | |
295 | 295 | |
296 | - public native void glUniform2iv ( int location, int count, IntBuffer v ); | |
297 | - | |
298 | - public native void glUniform2iv(int location, int count, int[] v, int offset); | |
296 | + public void glUniform2iv ( int location, int count, IntBuffer v ){ } | |
297 | + | |
298 | + public void glUniform2iv(int location, int count, int[] v, int offset){ } | |
299 | 299 | |
300 | - public native void glUniform3f ( int location, float x, float y, float z ); | |
300 | + public void glUniform3f ( int location, float x, float y, float z ){ } | |
301 | 301 | |
302 | - public native void glUniform3fv ( int location, int count, FloatBuffer v ); | |
303 | - | |
304 | - public native void glUniform3fv(int location, int count, float[] v, int offset); | |
302 | + public void glUniform3fv ( int location, int count, FloatBuffer v ){ } | |
303 | + | |
304 | + public void glUniform3fv(int location, int count, float[] v, int offset){ } | |
305 | 305 | |
306 | - public native void glUniform3i ( int location, int x, int y, int z ); | |
306 | + public void glUniform3i ( int location, int x, int y, int z ){ } | |
307 | 307 | |
308 | - public native void glUniform3iv ( int location, int count, IntBuffer v ); | |
309 | - | |
310 | - public native void glUniform3iv(int location, int count, int[] v, int offset); | |
311 | - | |
312 | - public native void glUniform4f ( int location, float x, float y, float z, float w ); | |
308 | + public void glUniform3iv ( int location, int count, IntBuffer v ){ } | |
309 | + | |
310 | + public void glUniform3iv(int location, int count, int[] v, int offset){ } | |
311 | + | |
312 | + public void glUniform4f ( int location, float x, float y, float z, float w ){ } | |
313 | 313 | |
314 | - public native void glUniform4fv ( int location, int count, FloatBuffer v ); | |
315 | - | |
316 | - public native void glUniform4fv(int location, int count, float[] v, int offset); | |
314 | + public void glUniform4fv ( int location, int count, FloatBuffer v ){ } | |
315 | + | |
316 | + public void glUniform4fv(int location, int count, float[] v, int offset){ } | |
317 | 317 | |
318 | - public native void glUniform4i ( int location, int x, int y, int z, int w ); | |
318 | + public void glUniform4i ( int location, int x, int y, int z, int w ){ } | |
319 | 319 | |
320 | - public native void glUniform4iv ( int location, int count, IntBuffer v ); | |
321 | - | |
322 | - public native void glUniform4iv(int location, int count, int[] v, int offset); | |
320 | + public void glUniform4iv ( int location, int count, IntBuffer v ){ } | |
321 | + | |
322 | + public void glUniform4iv(int location, int count, int[] v, int offset){ } | |
323 | 323 | |
324 | - public native void glUniformMatrix2fv ( int location, int count, boolean transpose, FloatBuffer value ); | |
325 | - | |
326 | - public native void glUniformMatrix2fv(int location, int count, boolean transpose, float[] value, int offset); | |
324 | + public void glUniformMatrix2fv ( int location, int count, boolean transpose, FloatBuffer value ){ } | |
325 | + | |
326 | + public void glUniformMatrix2fv(int location, int count, boolean transpose, float[] value, int offset){ } | |
327 | 327 | |
328 | - public native void glUniformMatrix3fv ( int location, int count, boolean transpose, FloatBuffer value ); | |
329 | - | |
330 | - public native void glUniformMatrix3fv(int location, int count, boolean transpose, float[] value, int offset); | |
328 | + public void glUniformMatrix3fv ( int location, int count, boolean transpose, FloatBuffer value ){ } | |
329 | + | |
330 | + public void glUniformMatrix3fv(int location, int count, boolean transpose, float[] value, int offset){ } | |
331 | 331 | |
332 | - public native void glUniformMatrix4fv ( int location, int count, boolean transpose, FloatBuffer value ); | |
333 | - | |
334 | - public native void glUniformMatrix4fv(int location, int count, boolean transpose, float[] value, int offset); | |
332 | + public void glUniformMatrix4fv ( int location, int count, boolean transpose, FloatBuffer value ){ } | |
333 | + | |
334 | + public void glUniformMatrix4fv(int location, int count, boolean transpose, float[] value, int offset){ } | |
335 | 335 | |
336 | - public native void glUseProgram ( int program ); | |
336 | + public void glUseProgram ( int program ){ } | |
337 | 337 | |
338 | - public native void glValidateProgram ( int program ); | |
338 | + public void glValidateProgram ( int program ){ } | |
339 | 339 | |
340 | - public native void glVertexAttrib1f ( int indx, float x ); | |
340 | + public void glVertexAttrib1f ( int indx, float x ){ } | |
341 | 341 | |
342 | - public native void glVertexAttrib1fv ( int indx, FloatBuffer values ); | |
342 | + public void glVertexAttrib1fv ( int indx, FloatBuffer values ){ } | |
343 | 343 | |
344 | - public native void glVertexAttrib2f ( int indx, float x, float y ); | |
344 | + public void glVertexAttrib2f ( int indx, float x, float y ){ } | |
345 | 345 | |
346 | - public native void glVertexAttrib2fv ( int indx, FloatBuffer values ); | |
346 | + public void glVertexAttrib2fv ( int indx, FloatBuffer values ){ } | |
347 | 347 | |
348 | - public native void glVertexAttrib3f ( int indx, float x, float y, float z ); | |
348 | + public void glVertexAttrib3f ( int indx, float x, float y, float z ){ } | |
349 | 349 | |
350 | - public native void glVertexAttrib3fv ( int indx, FloatBuffer values ); | |
350 | + public void glVertexAttrib3fv ( int indx, FloatBuffer values ){ } | |
351 | 351 | |
352 | - public native void glVertexAttrib4f ( int indx, float x, float y, float z, float w ); | |
352 | + public void glVertexAttrib4f ( int indx, float x, float y, float z, float w ){ } | |
353 | 353 | |
354 | - public native void glVertexAttrib4fv ( int indx, FloatBuffer values ); | |
354 | + public void glVertexAttrib4fv ( int indx, FloatBuffer values ){ } | |
355 | 355 | |
356 | - public native void glVertexAttribPointer ( int indx, int size, int type, boolean normalized, int stride, Buffer ptr ); | |
356 | + public void glVertexAttribPointer ( int indx, int size, int type, boolean normalized, int stride, Buffer ptr ){ } | |
357 | 357 | |
358 | - public native void glVertexAttribPointer ( int indx, int size, int type, boolean normalized, int stride, int ptr ); | |
359 | - | |
360 | - public void glViewport(int x, int y, int width, int height) { | |
361 | - IOSGLES20.x = x; | |
362 | - IOSGLES20.y = y; | |
363 | - IOSGLES20.width = width; | |
364 | - IOSGLES20.height = height; | |
365 | - glViewportJni(x, y, width, height); | |
366 | - } | |
358 | + public void glVertexAttribPointer ( int indx, int size, int type, boolean normalized, int stride, int ptr ){ } | |
359 | + | |
360 | + public void glViewport(int x, int y, int width, int height) { | |
361 | + IOSGLES20.x = x; | |
362 | + IOSGLES20.y = y; | |
363 | + IOSGLES20.width = width; | |
364 | + IOSGLES20.height = height; | |
365 | + glViewportJni(x, y, width, height); | |
366 | + } | |
367 | 367 | |
368 | - public native void glViewportJni ( int x, int y, int width, int height ); | |
368 | + public void glViewportJni ( int x, int y, int width, int height ){ } | |
369 | 369 | } |
\ No newline at end of file |
@@ -13,191 +13,191 @@ public class IOSGLES30 extends IOSGLES20 implements GL30 { | ||
13 | 13 | init(); |
14 | 14 | } |
15 | 15 | |
16 | - private static native void init( ); | |
16 | + private static void init( ){ } | |
17 | 17 | |
18 | - public native void glReadBuffer(int mode); | |
18 | + public void glReadBuffer(int mode){ } | |
19 | 19 | |
20 | - public native void glDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices); | |
20 | + public void glDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices){ } | |
21 | 21 | |
22 | - public native void glDrawRangeElements(int mode, int start, int end, int count, int type, int offset); | |
22 | + public void glDrawRangeElements(int mode, int start, int end, int count, int type, int offset){ } | |
23 | 23 | |
24 | - public native void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, Buffer pixels); | |
24 | + public void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, Buffer pixels){ } | |
25 | 25 | |
26 | - public native void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, int offset); | |
26 | + public void glTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, int offset){ } | |
27 | 27 | |
28 | - public native void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels); | |
28 | + public void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, Buffer pixels){ } | |
29 | 29 | |
30 | - public native void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int offset); | |
30 | + public void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int offset){ } | |
31 | 31 | |
32 | - public native void glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height); | |
32 | + public void glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height){ } | |
33 | 33 | |
34 | - public native void glGenQueries(int n, int[] ids, int offset); | |
34 | + public void glGenQueries(int n, int[] ids, int offset){ } | |
35 | 35 | |
36 | - public native void glGenQueries(int n, IntBuffer ids); | |
36 | + public void glGenQueries(int n, IntBuffer ids){ } | |
37 | 37 | |
38 | - public native void glDeleteQueries(int n, int[] ids, int offset); | |
38 | + public void glDeleteQueries(int n, int[] ids, int offset){ } | |
39 | 39 | |
40 | - public native void glDeleteQueries(int n, IntBuffer ids); | |
40 | + public void glDeleteQueries(int n, IntBuffer ids){ } | |
41 | 41 | |
42 | - public native boolean glIsQuery(int id); | |
42 | + public boolean glIsQuery(int id){ return false; } | |
43 | 43 | |
44 | - public native void glBeginQuery(int target, int id); | |
44 | + public void glBeginQuery(int target, int id){ } | |
45 | 45 | |
46 | - public native void glEndQuery(int target); | |
46 | + public void glEndQuery(int target){ } | |
47 | 47 | |
48 | - public native void glGetQueryiv(int target, int pname, IntBuffer params); | |
48 | + public void glGetQueryiv(int target, int pname, IntBuffer params){ } | |
49 | 49 | |
50 | - public native void glGetQueryObjectuiv(int id, int pname, IntBuffer params); | |
50 | + public void glGetQueryObjectuiv(int id, int pname, IntBuffer params){ } | |
51 | 51 | |
52 | - public native boolean glUnmapBuffer(int target); | |
52 | + public boolean glUnmapBuffer(int target){ return false; } | |
53 | 53 | |
54 | - public native Buffer glGetBufferPointerv(int target, int pname); | |
54 | + public Buffer glGetBufferPointerv(int target, int pname){ return null; } | |
55 | 55 | |
56 | - public native void glDrawBuffers(int n, IntBuffer bufs); | |
56 | + public void glDrawBuffers(int n, IntBuffer bufs){ } | |
57 | 57 | |
58 | - public native void glUniformMatrix2x3fv(int location, int count, boolean transpose, FloatBuffer value); | |
58 | + public void glUniformMatrix2x3fv(int location, int count, boolean transpose, FloatBuffer value){ } | |
59 | 59 | |
60 | - public native void glUniformMatrix3x2fv(int location, int count, boolean transpose, FloatBuffer value); | |
60 | + public void glUniformMatrix3x2fv(int location, int count, boolean transpose, FloatBuffer value){ } | |
61 | 61 | |
62 | - public native void glUniformMatrix2x4fv(int location, int count, boolean transpose, FloatBuffer value); | |
62 | + public void glUniformMatrix2x4fv(int location, int count, boolean transpose, FloatBuffer value){ } | |
63 | 63 | |
64 | - public native void glUniformMatrix4x2fv(int location, int count, boolean transpose, FloatBuffer value); | |
64 | + public void glUniformMatrix4x2fv(int location, int count, boolean transpose, FloatBuffer value){ } | |
65 | 65 | |
66 | - public native void glUniformMatrix3x4fv(int location, int count, boolean transpose, FloatBuffer value); | |
66 | + public void glUniformMatrix3x4fv(int location, int count, boolean transpose, FloatBuffer value){ } | |
67 | 67 | |
68 | - public native void glUniformMatrix4x3fv(int location, int count, boolean transpose, FloatBuffer value); | |
68 | + public void glUniformMatrix4x3fv(int location, int count, boolean transpose, FloatBuffer value){ } | |
69 | 69 | |
70 | - public native void glBlitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter); | |
70 | + public void glBlitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter){ } | |
71 | 71 | |
72 | - public native void glRenderbufferStorageMultisample(int target, int samples, int internalformat, int width, int height); | |
72 | + public void glRenderbufferStorageMultisample(int target, int samples, int internalformat, int width, int height){ } | |
73 | 73 | |
74 | - public native void glFramebufferTextureLayer(int target, int attachment, int texture, int level, int layer); | |
74 | + public void glFramebufferTextureLayer(int target, int attachment, int texture, int level, int layer){ } | |
75 | 75 | |
76 | - public native java.nio.Buffer glMapBufferRange (int target, int offset, int length, int access); | |
76 | + public java.nio.Buffer glMapBufferRange (int target, int offset, int length, int access){ return null; } | |
77 | 77 | |
78 | - public native void glFlushMappedBufferRange(int target, int offset, int length); | |
78 | + public void glFlushMappedBufferRange(int target, int offset, int length){ } | |
79 | 79 | |
80 | - public native void glBindVertexArray(int array); | |
80 | + public void glBindVertexArray(int array){ } | |
81 | 81 | |
82 | - public native void glDeleteVertexArrays(int n, int[] arrays, int offset); | |
82 | + public void glDeleteVertexArrays(int n, int[] arrays, int offset){ } | |
83 | 83 | |
84 | - public native void glDeleteVertexArrays(int n, IntBuffer arrays); | |
84 | + public void glDeleteVertexArrays(int n, IntBuffer arrays){ } | |
85 | 85 | |
86 | - public native void glGenVertexArrays(int n, int[] arrays, int offset); | |
86 | + public void glGenVertexArrays(int n, int[] arrays, int offset){ } | |
87 | 87 | |
88 | - public native void glGenVertexArrays(int n, IntBuffer arrays); | |
88 | + public void glGenVertexArrays(int n, IntBuffer arrays){ } | |
89 | 89 | |
90 | - public native boolean glIsVertexArray(int array); | |
90 | + public boolean glIsVertexArray(int array){ return false; } | |
91 | 91 | |
92 | - public native void glBeginTransformFeedback(int primitiveMode); | |
92 | + public void glBeginTransformFeedback(int primitiveMode){ } | |
93 | 93 | |
94 | - public native void glEndTransformFeedback(); | |
94 | + public void glEndTransformFeedback(){ } | |
95 | 95 | |
96 | - public native void glBindBufferRange(int target, int index, int buffer, int offset, int size); | |
96 | + public void glBindBufferRange(int target, int index, int buffer, int offset, int size){ } | |
97 | 97 | |
98 | - public native void glBindBufferBase(int target, int index, int buffer); | |
98 | + public void glBindBufferBase(int target, int index, int buffer){ } | |
99 | 99 | |
100 | - public native void glTransformFeedbackVaryings(int program, String[] varyings, int bufferMode); | |
100 | + public void glTransformFeedbackVaryings(int program, String[] varyings, int bufferMode){ } | |
101 | 101 | |
102 | - public native void glVertexAttribIPointer(int index, int size, int type, int stride, int offset); | |
102 | + public void glVertexAttribIPointer(int index, int size, int type, int stride, int offset){ } | |
103 | 103 | |
104 | - public native void glGetVertexAttribIiv(int index, int pname, IntBuffer params); | |
104 | + public void glGetVertexAttribIiv(int index, int pname, IntBuffer params){ } | |
105 | 105 | |
106 | - public native void glGetVertexAttribIuiv(int index, int pname, IntBuffer params); | |
106 | + public void glGetVertexAttribIuiv(int index, int pname, IntBuffer params){ } | |
107 | 107 | |
108 | - public native void glVertexAttribI4i(int index, int x, int y, int z, int w); | |
108 | + public void glVertexAttribI4i(int index, int x, int y, int z, int w){ } | |
109 | 109 | |
110 | - public native void glVertexAttribI4ui(int index, int x, int y, int z, int w); | |
110 | + public void glVertexAttribI4ui(int index, int x, int y, int z, int w){ } | |
111 | 111 | |
112 | - public native void glGetUniformuiv(int program, int location, IntBuffer params); | |
112 | + public void glGetUniformuiv(int program, int location, IntBuffer params){ } | |
113 | 113 | |
114 | - public native int glGetFragDataLocation(int program, String name); | |
114 | + public int glGetFragDataLocation(int program, String name){ return 0; } | |
115 | 115 | |
116 | - public native void glUniform1uiv(int location, int count, IntBuffer value); | |
116 | + public void glUniform1uiv(int location, int count, IntBuffer value){ } | |
117 | 117 | |
118 | - public native void glUniform3uiv(int location, int count, IntBuffer value); | |
118 | + public void glUniform3uiv(int location, int count, IntBuffer value){ } | |
119 | 119 | |
120 | - public native void glUniform4uiv(int location, int count, IntBuffer value); | |
120 | + public void glUniform4uiv(int location, int count, IntBuffer value){ } | |
121 | 121 | |
122 | - public native void glClearBufferiv(int buffer, int drawbuffer, IntBuffer value); | |
122 | + public void glClearBufferiv(int buffer, int drawbuffer, IntBuffer value){ } | |
123 | 123 | |
124 | - public native void glClearBufferuiv(int buffer, int drawbuffer, IntBuffer value); | |
124 | + public void glClearBufferuiv(int buffer, int drawbuffer, IntBuffer value){ } | |
125 | 125 | |
126 | - public native void glClearBufferfv(int buffer, int drawbuffer, FloatBuffer value); | |
126 | + public void glClearBufferfv(int buffer, int drawbuffer, FloatBuffer value){ } | |
127 | 127 | |
128 | - public native void glClearBufferfi(int buffer, int drawbuffer, float depth, int stencil); | |
128 | + public void glClearBufferfi(int buffer, int drawbuffer, float depth, int stencil){ } | |
129 | 129 | |
130 | - public native String glGetStringi(int name, int index); | |
130 | + public String glGetStringi(int name, int index){ return ""; } | |
131 | 131 | |
132 | - public native void glCopyBufferSubData(int readTarget, int writeTarget, int readOffset, int writeOffset, int size); | |
132 | + public void glCopyBufferSubData(int readTarget, int writeTarget, int readOffset, int writeOffset, int size){ } | |
133 | 133 | |
134 | - public native void glGetUniformIndices(int program, String[] uniformNames, IntBuffer uniformIndices); | |
134 | + public void glGetUniformIndices(int program, String[] uniformNames, IntBuffer uniformIndices){ } | |
135 | 135 | |
136 | - public native void glGetActiveUniformsiv(int program, int uniformCount, IntBuffer uniformIndices, int pname, IntBuffer params); | |
136 | + public void glGetActiveUniformsiv(int program, int uniformCount, IntBuffer uniformIndices, int pname, IntBuffer params){ } | |
137 | 137 | |
138 | - public native int glGetUniformBlockIndex(int program, String uniformBlockName); | |
138 | + public int glGetUniformBlockIndex(int program, String uniformBlockName){ return 0; } | |
139 | 139 | |
140 | - public native void glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, IntBuffer params); | |
140 | + public void glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, IntBuffer params){ } | |
141 | 141 | |
142 | - public native void glGetActiveUniformBlockName(int program, int uniformBlockIndex, Buffer length, Buffer uniformBlockName); | |
142 | + public void glGetActiveUniformBlockName(int program, int uniformBlockIndex, Buffer length, Buffer uniformBlockName){ } | |
143 | 143 | |
144 | - public native String glGetActiveUniformBlockName(int program, int uniformBlockIndex); | |
144 | + public String glGetActiveUniformBlockName(int program, int uniformBlockIndex){ return ""; } | |
145 | 145 | |
146 | - public native void glUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding); | |
146 | + public void glUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding){ } | |
147 | 147 | |
148 | - public native void glDrawArraysInstanced(int mode, int first, int count, int instanceCount); | |
148 | + public void glDrawArraysInstanced(int mode, int first, int count, int instanceCount){ } | |
149 | 149 | |
150 | - public native void glDrawElementsInstanced(int mode, int count, int type, int indicesOffset, int instanceCount); | |
150 | + public void glDrawElementsInstanced(int mode, int count, int type, int indicesOffset, int instanceCount){ } | |
151 | 151 | |
152 | - public native void glGetInteger64v(int pname, LongBuffer params); | |
152 | + public void glGetInteger64v(int pname, LongBuffer params){ } | |
153 | 153 | |
154 | - public native void glGetBufferParameteri64v(int target, int pname, LongBuffer params); | |
154 | + public void glGetBufferParameteri64v(int target, int pname, LongBuffer params){ } | |
155 | 155 | |
156 | - public native void glGenSamplers(int count, int[] samplers, int offset); | |
156 | + public void glGenSamplers(int count, int[] samplers, int offset){ } | |
157 | 157 | |
158 | - public native void glGenSamplers(int count, IntBuffer samplers); | |
158 | + public void glGenSamplers(int count, IntBuffer samplers){ } | |
159 | 159 | |
160 | - public native void glDeleteSamplers(int count, int[] samplers, int offset); | |
160 | + public void glDeleteSamplers(int count, int[] samplers, int offset){ } | |
161 | 161 | |
162 | - public native void glDeleteSamplers(int count, IntBuffer samplers); | |
162 | + public void glDeleteSamplers(int count, IntBuffer samplers){ } | |
163 | 163 | |
164 | - public native boolean glIsSampler(int sampler); | |
164 | + public boolean glIsSampler(int sampler){ return false; } | |
165 | 165 | |
166 | - public native void glBindSampler(int unit, int sampler); | |
166 | + public void glBindSampler(int unit, int sampler){ } | |
167 | 167 | |
168 | - public native void glSamplerParameteri(int sampler, int pname, int param); | |
168 | + public void glSamplerParameteri(int sampler, int pname, int param){ } | |
169 | 169 | |
170 | - public native void glSamplerParameteriv(int sampler, int pname, IntBuffer param); | |
170 | + public void glSamplerParameteriv(int sampler, int pname, IntBuffer param){ } | |
171 | 171 | |
172 | - public native void glSamplerParameterf(int sampler, int pname, float param); | |
172 | + public void glSamplerParameterf(int sampler, int pname, float param){ } | |
173 | 173 | |
174 | - public native void glSamplerParameterfv(int sampler, int pname, FloatBuffer param); | |
174 | + public void glSamplerParameterfv(int sampler, int pname, FloatBuffer param){ } | |
175 | 175 | |
176 | - public native void glGetSamplerParameteriv(int sampler, int pname, IntBuffer params); | |
176 | + public void glGetSamplerParameteriv(int sampler, int pname, IntBuffer params){ } | |
177 | 177 | |
178 | - public native void glGetSamplerParameterfv(int sampler, int pname, FloatBuffer params); | |
178 | + public void glGetSamplerParameterfv(int sampler, int pname, FloatBuffer params){ } | |
179 | 179 | |
180 | - public native void glVertexAttribDivisor(int index, int divisor); | |
180 | + public void glVertexAttribDivisor(int index, int divisor){ } | |
181 | 181 | |
182 | - public native void glBindTransformFeedback(int target, int id); | |
182 | + public void glBindTransformFeedback(int target, int id){ } | |
183 | 183 | |
184 | - public native void glDeleteTransformFeedbacks(int n, int[] ids, int offset); | |
184 | + public void glDeleteTransformFeedbacks(int n, int[] ids, int offset){ } | |
185 | 185 | |
186 | - public native void glDeleteTransformFeedbacks(int n, IntBuffer ids); | |
186 | + public void glDeleteTransformFeedbacks(int n, IntBuffer ids){ } | |
187 | 187 | |
188 | - public native void glGenTransformFeedbacks(int n, int[] ids, int offset); | |
188 | + public void glGenTransformFeedbacks(int n, int[] ids, int offset){ } | |
189 | 189 | |
190 | - public native void glGenTransformFeedbacks(int n, IntBuffer ids); | |
190 | + public void glGenTransformFeedbacks(int n, IntBuffer ids){ } | |
191 | 191 | |
192 | - public native boolean glIsTransformFeedback(int id); | |
192 | + public boolean glIsTransformFeedback(int id){ return false; } | |
193 | 193 | |
194 | - public native void glPauseTransformFeedback(); | |
194 | + public void glPauseTransformFeedback(){ } | |
195 | 195 | |
196 | - public native void glResumeTransformFeedback(); | |
196 | + public void glResumeTransformFeedback(){ } | |
197 | 197 | |
198 | - public native void glProgramParameteri(int program, int pname, int value); | |
198 | + public void glProgramParameteri(int program, int pname, int value){ } | |
199 | 199 | |
200 | - public native void glInvalidateFramebuffer(int target, int numAttachments, IntBuffer attachments); | |
200 | + public void glInvalidateFramebuffer(int target, int numAttachments, IntBuffer attachments){ } | |
201 | 201 | |
202 | - public native void glInvalidateSubFramebuffer(int target, int numAttachments, IntBuffer attachments, int x, int y, int width, int height); | |
202 | + public void glInvalidateSubFramebuffer(int target, int numAttachments, IntBuffer attachments, int x, int y, int width, int height){ } | |
203 | 203 | } |
\ No newline at end of file |
@@ -102,129 +102,6 @@ | ||
102 | 102 | <mkdir dir="${libsDir}"/> |
103 | 103 | </target> |
104 | 104 | |
105 | - <!-- compiles all C and C++ files to object files in the build directory, for x86_64 builds--> | |
106 | - <target name="compile-x86_64" depends="create-build-dir"> | |
107 | - <apply failonerror="false" executable="${g++}" dest="${buildDir}/x86_64" verbose="true"> | |
108 | - <arg line="-isysroot ${iphonesimulator-sdk} -arch x86_64 -mios-simulator-version-min=${minIOSVersion} ${g++-opts}"/> | |
109 | - <arg value="-Ijni-headers"/> | |
110 | - <arg value="-Ijni-headers/${jniPlatform}"/> | |
111 | - <arg value="-I."/> | |
112 | - <arg value="-g"/> | |
113 | - <arg value="-Isrc/bullet/"/> | |
114 | - <arg value="-Isrc/custom/"/> | |
115 | - <arg value="-Isrc/extras/Serialize/"/> | |
116 | - <arg value="-Isrc/extras/"/> | |
117 | - | |
118 | - <srcfile/> | |
119 | - <arg value="-o"/> | |
120 | - <targetfile/> | |
121 | - <fileset refid="g++-files"/> | |
122 | - <compositemapper> | |
123 | - <mapper type="glob" from="*.cpp" to="*.o"/> | |
124 | - <mapper type="glob" from="*.mm" to="*.o"/> | |
125 | - </compositemapper> | |
126 | - </apply> | |
127 | - <apply failonerror="false" executable="${gcc}" dest="${buildDir}/x86_64" verbose="true"> | |
128 | - <arg line="-isysroot ${iphonesimulator-sdk} -arch x86_64 -mios-simulator-version-min=${minIOSVersion} ${gcc-opts}"/> | |
129 | - <arg value="-Ijni-headers"/> | |
130 | - <arg value="-Ijni-headers/${jniPlatform}"/> | |
131 | - <arg value="-I."/> | |
132 | - <arg value="-g"/> | |
133 | - <arg value="-Isrc/bullet/"/> | |
134 | - <arg value="-Isrc/custom/"/> | |
135 | - <arg value="-Isrc/extras/Serialize/"/> | |
136 | - <arg value="-Isrc/extras/"/> | |
137 | - | |
138 | - <srcfile/> | |
139 | - <arg value="-o"/> | |
140 | - <targetfile/> | |
141 | - <fileset refid="gcc-files"/> | |
142 | - <compositemapper> | |
143 | - <mapper type="glob" from="*.c" to="*.o"/> | |
144 | - </compositemapper> | |
145 | - </apply> | |
146 | - </target> | |
147 | - | |
148 | - <!-- links the shared library based on the previously compiled object files --> | |
149 | - <target name="link-x86_64" depends="compile-x86_64"> | |
150 | - <fileset dir="${buildDir}/x86_64" id="objFileSet"> | |
151 | - <patternset> | |
152 | - <include name="**/*.o" /> | |
153 | - </patternset> | |
154 | - </fileset> | |
155 | - <pathconvert pathsep=" " property="objFiles" refid="objFileSet" /> | |
156 | - <mkdir dir="${libsDir}" /> | |
157 | - <exec executable="${linker}" failonerror="false" dir="${buildDir}/x86_64"> | |
158 | - <arg line="-isysroot ${iphonesimulator-sdk} -arch x86_64 -mios-simulator-version-min=${minIOSVersion} ${linker-opts}"/> | |
159 | - <arg value="-o" /> | |
160 | - <arg path="${buildDir}/x86_64/${libName}" /> | |
161 | - <arg line="${objFiles}"/> | |
162 | - <arg line="${libraries}" /> | |
163 | - </exec> | |
164 | - </target> | |
165 | - | |
166 | - | |
167 | - <!-- compiles all C and C++ files to object files in the build directory, for arm64 simulator builds--> | |
168 | - <target name="compile-arm64-simulator" depends="create-build-dir"> | |
169 | - <apply failonerror="false" executable="${g++}" dest="${buildDir}/arm64-simulator" verbose="true"> | |
170 | - <arg line="-isysroot ${iphonesimulator-sdk} -arch arm64 -mios-simulator-version-min=${minIOSVersion} ${g++-opts}"/> | |
171 | - <arg value="-Ijni-headers"/> | |
172 | - <arg value="-Ijni-headers/${jniPlatform}"/> | |
173 | - <arg value="-I."/> | |
174 | - <arg value="-g"/> | |
175 | - <arg value="-Isrc/bullet/"/> | |
176 | - <arg value="-Isrc/custom/"/> | |
177 | - <arg value="-Isrc/extras/Serialize/"/> | |
178 | - <arg value="-Isrc/extras/"/> | |
179 | - | |
180 | - <srcfile/> | |
181 | - <arg value="-o"/> | |
182 | - <targetfile/> | |
183 | - <fileset refid="g++-files"/> | |
184 | - <compositemapper> | |
185 | - <mapper type="glob" from="*.cpp" to="*.o"/> | |
186 | - <mapper type="glob" from="*.mm" to="*.o"/> | |
187 | - </compositemapper> | |
188 | - </apply> | |
189 | - <apply failonerror="false" executable="${gcc}" dest="${buildDir}/arm64-simulator" verbose="true"> | |
190 | - <arg line="-isysroot ${iphonesimulator-sdk} -arch arm64 -mios-simulator-version-min=${minIOSVersion} ${gcc-opts}"/> | |
191 | - <arg value="-Ijni-headers"/> | |
192 | - <arg value="-Ijni-headers/${jniPlatform}"/> | |
193 | - <arg value="-I."/> | |
194 | - <arg value="-g"/> | |
195 | - <arg value="-Isrc/bullet/"/> | |
196 | - <arg value="-Isrc/custom/"/> | |
197 | - <arg value="-Isrc/extras/Serialize/"/> | |
198 | - <arg value="-Isrc/extras/"/> | |
199 | - | |
200 | - <srcfile/> | |
201 | - <arg value="-o"/> | |
202 | - <targetfile/> | |
203 | - <fileset refid="gcc-files"/> | |
204 | - <compositemapper> | |
205 | - <mapper type="glob" from="*.c" to="*.o"/> | |
206 | - </compositemapper> | |
207 | - </apply> | |
208 | - </target> | |
209 | - | |
210 | - <!-- links the shared library based on the previously compiled object files --> | |
211 | - <target name="link-arm64-simulator" depends="compile-arm64-simulator"> | |
212 | - <fileset dir="${buildDir}/arm64-simulator" id="objFileSetArm64Simulator"> | |
213 | - <patternset> | |
214 | - <include name="**/*.o" /> | |
215 | - </patternset> | |
216 | - </fileset> | |
217 | - <pathconvert pathsep=" " property="objFilesArm64Simulator" refid="objFileSetArm64Simulator" /> | |
218 | - <mkdir dir="${libsDir}" /> | |
219 | - <exec executable="${linker}" failonerror="false" dir="${buildDir}/arm64-simulator"> | |
220 | - <arg line="-isysroot ${iphonesimulator-sdk} -arch arm64 -mios-simulator-version-min=${minIOSVersion} ${linker-opts}"/> | |
221 | - <arg value="-o" /> | |
222 | - <arg path="${buildDir}/arm64-simulator/${libName}" /> | |
223 | - <arg line="${objFilesArm64Simulator}"/> | |
224 | - <arg line="${libraries}" /> | |
225 | - </exec> | |
226 | - </target> | |
227 | - | |
228 | 105 | <!-- compiles all C and C++ files to object files in the build directory, for arm64 builds--> |
229 | 106 | <target name="compile-arm64" depends="create-build-dir"> |
230 | 107 | <apply failonerror="true" executable="${g++}" dest="${buildDir}/arm64" verbose="true"> |
@@ -286,13 +163,13 @@ | ||
286 | 163 | </exec> |
287 | 164 | </target> |
288 | 165 | |
289 | - <target name="archive-fat" depends="link-x86_64,link-arm64-simulator,link-arm64"> | |
166 | + <target name="archive-fat" depends="link-arm64"> | |
290 | 167 | <mkdir dir="${buildDir}/device/${libName}.framework/"/> |
291 | 168 | <copy file="${buildDir}/arm64/${libName}" tofile="${buildDir}/device/${libName}.framework/${libName}"/> |
292 | 169 | <mkdir dir="${buildDir}/simulator/${libName}.framework/"/> |
293 | - <exec executable="lipo" failonerror="true" dir="${buildDir}"> | |
170 | + <!--<exec executable="lipo" failonerror="true" dir="${buildDir}"> | |
294 | 171 | <arg line="-create -output simulator/${libName}.framework/${libName} x86_64/${libName} arm64-simulator/${libName}"/> |
295 | - </exec> | |
172 | + </exec>--> | |
296 | 173 | </target> |
297 | 174 | |
298 | 175 | <target name="build-plist-device" depends="archive-fat"> |
@@ -317,34 +194,10 @@ | ||
317 | 194 | </exec> |
318 | 195 | </target> |
319 | 196 | |
320 | - <target name="build-plist-simulator" depends="archive-fat"> | |
321 | - <copy file="Info.plist" tofile="${buildDir}/simulator/${libName}.framework/Info.plist"/> | |
322 | - <exec executable="/usr/libexec/PlistBuddy" failonerror="true" dir="${buildDir}"> | |
323 | - <arg value="-c"/> | |
324 | - <arg value="Set :CFBundleName ${libName}"/> | |
325 | - <arg value="-c"/> | |
326 | - <arg value="Set :CFBundleExecutable ${libName}"/> | |
327 | - <arg value="-c"/> | |
328 | - <arg value="Set :DTPlatformName iphonesimulator"/> | |
329 | - <arg value="-c"/> | |
330 | - <arg value="Set :CFBundleIdentifier ${xcframeworkBundleIdentifier}"/> | |
331 | - <arg value="-c"/> | |
332 | - <arg value="Set :MinimumOSVersion ${minIOSVersion}"/> | |
333 | - <arg value="${absolute.buildDir}/simulator/${libName}.framework/Info.plist"/> | |
334 | - </exec> | |
335 | - <exec executable="plutil" failonerror="true" dir="${buildDir}"> | |
336 | - <arg line="-convert"/> | |
337 | - <arg line="binary1"/> | |
338 | - <arg line="${absolute.buildDir}/simulator/${libName}.framework/Info.plist"/> | |
339 | - </exec> | |
340 | - </target> | |
341 | 197 | |
342 | - <target name="generate-dsyms" depends="build-plist-device,build-plist-simulator"> | |
343 | - <exec executable="dsymutil" failonerror="true" dir="${buildDir}"> | |
344 | - <arg line="${absolute.buildDir}/simulator/${libName}.framework/${libName}"/> | |
345 | - <arg line="-o"/> | |
346 | - <arg line="${absolute.buildDir}/simulator/${libName}.framework.dSYM"/> | |
347 | - </exec> | |
198 | + | |
199 | + <target name="generate-dsyms" depends="build-plist-device"> | |
200 | + | |
348 | 201 | <exec executable="dsymutil" failonerror="true" dir="${buildDir}"> |
349 | 202 | <arg line="${absolute.buildDir}/device/${libName}.framework/${libName}"/> |
350 | 203 | <arg line="-o"/> |
@@ -354,10 +207,7 @@ | ||
354 | 207 | |
355 | 208 | |
356 | 209 | <target name="strip" depends="generate-dsyms"> |
357 | - <exec executable="strip" failonerror="true" dir="${buildDir}"> | |
358 | - <arg line="-x"/> | |
359 | - <arg line="${absolute.buildDir}/simulator/${libName}.framework/${libName}"/> | |
360 | - </exec> | |
210 | + | |
361 | 211 | <exec executable="strip" failonerror="true" dir="${buildDir}"> |
362 | 212 | <arg line="-x"/> |
363 | 213 | <arg line="${absolute.buildDir}/device/${libName}.framework/${libName}"/> |
@@ -373,11 +223,11 @@ | ||
373 | 223 | <arg line="-debug-symbols"/> |
374 | 224 | <arg line="${absolute.buildDir}/device/${libName}.framework.dSYM"/> |
375 | 225 | |
376 | - <arg line="-framework"/> | |
226 | + <!--<arg line="-framework"/> | |
377 | 227 | <arg line="${buildDir}/simulator/${libName}.framework"/> |
378 | 228 | <arg line="-debug-symbols"/> |
379 | 229 | <arg line="${absolute.buildDir}/simulator/${libName}.framework.dSYM"/> |
380 | - | |
230 | + --> | |
381 | 231 | <arg line="-output"/> |
382 | 232 | <arg line="${libsDir}/${xcframeworkName}.xcframework"/> |
383 | 233 | </exec> |
@@ -3,8 +3,8 @@ | ||
3 | 3 | |
4 | 4 | #if TARGET_OS_IPHONE |
5 | 5 | #include <iosgl/iosgl20.h> |
6 | -#include <OpenGLES/ES2/gl.h> | |
7 | -#include <OpenGLES/ES2/glext.h> | |
6 | +//#include <OpenGLES/ES2/gl.h> | |
7 | +//#include <OpenGLES/ES2/glext.h> | |
8 | 8 | #include <stdio.h> |
9 | 9 | |
10 | 10 | static jclass bufferClass; |
@@ -117,7 +117,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_init | ||
117 | 117 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glActiveTexture |
118 | 118 | (JNIEnv *, jobject, jint texture) |
119 | 119 | { |
120 | - glActiveTexture( texture ); | |
120 | + //glActiveTexture( texture ); | |
121 | 121 | } |
122 | 122 | |
123 | 123 | /* |
@@ -128,7 +128,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glActi | ||
128 | 128 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glAttachShader |
129 | 129 | (JNIEnv *, jobject, jint program, jint shader) |
130 | 130 | { |
131 | - glAttachShader( program, shader ); | |
131 | + //glAttachShader( program, shader ); | |
132 | 132 | } |
133 | 133 | |
134 | 134 | /* |
@@ -140,7 +140,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBind | ||
140 | 140 | (JNIEnv *env, jobject, jint program, jint index, jstring name) |
141 | 141 | { |
142 | 142 | const char* namePtr = getString( env, name ); |
143 | - glBindAttribLocation( program, index, namePtr ); | |
143 | + //glBindAttribLocation( program, index, namePtr ); | |
144 | 144 | releaseString( env, name, namePtr ); |
145 | 145 | } |
146 | 146 |
@@ -152,7 +152,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBind | ||
152 | 152 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBindBuffer |
153 | 153 | (JNIEnv *env, jobject, jint target, jint buffer) |
154 | 154 | { |
155 | - glBindBuffer( target, buffer ); | |
155 | + //glBindBuffer( target, buffer ); | |
156 | 156 | } |
157 | 157 | |
158 | 158 | /* |
@@ -163,7 +163,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBind | ||
163 | 163 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBindFramebuffer |
164 | 164 | (JNIEnv *env, jobject, jint target, jint framebuffer) |
165 | 165 | { |
166 | - glBindFramebuffer( target, framebuffer ); | |
166 | + //glBindFramebuffer( target, framebuffer ); | |
167 | 167 | } |
168 | 168 | |
169 | 169 | /* |
@@ -174,7 +174,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBind | ||
174 | 174 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBindRenderbuffer |
175 | 175 | (JNIEnv *env, jobject, jint target, jint renderbuffer) |
176 | 176 | { |
177 | - glBindRenderbuffer( target, renderbuffer ); | |
177 | + //glBindRenderbuffer( target, renderbuffer ); | |
178 | 178 | } |
179 | 179 | |
180 | 180 | /* |
@@ -185,7 +185,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBind | ||
185 | 185 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBindTexture |
186 | 186 | (JNIEnv *env, jobject, jint target, jint texture) |
187 | 187 | { |
188 | - glBindTexture( target, texture ); | |
188 | + //glBindTexture( target, texture ); | |
189 | 189 | } |
190 | 190 | |
191 | 191 | /* |
@@ -196,7 +196,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBind | ||
196 | 196 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlendColor |
197 | 197 | (JNIEnv *env, jobject, jfloat red, jfloat green, jfloat blue, jfloat alpha) |
198 | 198 | { |
199 | - glBlendColor( red, green, blue, alpha ); | |
199 | + //glBlendColor( red, green, blue, alpha ); | |
200 | 200 | } |
201 | 201 | |
202 | 202 | /* |
@@ -207,7 +207,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlen | ||
207 | 207 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlendEquation |
208 | 208 | (JNIEnv *env, jobject, jint mode) |
209 | 209 | { |
210 | - glBlendEquation( mode ); | |
210 | + //glBlendEquation( mode ); | |
211 | 211 | } |
212 | 212 | |
213 | 213 | /* |
@@ -218,7 +218,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlen | ||
218 | 218 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlendEquationSeparate |
219 | 219 | (JNIEnv *env, jobject, jint modeRGB, jint modeAlpha) |
220 | 220 | { |
221 | - glBlendEquationSeparate( modeRGB, modeAlpha ); | |
221 | + //glBlendEquationSeparate( modeRGB, modeAlpha ); | |
222 | 222 | } |
223 | 223 | |
224 | 224 | /* |
@@ -229,7 +229,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlen | ||
229 | 229 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlendFunc |
230 | 230 | (JNIEnv *env, jobject, jint sfactor, jint dfactor) |
231 | 231 | { |
232 | - glBlendFunc( sfactor, dfactor ); | |
232 | + //glBlendFunc( sfactor, dfactor ); | |
233 | 233 | } |
234 | 234 | |
235 | 235 | /* |
@@ -240,7 +240,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlen | ||
240 | 240 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlendFuncSeparate |
241 | 241 | (JNIEnv *env, jobject, jint srcRGB, jint dstRGB, jint srcAlpha, jint dstAlpha) |
242 | 242 | { |
243 | - glBlendFuncSeparate( srcRGB, dstRGB, srcAlpha, dstAlpha); | |
243 | + //glBlendFuncSeparate( srcRGB, dstRGB, srcAlpha, dstAlpha); | |
244 | 244 | } |
245 | 245 | |
246 | 246 | /* |
@@ -251,8 +251,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBlen | ||
251 | 251 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBufferData |
252 | 252 | (JNIEnv * env, jobject, jint target, jint size, jobject data, jint usage) |
253 | 253 | { |
254 | - void* dataPtr = getDirectBufferPointer( env, data ); | |
255 | - glBufferData( target, size, dataPtr, usage ); | |
254 | + //void* dataPtr = getDirectBufferPointer( env, data ); | |
255 | + //glBufferData( target, size, dataPtr, usage ); | |
256 | 256 | } |
257 | 257 | |
258 | 258 | /* |
@@ -263,8 +263,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBuff | ||
263 | 263 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBufferSubData |
264 | 264 | (JNIEnv *env, jobject, jint target, jint offset, jint size, jobject data) |
265 | 265 | { |
266 | - void* dataPtr = getDirectBufferPointer( env, data ); | |
267 | - glBufferSubData( target, offset, size, dataPtr ); | |
266 | + //void* dataPtr = getDirectBufferPointer( env, data ); | |
267 | + //glBufferSubData( target, offset, size, dataPtr ); | |
268 | 268 | } |
269 | 269 | |
270 | 270 | /* |
@@ -275,7 +275,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glBuff | ||
275 | 275 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCheckFramebufferStatus |
276 | 276 | (JNIEnv *env, jobject, jint target) |
277 | 277 | { |
278 | - return glCheckFramebufferStatus( target ); | |
278 | + return 0;//glCheckFramebufferStatus( target ); | |
279 | 279 | } |
280 | 280 | |
281 | 281 | /* |
@@ -286,7 +286,7 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glChec | ||
286 | 286 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glClear |
287 | 287 | (JNIEnv *env, jobject, jint mask) |
288 | 288 | { |
289 | - glClear( mask ); | |
289 | + //glClear( mask ); | |
290 | 290 | } |
291 | 291 | |
292 | 292 | /* |
@@ -297,7 +297,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glClea | ||
297 | 297 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glClearColor |
298 | 298 | (JNIEnv *env, jobject, jfloat red, jfloat green, jfloat blue, jfloat alpha) |
299 | 299 | { |
300 | - glClearColor( red, green, blue, alpha ); | |
300 | + //glClearColor( red, green, blue, alpha ); | |
301 | 301 | } |
302 | 302 | |
303 | 303 | /* |
@@ -308,7 +308,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glClea | ||
308 | 308 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glClearDepthf |
309 | 309 | (JNIEnv *env, jobject, jfloat depth) |
310 | 310 | { |
311 | - glClearDepthf( depth ); | |
311 | + //glClearDepthf( depth ); | |
312 | 312 | } |
313 | 313 | |
314 | 314 | /* |
@@ -319,7 +319,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glClea | ||
319 | 319 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glClearStencil |
320 | 320 | (JNIEnv *env, jobject, jint s) |
321 | 321 | { |
322 | - glClearStencil( s ); | |
322 | + //glClearStencil( s ); | |
323 | 323 | } |
324 | 324 | |
325 | 325 | /* |
@@ -330,7 +330,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glClea | ||
330 | 330 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glColorMask |
331 | 331 | (JNIEnv *env, jobject, jboolean red, jboolean green, jboolean blue, jboolean alpha) |
332 | 332 | { |
333 | - glColorMask( red, green, blue, alpha ); | |
333 | + //glColorMask( red, green, blue, alpha ); | |
334 | 334 | } |
335 | 335 | |
336 | 336 | /* |
@@ -341,7 +341,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glColo | ||
341 | 341 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCompileShader |
342 | 342 | (JNIEnv *env, jobject, jint shader) |
343 | 343 | { |
344 | - glCompileShader( shader ); | |
344 | + //glCompileShader( shader ); | |
345 | 345 | } |
346 | 346 | |
347 | 347 | /* |
@@ -352,8 +352,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glComp | ||
352 | 352 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCompressedTexImage2D |
353 | 353 | (JNIEnv *env, jobject, jint target, jint level, jint internalFormat, jint width, jint height, jint border, jint imageSize, jobject data) |
354 | 354 | { |
355 | - void* dataPtr = getDirectBufferPointer( env, data ); | |
356 | - glCompressedTexImage2D( target, level, internalFormat, width, height, border, imageSize, dataPtr ); | |
355 | + //void* dataPtr = getDirectBufferPointer( env, data ); | |
356 | + //glCompressedTexImage2D( target, level, internalFormat, width, height, border, imageSize, dataPtr ); | |
357 | 357 | } |
358 | 358 | |
359 | 359 | /* |
@@ -364,8 +364,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glComp | ||
364 | 364 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCompressedTexSubImage2D |
365 | 365 | (JNIEnv *env, jobject, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imageSize, jobject data) |
366 | 366 | { |
367 | - void* dataPtr = getDirectBufferPointer( env, data ); | |
368 | - glCompressedTexSubImage2D( target, level, xoffset, yoffset, width, height, format, imageSize, dataPtr ); | |
367 | + //void* dataPtr = getDirectBufferPointer( env, data ); | |
368 | + //glCompressedTexSubImage2D( target, level, xoffset, yoffset, width, height, format, imageSize, dataPtr ); | |
369 | 369 | } |
370 | 370 | |
371 | 371 | /* |
@@ -376,7 +376,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glComp | ||
376 | 376 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCopyTexImage2D |
377 | 377 | (JNIEnv *env, jobject, jint target, jint level, jint internalFormat, jint x, jint y, jint width, jint height, jint border) |
378 | 378 | { |
379 | - glCopyTexImage2D( target, level, internalFormat, x, y, width, height, border ); | |
379 | + //glCopyTexImage2D( target, level, internalFormat, x, y, width, height, border ); | |
380 | 380 | } |
381 | 381 | |
382 | 382 | /* |
@@ -387,7 +387,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCopy | ||
387 | 387 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCopyTexSubImage2D |
388 | 388 | (JNIEnv *env, jobject, jint target, jint level, jint xoffset, jint yoffset, jint x, jint y, jint width, jint height) |
389 | 389 | { |
390 | - glCopyTexSubImage2D( target, level, xoffset, yoffset, x, y, width, height ); | |
390 | + //glCopyTexSubImage2D( target, level, xoffset, yoffset, x, y, width, height ); | |
391 | 391 | } |
392 | 392 | |
393 | 393 | /* |
@@ -398,7 +398,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCopy | ||
398 | 398 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCreateProgram |
399 | 399 | (JNIEnv *env, jobject) |
400 | 400 | { |
401 | - return glCreateProgram( ); | |
401 | + return 0;//glCreateProgram( ); | |
402 | 402 | } |
403 | 403 | |
404 | 404 | /* |
@@ -409,7 +409,7 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCrea | ||
409 | 409 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCreateShader |
410 | 410 | (JNIEnv *env, jobject, jint type) |
411 | 411 | { |
412 | - return glCreateShader( type ); | |
412 | + return 0;//glCreateShader( type ); | |
413 | 413 | } |
414 | 414 | |
415 | 415 | /* |
@@ -420,7 +420,7 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCrea | ||
420 | 420 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCullFace |
421 | 421 | (JNIEnv *env, jobject, jint mode) |
422 | 422 | { |
423 | - glCullFace( mode ); | |
423 | + //glCullFace( mode ); | |
424 | 424 | } |
425 | 425 | |
426 | 426 | /* |
@@ -431,8 +431,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glCull | ||
431 | 431 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteBuffers |
432 | 432 | (JNIEnv *env, jobject, jint n, jobject buffers) |
433 | 433 | { |
434 | - void* dataPtr = getDirectBufferPointer( env, buffers ); | |
435 | - glDeleteBuffers( n, (GLuint*)dataPtr ); | |
434 | + //void* dataPtr = getDirectBufferPointer( env, buffers ); | |
435 | + //glDeleteBuffers( n, (GLuint*)dataPtr ); | |
436 | 436 | } |
437 | 437 | |
438 | 438 | /* |
@@ -443,8 +443,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
443 | 443 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteBuffer |
444 | 444 | (JNIEnv *, jobject, jint buffer) |
445 | 445 | { |
446 | - GLuint b = buffer; | |
447 | - glDeleteBuffers (1, &b); | |
446 | + //GLuint b = buffer; | |
447 | + //glDeleteBuffers (1, &b); | |
448 | 448 | } |
449 | 449 | |
450 | 450 | /* |
@@ -455,8 +455,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
455 | 455 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteFramebuffers |
456 | 456 | (JNIEnv *env, jobject, jint n, jobject framebuffers) |
457 | 457 | { |
458 | - void* dataPtr = getDirectBufferPointer( env, framebuffers ); | |
459 | - glDeleteFramebuffers( n, (GLuint*)dataPtr ); | |
458 | + //void* dataPtr = getDirectBufferPointer( env, framebuffers ); | |
459 | + //glDeleteFramebuffers( n, (GLuint*)dataPtr ); | |
460 | 460 | } |
461 | 461 | |
462 | 462 | /* |
@@ -467,8 +467,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
467 | 467 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteFramebuffer |
468 | 468 | (JNIEnv *, jobject, jint buffer) |
469 | 469 | { |
470 | - GLuint b = buffer; | |
471 | - glDeleteFramebuffers(1, &b); | |
470 | + //GLuint b = buffer; | |
471 | + //glDeleteFramebuffers(1, &b); | |
472 | 472 | } |
473 | 473 | |
474 | 474 | /* |
@@ -479,7 +479,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
479 | 479 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteProgram |
480 | 480 | (JNIEnv *env, jobject, jint program) |
481 | 481 | { |
482 | - glDeleteProgram( program ); | |
482 | + //glDeleteProgram( program ); | |
483 | 483 | } |
484 | 484 | |
485 | 485 | /* |
@@ -490,8 +490,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
490 | 490 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteRenderbuffers |
491 | 491 | (JNIEnv *env, jobject, jint n, jobject renderbuffers) |
492 | 492 | { |
493 | - void* dataPtr = getDirectBufferPointer( env, renderbuffers ); | |
494 | - glDeleteRenderbuffers( n, (GLuint*)dataPtr ); | |
493 | + //void* dataPtr = getDirectBufferPointer( env, renderbuffers ); | |
494 | + //glDeleteRenderbuffers( n, (GLuint*)dataPtr ); | |
495 | 495 | } |
496 | 496 | |
497 | 497 | /* |
@@ -502,8 +502,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
502 | 502 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteRenderbuffer |
503 | 503 | (JNIEnv *, jobject, jint buffer) |
504 | 504 | { |
505 | - GLuint b = buffer; | |
506 | - glDeleteRenderbuffers( 1, &b ); | |
505 | + //GLuint b = buffer; | |
506 | + //glDeleteRenderbuffers( 1, &b ); | |
507 | 507 | } |
508 | 508 | |
509 | 509 | /* |
@@ -514,7 +514,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
514 | 514 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteShader |
515 | 515 | (JNIEnv *env, jobject, jint shader) |
516 | 516 | { |
517 | - glDeleteShader( shader ); | |
517 | + //glDeleteShader( shader ); | |
518 | 518 | } |
519 | 519 | |
520 | 520 | /* |
@@ -525,8 +525,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
525 | 525 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteTextures |
526 | 526 | (JNIEnv *env, jobject, jint n, jobject textures) |
527 | 527 | { |
528 | - void* dataPtr = getDirectBufferPointer( env, textures ); | |
529 | - glDeleteTextures( n, (GLuint*)dataPtr ); | |
528 | + //void* dataPtr = getDirectBufferPointer( env, textures ); | |
529 | + //glDeleteTextures( n, (GLuint*)dataPtr ); | |
530 | 530 | } |
531 | 531 | |
532 | 532 | /* |
@@ -537,8 +537,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
537 | 537 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeleteTexture |
538 | 538 | (JNIEnv *, jobject, jint buffer) |
539 | 539 | { |
540 | - GLuint b = buffer; | |
541 | - glDeleteTextures(1, &b); | |
540 | + //GLuint b = buffer; | |
541 | + //glDeleteTextures(1, &b); | |
542 | 542 | } |
543 | 543 | |
544 | 544 | /* |
@@ -549,7 +549,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDele | ||
549 | 549 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDepthFunc |
550 | 550 | (JNIEnv *env, jobject, jint func) |
551 | 551 | { |
552 | - glDepthFunc( func ); | |
552 | + //glDepthFunc( func ); | |
553 | 553 | } |
554 | 554 | |
555 | 555 | /* |
@@ -560,7 +560,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDept | ||
560 | 560 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDepthMask |
561 | 561 | (JNIEnv *env, jobject, jboolean flag) |
562 | 562 | { |
563 | - glDepthMask( flag ); | |
563 | + //glDepthMask( flag ); | |
564 | 564 | } |
565 | 565 | |
566 | 566 | /* |
@@ -571,7 +571,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDept | ||
571 | 571 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDepthRangef |
572 | 572 | (JNIEnv *env, jobject, jfloat zNear, jfloat zFar) |
573 | 573 | { |
574 | - glDepthRangef( zNear, zFar ); | |
574 | + //glDepthRangef( zNear, zFar ); | |
575 | 575 | } |
576 | 576 | |
577 | 577 | /* |
@@ -582,7 +582,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDept | ||
582 | 582 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDetachShader |
583 | 583 | (JNIEnv *env, jobject, jint program, jint shader) |
584 | 584 | { |
585 | - glDetachShader( program, shader ); | |
585 | + //glDetachShader( program, shader ); | |
586 | 586 | } |
587 | 587 | |
588 | 588 | /* |
@@ -593,7 +593,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDeta | ||
593 | 593 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDisable |
594 | 594 | (JNIEnv *env, jobject, jint cap) |
595 | 595 | { |
596 | - glDisable( cap ); | |
596 | + //glDisable( cap ); | |
597 | 597 | } |
598 | 598 | |
599 | 599 | /* |
@@ -604,7 +604,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDisa | ||
604 | 604 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDisableVertexAttribArray |
605 | 605 | (JNIEnv *env, jobject, jint index) |
606 | 606 | { |
607 | - glDisableVertexAttribArray( index ); | |
607 | + //glDisableVertexAttribArray( index ); | |
608 | 608 | } |
609 | 609 | |
610 | 610 | /* |
@@ -615,7 +615,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDisa | ||
615 | 615 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDrawArrays |
616 | 616 | (JNIEnv *env, jobject, jint mode, jint first, jint count) |
617 | 617 | { |
618 | - glDrawArrays( mode, first, count ); | |
618 | + //glDrawArrays( mode, first, count ); | |
619 | 619 | } |
620 | 620 | |
621 | 621 | /* |
@@ -626,15 +626,15 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDraw | ||
626 | 626 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDrawElements__IIILjava_nio_Buffer_2 |
627 | 627 | (JNIEnv *env, jobject, jint mode, jint count, jint type, jobject indices) |
628 | 628 | { |
629 | - void* dataPtr = getDirectBufferPointer( env, indices ); | |
629 | + //void* dataPtr = getDirectBufferPointer( env, indices ); | |
630 | 630 | //__android_log_print(ANDROID_LOG_INFO, "GL2", "drawelements"); |
631 | - glDrawElements( mode, count, type, dataPtr ); | |
631 | + //glDrawElements( mode, count, type, dataPtr ); | |
632 | 632 | } |
633 | 633 | |
634 | 634 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDrawElements__IIII |
635 | 635 | (JNIEnv *, jobject, jint mode, jint count, jint type, jint indices) |
636 | 636 | { |
637 | - glDrawElements( mode, count, type, (const void*)indices ); | |
637 | + //glDrawElements( mode, count, type, (const void*)indices ); | |
638 | 638 | } |
639 | 639 | |
640 | 640 | /* |
@@ -645,7 +645,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glDraw | ||
645 | 645 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glEnable |
646 | 646 | (JNIEnv *env, jobject, jint cap) |
647 | 647 | { |
648 | - glEnable( cap ); | |
648 | + //glEnable( cap ); | |
649 | 649 | } |
650 | 650 | |
651 | 651 | /* |
@@ -656,7 +656,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glEnab | ||
656 | 656 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glEnableVertexAttribArray |
657 | 657 | (JNIEnv *env, jobject, jint index) |
658 | 658 | { |
659 | - glEnableVertexAttribArray( index ); | |
659 | + //glEnableVertexAttribArray( index ); | |
660 | 660 | } |
661 | 661 | |
662 | 662 | /* |
@@ -667,7 +667,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glEnab | ||
667 | 667 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFinish |
668 | 668 | (JNIEnv *env, jobject) |
669 | 669 | { |
670 | - glFinish(); | |
670 | + //glFinish(); | |
671 | 671 | } |
672 | 672 | |
673 | 673 | /* |
@@ -678,7 +678,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFini | ||
678 | 678 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFlush |
679 | 679 | (JNIEnv *env, jobject) |
680 | 680 | { |
681 | - glFlush(); | |
681 | + //glFlush(); | |
682 | 682 | } |
683 | 683 | |
684 | 684 | /* |
@@ -689,7 +689,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFlus | ||
689 | 689 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFramebufferRenderbuffer |
690 | 690 | (JNIEnv *env, jobject, jint target, jint attachment, jint renderbuffertarget, jint renderbuffer) |
691 | 691 | { |
692 | - glFramebufferRenderbuffer( target, attachment, renderbuffertarget, renderbuffer ); | |
692 | + //glFramebufferRenderbuffer( target, attachment, renderbuffertarget, renderbuffer ); | |
693 | 693 | } |
694 | 694 | |
695 | 695 | /* |
@@ -700,7 +700,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFram | ||
700 | 700 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFramebufferTexture2D |
701 | 701 | (JNIEnv *env, jobject, jint target, jint attachment, jint textarget, jint texture, jint level) |
702 | 702 | { |
703 | - glFramebufferTexture2D( target, attachment, textarget, texture, level ); | |
703 | + //glFramebufferTexture2D( target, attachment, textarget, texture, level ); | |
704 | 704 | } |
705 | 705 | |
706 | 706 | /* |
@@ -711,7 +711,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFram | ||
711 | 711 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFrontFace |
712 | 712 | (JNIEnv *env, jobject, jint mode) |
713 | 713 | { //XXXX |
714 | - glFrontFace( mode ); | |
714 | + //glFrontFace( mode ); | |
715 | 715 | } |
716 | 716 | |
717 | 717 | /* |
@@ -722,8 +722,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glFron | ||
722 | 722 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenBuffers |
723 | 723 | (JNIEnv *env, jobject, jint n, jobject buffers) |
724 | 724 | { |
725 | - void* dataPtr = getDirectBufferPointer( env, buffers ); | |
726 | - glGenBuffers( n, (GLuint*)dataPtr ); | |
725 | + //void* dataPtr = getDirectBufferPointer( env, buffers ); | |
726 | + //glGenBuffers( n, (GLuint*)dataPtr ); | |
727 | 727 | } |
728 | 728 | |
729 | 729 | /* |
@@ -734,9 +734,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenB | ||
734 | 734 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenBuffer |
735 | 735 | (JNIEnv *, jobject) |
736 | 736 | { |
737 | - GLuint result; | |
738 | - glGenBuffers( 1, &result ); | |
739 | - return result; | |
737 | + //GLuint result = 0; | |
738 | + //glGenBuffers( 1, &result ); | |
739 | + return 0;//result; | |
740 | 740 | } |
741 | 741 | |
742 | 742 | /* |
@@ -747,7 +747,7 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenB | ||
747 | 747 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenerateMipmap |
748 | 748 | (JNIEnv *env, jobject, jint target) |
749 | 749 | { |
750 | - glGenerateMipmap( target ); | |
750 | + //glGenerateMipmap( target ); | |
751 | 751 | } |
752 | 752 | |
753 | 753 | /* |
@@ -758,8 +758,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGene | ||
758 | 758 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenFramebuffers |
759 | 759 | (JNIEnv *env, jobject, jint n, jobject framebuffers) |
760 | 760 | { |
761 | - void* dataPtr = getDirectBufferPointer( env, framebuffers ); | |
762 | - glGenFramebuffers( n, (GLuint*)dataPtr ); | |
761 | + //void* dataPtr = getDirectBufferPointer( env, framebuffers ); | |
762 | + //glGenFramebuffers( n, (GLuint*)dataPtr ); | |
763 | 763 | } |
764 | 764 | |
765 | 765 | /* |
@@ -770,9 +770,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenF | ||
770 | 770 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenFramebuffer |
771 | 771 | (JNIEnv *, jobject) |
772 | 772 | { |
773 | - GLuint result; | |
774 | - glGenFramebuffers( 1, &result ); | |
775 | - return result; | |
773 | + //GLuint result = 0; | |
774 | + //glGenFramebuffers( 1, &result ); | |
775 | + return 0;//result; | |
776 | 776 | } |
777 | 777 | |
778 | 778 | /* |
@@ -783,8 +783,8 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenF | ||
783 | 783 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenRenderbuffers |
784 | 784 | (JNIEnv *env, jobject, jint n, jobject renderbuffers) |
785 | 785 | { |
786 | - void* dataPtr = getDirectBufferPointer( env, renderbuffers ); | |
787 | - glGenRenderbuffers( n, (GLuint*)dataPtr ); | |
786 | + //void* dataPtr = getDirectBufferPointer( env, renderbuffers ); | |
787 | + //glGenRenderbuffers( n, (GLuint*)dataPtr ); | |
788 | 788 | } |
789 | 789 | |
790 | 790 | /* |
@@ -795,9 +795,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenR | ||
795 | 795 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenRenderbuffer |
796 | 796 | (JNIEnv *, jobject) |
797 | 797 | { |
798 | - GLuint result; | |
799 | - glGenRenderbuffers( 1, &result ); | |
800 | - return result; | |
798 | + //GLuint result = 0; | |
799 | + //glGenRenderbuffers( 1, &result ); | |
800 | + return 0;//result; | |
801 | 801 | } |
802 | 802 | |
803 | 803 | /* |
@@ -808,8 +808,8 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenR | ||
808 | 808 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenTextures |
809 | 809 | (JNIEnv *env, jobject, jint n, jobject textures) |
810 | 810 | { |
811 | - void* dataPtr = getDirectBufferPointer( env, textures ); | |
812 | - glGenTextures( n, (GLuint*)dataPtr ); | |
811 | + //void* dataPtr = getDirectBufferPointer( env, textures ); | |
812 | + //glGenTextures( n, (GLuint*)dataPtr ); | |
813 | 813 | } |
814 | 814 | |
815 | 815 | /* |
@@ -820,9 +820,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenT | ||
820 | 820 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGenTexture |
821 | 821 | (JNIEnv *, jobject) |
822 | 822 | { |
823 | - GLuint result; | |
824 | - glGenTextures(1, &result); | |
825 | - return result; | |
823 | + //GLuint result = 0; | |
824 | + //glGenTextures(1, &result); | |
825 | + return 0;//result; | |
826 | 826 | } |
827 | 827 | |
828 | 828 | /* |
@@ -834,12 +834,12 @@ JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glG | ||
834 | 834 | (JNIEnv *env, jobject, jint program, jint index, jobject size, jobject type ) |
835 | 835 | { |
836 | 836 | // FIXME is this wrong? |
837 | - char cname[2048]; | |
838 | - void* sizePtr = getDirectBufferPointer( env, size ); | |
839 | - void* typePtr = getDirectBufferPointer( env, type ); | |
840 | - glGetActiveAttrib( program, index, 2048, NULL, (GLint*)sizePtr, (GLenum*)typePtr, cname ); | |
837 | + //char cname[2048]; | |
838 | + //void* sizePtr = getDirectBufferPointer( env, size ); | |
839 | + //void* typePtr = getDirectBufferPointer( env, type ); | |
840 | + //glGetActiveAttrib( program, index, 2048, NULL, (GLint*)sizePtr, (GLenum*)typePtr, cname ); | |
841 | 841 | |
842 | - return env->NewStringUTF( cname ); | |
842 | + return env->NewStringUTF( "" ); | |
843 | 843 | } |
844 | 844 | |
845 | 845 | /* |
@@ -851,12 +851,12 @@ JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glG | ||
851 | 851 | (JNIEnv *env, jobject, jint program, jint index, jobject size, jobject type) |
852 | 852 | { |
853 | 853 | // FIXME is this wrong? |
854 | - char cname[2048]; | |
855 | - void* sizePtr = getDirectBufferPointer( env, size ); | |
856 | - void* typePtr = getDirectBufferPointer( env, type ); | |
857 | - glGetActiveUniform( program, index, 2048, NULL, (GLint*)sizePtr, (GLenum*)typePtr, cname ); | |
854 | + //char cname[2048]; | |
855 | + //void* sizePtr = getDirectBufferPointer( env, size ); | |
856 | + //void* typePtr = getDirectBufferPointer( env, type ); | |
857 | + //glGetActiveUniform( program, index, 2048, NULL, (GLint*)sizePtr, (GLenum*)typePtr, cname ); | |
858 | 858 | |
859 | - return env->NewStringUTF( cname ); | |
859 | + return env->NewStringUTF( "" ); | |
860 | 860 | } |
861 | 861 | |
862 | 862 | /* |
@@ -867,9 +867,9 @@ JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glG | ||
867 | 867 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetAttachedShaders |
868 | 868 | (JNIEnv *env, jobject, jint program, jint maxcount, jobject count, jobject shaders) |
869 | 869 | { |
870 | - void* countPtr = getDirectBufferPointer( env, count ); | |
871 | - void* shaderPtr = getDirectBufferPointer( env, shaders ); | |
872 | - glGetAttachedShaders( program, maxcount, (GLsizei*)countPtr, (GLuint*)shaderPtr ); | |
870 | + //void* countPtr = getDirectBufferPointer( env, count ); | |
871 | + //void* shaderPtr = getDirectBufferPointer( env, shaders ); | |
872 | + //glGetAttachedShaders( program, maxcount, (GLsizei*)countPtr, (GLuint*)shaderPtr ); | |
873 | 873 | } |
874 | 874 | |
875 | 875 | /* |
@@ -880,10 +880,10 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetA | ||
880 | 880 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetAttribLocation |
881 | 881 | (JNIEnv *env, jobject, jint program, jstring name) |
882 | 882 | { |
883 | - const char* cname = getString( env, name ); | |
884 | - int loc = glGetAttribLocation( program, cname ); | |
885 | - releaseString( env, name, cname ); | |
886 | - return loc; | |
883 | + //const char* cname = getString( env, name ); | |
884 | + //int loc = glGetAttribLocation( program, cname ); | |
885 | + //releaseString( env, name, cname ); | |
886 | + return 0;//loc; | |
887 | 887 | } |
888 | 888 | |
889 | 889 | /* |
@@ -894,8 +894,8 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetA | ||
894 | 894 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetBooleanv |
895 | 895 | (JNIEnv *env, jobject, jint program, jobject params) |
896 | 896 | { |
897 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
898 | - glGetBooleanv( program, (GLboolean*)dataPtr ); | |
897 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
898 | + //glGetBooleanv( program, (GLboolean*)dataPtr ); | |
899 | 899 | } |
900 | 900 | |
901 | 901 | /* |
@@ -906,8 +906,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetB | ||
906 | 906 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetBufferParameteriv |
907 | 907 | (JNIEnv *env, jobject, jint target, jint pname, jobject params) |
908 | 908 | { |
909 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
910 | - glGetBufferParameteriv( target, pname, (GLint*)dataPtr ); | |
909 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
910 | + //glGetBufferParameteriv( target, pname, (GLint*)dataPtr ); | |
911 | 911 | } |
912 | 912 | |
913 | 913 | /* |
@@ -918,7 +918,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetB | ||
918 | 918 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetError |
919 | 919 | (JNIEnv *env, jobject) |
920 | 920 | { |
921 | - return glGetError(); | |
921 | + return 0;//glGetError(); | |
922 | 922 | } |
923 | 923 | |
924 | 924 | /* |
@@ -929,8 +929,8 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetE | ||
929 | 929 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetFloatv |
930 | 930 | (JNIEnv *env, jobject, jint pname, jobject params) |
931 | 931 | { |
932 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
933 | - glGetFloatv( pname, (GLfloat*)dataPtr ); | |
932 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
933 | + //glGetFloatv( pname, (GLfloat*)dataPtr ); | |
934 | 934 | } |
935 | 935 | |
936 | 936 | /* |
@@ -941,8 +941,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetF | ||
941 | 941 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetFramebufferAttachmentParameteriv |
942 | 942 | (JNIEnv *env, jobject, jint target, jint attachment, jint pname, jobject params) |
943 | 943 | { |
944 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
945 | - glGetFramebufferAttachmentParameteriv( target, attachment, pname, (GLint*)dataPtr ); | |
944 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
945 | + //glGetFramebufferAttachmentParameteriv( target, attachment, pname, (GLint*)dataPtr ); | |
946 | 946 | } |
947 | 947 | |
948 | 948 | /* |
@@ -953,8 +953,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetF | ||
953 | 953 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetIntegerv |
954 | 954 | (JNIEnv *env, jobject, jint pname, jobject params) |
955 | 955 | { |
956 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
957 | - glGetIntegerv( pname, (GLint*)dataPtr); | |
956 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
957 | + //glGetIntegerv( pname, (GLint*)dataPtr); | |
958 | 958 | } |
959 | 959 | |
960 | 960 | /* |
@@ -965,8 +965,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetI | ||
965 | 965 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetProgramiv |
966 | 966 | (JNIEnv *env, jobject, jint program, jint pname, jobject params) |
967 | 967 | { |
968 | - void *dataPtr = getDirectBufferPointer( env, params ); | |
969 | - glGetProgramiv( program, pname, (GLint*)dataPtr ); | |
968 | + //void *dataPtr = getDirectBufferPointer( env, params ); | |
969 | + //glGetProgramiv( program, pname, (GLint*)dataPtr ); | |
970 | 970 | } |
971 | 971 | |
972 | 972 | /* |
@@ -977,10 +977,10 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetP | ||
977 | 977 | JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetProgramInfoLog |
978 | 978 | (JNIEnv *env, jobject, jint program ) |
979 | 979 | { |
980 | - char info[1024*10]; // FIXME 10k limit should suffice | |
981 | - int length = 0; | |
982 | - glGetProgramInfoLog( program, 1024*10, &length, info ); | |
983 | - return env->NewStringUTF( info ); | |
980 | + //char info[1024*10]; // FIXME 10k limit should suffice | |
981 | + //int length = 0; | |
982 | + //glGetProgramInfoLog( program, 1024*10, &length, info ); | |
983 | + return env->NewStringUTF( "" ); | |
984 | 984 | } |
985 | 985 | |
986 | 986 | /* |
@@ -991,8 +991,8 @@ JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glG | ||
991 | 991 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetRenderbufferParameteriv |
992 | 992 | (JNIEnv *env, jobject, jint target, jint pname, jobject params) |
993 | 993 | { |
994 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
995 | - glGetRenderbufferParameteriv( target, pname, (GLint*)dataPtr ); | |
994 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
995 | + //glGetRenderbufferParameteriv( target, pname, (GLint*)dataPtr ); | |
996 | 996 | } |
997 | 997 | |
998 | 998 | /* |
@@ -1003,8 +1003,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetR | ||
1003 | 1003 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetShaderiv |
1004 | 1004 | (JNIEnv *env, jobject, jint shader, jint pname, jobject params) |
1005 | 1005 | { |
1006 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
1007 | - glGetShaderiv( shader, pname, (GLint*)dataPtr ); | |
1006 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
1007 | + //glGetShaderiv( shader, pname, (GLint*)dataPtr ); | |
1008 | 1008 | } |
1009 | 1009 | |
1010 | 1010 | /* |
@@ -1015,10 +1015,10 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetS | ||
1015 | 1015 | JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetShaderInfoLog |
1016 | 1016 | (JNIEnv *env, jobject, jint shader ) |
1017 | 1017 | { |
1018 | - char info[1024*10]; // FIXME 10k limit should suffice | |
1019 | - int length = 0; | |
1020 | - glGetShaderInfoLog( shader, 1024*10, &length, info ); | |
1021 | - return env->NewStringUTF( info ); | |
1018 | + //char info[1024*10]; // FIXME 10k limit should suffice | |
1019 | + //int length = 0; | |
1020 | + //glGetShaderInfoLog( shader, 1024*10, &length, info ); | |
1021 | + return env->NewStringUTF( "" ); | |
1022 | 1022 | } |
1023 | 1023 | |
1024 | 1024 | /* |
@@ -1029,9 +1029,9 @@ JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glG | ||
1029 | 1029 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetShaderPrecisionFormat |
1030 | 1030 | (JNIEnv *env, jobject, jint shadertype, jint precisiontype, jobject range, jobject precision) |
1031 | 1031 | { |
1032 | - void* rangePtr = getDirectBufferPointer( env, range ); | |
1033 | - void* precisionPtr = getDirectBufferPointer( env, precision ); | |
1034 | - glGetShaderPrecisionFormat( shadertype, precisiontype, (GLint*)rangePtr, (GLint*)precisionPtr ); | |
1032 | + //void* rangePtr = getDirectBufferPointer( env, range ); | |
1033 | + //void* precisionPtr = getDirectBufferPointer( env, precision ); | |
1034 | + //glGetShaderPrecisionFormat( shadertype, precisiontype, (GLint*)rangePtr, (GLint*)precisionPtr ); | |
1035 | 1035 | } |
1036 | 1036 | |
1037 | 1037 | /* |
@@ -1053,8 +1053,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetS | ||
1053 | 1053 | JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetString |
1054 | 1054 | (JNIEnv *env, jobject, jint name) |
1055 | 1055 | { |
1056 | - const char * chars = (const char *)glGetString((GLenum)name); | |
1057 | - jstring output = env->NewStringUTF(chars); | |
1056 | + //const char * chars = (const char *)glGetString((GLenum)name); | |
1057 | + jstring output = env->NewStringUTF(""); | |
1058 | 1058 | return output; |
1059 | 1059 | } |
1060 | 1060 |
@@ -1066,8 +1066,8 @@ JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glG | ||
1066 | 1066 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetTexParameterfv |
1067 | 1067 | (JNIEnv *env, jobject, jint target, jint pname, jobject params) |
1068 | 1068 | { |
1069 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
1070 | - glGetTexParameterfv( target, pname, (GLfloat*)dataPtr ); | |
1069 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
1070 | + //glGetTexParameterfv( target, pname, (GLfloat*)dataPtr ); | |
1071 | 1071 | } |
1072 | 1072 | |
1073 | 1073 | /* |
@@ -1078,8 +1078,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetT | ||
1078 | 1078 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetTexParameteriv |
1079 | 1079 | (JNIEnv *env, jobject, jint target, jint pname, jobject params) |
1080 | 1080 | { |
1081 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
1082 | - glGetTexParameteriv( target, pname, (GLint*)dataPtr ); | |
1081 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
1082 | + //glGetTexParameteriv( target, pname, (GLint*)dataPtr ); | |
1083 | 1083 | } |
1084 | 1084 | |
1085 | 1085 | /* |
@@ -1090,8 +1090,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetT | ||
1090 | 1090 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetUniformfv |
1091 | 1091 | (JNIEnv *env, jobject, jint program, jint location, jobject params) |
1092 | 1092 | { |
1093 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
1094 | - glGetUniformfv( program, location, (GLfloat*)dataPtr ); | |
1093 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
1094 | + //glGetUniformfv( program, location, (GLfloat*)dataPtr ); | |
1095 | 1095 | } |
1096 | 1096 | |
1097 | 1097 | /* |
@@ -1102,8 +1102,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetU | ||
1102 | 1102 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetUniformiv |
1103 | 1103 | (JNIEnv *env, jobject, jint program, jint location, jobject params) |
1104 | 1104 | { |
1105 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
1106 | - glGetUniformiv( program, location, (GLint*)dataPtr ); | |
1105 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
1106 | + //glGetUniformiv( program, location, (GLint*)dataPtr ); | |
1107 | 1107 | } |
1108 | 1108 | |
1109 | 1109 | /* |
@@ -1114,10 +1114,10 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetU | ||
1114 | 1114 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetUniformLocation |
1115 | 1115 | (JNIEnv *env, jobject, jint program, jstring name) |
1116 | 1116 | { |
1117 | - const char* cname = getString( env, name ); | |
1118 | - int location = glGetUniformLocation( program, cname ); | |
1119 | - releaseString( env, name, cname ); | |
1120 | - return location; | |
1117 | + //const char* cname = getString( env, name ); | |
1118 | + //int location = glGetUniformLocation( program, cname ); | |
1119 | + //releaseString( env, name, cname ); | |
1120 | + return 0;//location; | |
1121 | 1121 | } |
1122 | 1122 | |
1123 | 1123 | /* |
@@ -1128,8 +1128,8 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetU | ||
1128 | 1128 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetVertexAttribfv |
1129 | 1129 | (JNIEnv *env, jobject, jint index, jint pname, jobject params) |
1130 | 1130 | { |
1131 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
1132 | - glGetVertexAttribfv( index, pname, (GLfloat*)dataPtr ); | |
1131 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
1132 | + //glGetVertexAttribfv( index, pname, (GLfloat*)dataPtr ); | |
1133 | 1133 | } |
1134 | 1134 | |
1135 | 1135 | /* |
@@ -1140,8 +1140,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetV | ||
1140 | 1140 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetVertexAttribiv |
1141 | 1141 | (JNIEnv *env, jobject, jint index, jint pname, jobject params) |
1142 | 1142 | { |
1143 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
1144 | - glGetVertexAttribiv( index, pname, (GLint*)dataPtr ); | |
1143 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
1144 | + //glGetVertexAttribiv( index, pname, (GLint*)dataPtr ); | |
1145 | 1145 | } |
1146 | 1146 | |
1147 | 1147 | /* |
@@ -1163,7 +1163,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glGetV | ||
1163 | 1163 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glHint |
1164 | 1164 | (JNIEnv *env, jobject, jint target, jint mode) |
1165 | 1165 | { |
1166 | - glHint( target, mode ); | |
1166 | + //glHint( target, mode ); | |
1167 | 1167 | } |
1168 | 1168 | |
1169 | 1169 | /* |
@@ -1174,7 +1174,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glHint | ||
1174 | 1174 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glIsBuffer |
1175 | 1175 | (JNIEnv *env, jobject, jint buffer) |
1176 | 1176 | { |
1177 | - return glIsBuffer( buffer ); | |
1177 | + return false;//glIsBuffer( buffer ); | |
1178 | 1178 | } |
1179 | 1179 | |
1180 | 1180 | /* |
@@ -1185,7 +1185,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_gl | ||
1185 | 1185 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glIsEnabled |
1186 | 1186 | (JNIEnv *env, jobject, jint cap) |
1187 | 1187 | { |
1188 | - return glIsEnabled( cap ); | |
1188 | + return false;//glIsEnabled( cap ); | |
1189 | 1189 | } |
1190 | 1190 | |
1191 | 1191 | /* |
@@ -1196,7 +1196,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_gl | ||
1196 | 1196 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glIsFramebuffer |
1197 | 1197 | (JNIEnv *env, jobject, jint framebuffer) |
1198 | 1198 | { |
1199 | - return glIsFramebuffer( framebuffer ); | |
1199 | + return false;//glIsFramebuffer( framebuffer ); | |
1200 | 1200 | } |
1201 | 1201 | |
1202 | 1202 | /* |
@@ -1207,7 +1207,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_gl | ||
1207 | 1207 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glIsProgram |
1208 | 1208 | (JNIEnv *env, jobject, jint program) |
1209 | 1209 | { |
1210 | - return glIsProgram( program ); | |
1210 | + return false;//glIsProgram( program ); | |
1211 | 1211 | } |
1212 | 1212 | |
1213 | 1213 | /* |
@@ -1218,7 +1218,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_gl | ||
1218 | 1218 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glIsRenderbuffer |
1219 | 1219 | (JNIEnv *env, jobject, jint renderbuffer) |
1220 | 1220 | { |
1221 | - return glIsRenderbuffer( renderbuffer ); | |
1221 | + return false;//glIsRenderbuffer( renderbuffer ); | |
1222 | 1222 | } |
1223 | 1223 | |
1224 | 1224 | /* |
@@ -1229,7 +1229,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_gl | ||
1229 | 1229 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glIsShader |
1230 | 1230 | (JNIEnv *env, jobject, jint shader) |
1231 | 1231 | { |
1232 | - return glIsShader( shader ); | |
1232 | + return false;//glIsShader( shader ); | |
1233 | 1233 | } |
1234 | 1234 | |
1235 | 1235 | /* |
@@ -1240,7 +1240,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_gl | ||
1240 | 1240 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glIsTexture |
1241 | 1241 | (JNIEnv *env, jobject, jint texture) |
1242 | 1242 | { |
1243 | - return glIsTexture( texture ); | |
1243 | + return false;//glIsTexture( texture ); | |
1244 | 1244 | } |
1245 | 1245 | |
1246 | 1246 | /* |
@@ -1251,7 +1251,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_gl | ||
1251 | 1251 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glLineWidth |
1252 | 1252 | (JNIEnv *env, jobject, jfloat width) |
1253 | 1253 | { |
1254 | - glLineWidth( width ); | |
1254 | + //glLineWidth( width ); | |
1255 | 1255 | } |
1256 | 1256 | |
1257 | 1257 | /* |
@@ -1262,7 +1262,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glLine | ||
1262 | 1262 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glLinkProgram |
1263 | 1263 | (JNIEnv *env, jobject, jint program) |
1264 | 1264 | { |
1265 | - glLinkProgram( program ); | |
1265 | + //glLinkProgram( program ); | |
1266 | 1266 | } |
1267 | 1267 | |
1268 | 1268 | /* |
@@ -1273,7 +1273,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glLink | ||
1273 | 1273 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glPixelStorei |
1274 | 1274 | (JNIEnv *env, jobject, jint pname, jint param) |
1275 | 1275 | { |
1276 | - glPixelStorei( pname, param ); | |
1276 | + //glPixelStorei( pname, param ); | |
1277 | 1277 | } |
1278 | 1278 | |
1279 | 1279 | /* |
@@ -1284,7 +1284,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glPixe | ||
1284 | 1284 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glPolygonOffset |
1285 | 1285 | (JNIEnv *env, jobject, jfloat factor, jfloat units) |
1286 | 1286 | { |
1287 | - glPolygonOffset( factor, units ); | |
1287 | + //glPolygonOffset( factor, units ); | |
1288 | 1288 | } |
1289 | 1289 | |
1290 | 1290 | /* |
@@ -1295,8 +1295,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glPoly | ||
1295 | 1295 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glReadPixels |
1296 | 1296 | (JNIEnv *env, jobject, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels) |
1297 | 1297 | { |
1298 | - void* dataPtr = getDirectBufferPointer( env, pixels ); | |
1299 | - glReadPixels( x, y, width, height, format, type, dataPtr ); | |
1298 | + //void* dataPtr = getDirectBufferPointer( env, pixels ); | |
1299 | + //glReadPixels( x, y, width, height, format, type, dataPtr ); | |
1300 | 1300 | } |
1301 | 1301 | |
1302 | 1302 | /* |
@@ -1307,7 +1307,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glRead | ||
1307 | 1307 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glReleaseShaderCompiler |
1308 | 1308 | (JNIEnv *env, jobject) |
1309 | 1309 | { |
1310 | - glReleaseShaderCompiler(); | |
1310 | + //glReleaseShaderCompiler(); | |
1311 | 1311 | } |
1312 | 1312 | |
1313 | 1313 | /* |
@@ -1318,7 +1318,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glRele | ||
1318 | 1318 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glRenderbufferStorage |
1319 | 1319 | (JNIEnv *env, jobject, jint target, jint internalFormat, jint width, jint height) |
1320 | 1320 | { |
1321 | - glRenderbufferStorage( target, internalFormat, width, height ); | |
1321 | + //glRenderbufferStorage( target, internalFormat, width, height ); | |
1322 | 1322 | } |
1323 | 1323 | |
1324 | 1324 | /* |
@@ -1329,7 +1329,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glRend | ||
1329 | 1329 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glSampleCoverage |
1330 | 1330 | (JNIEnv *env, jobject, jfloat value, jboolean inver) |
1331 | 1331 | { |
1332 | - glSampleCoverage( value, inver ); | |
1332 | + //glSampleCoverage( value, inver ); | |
1333 | 1333 | } |
1334 | 1334 | |
1335 | 1335 | /* |
@@ -1340,7 +1340,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glSamp | ||
1340 | 1340 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glScissor |
1341 | 1341 | (JNIEnv *env, jobject, jint x, jint y, jint width, jint height) |
1342 | 1342 | { |
1343 | - glScissor( x, y, width, height ); | |
1343 | + //glScissor( x, y, width, height ); | |
1344 | 1344 | } |
1345 | 1345 | |
1346 | 1346 | /* |
@@ -1351,9 +1351,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glScis | ||
1351 | 1351 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glShaderBinary |
1352 | 1352 | (JNIEnv *env, jobject, jint n, jobject shaders, jint binaryformat, jobject binary, jint length) |
1353 | 1353 | { |
1354 | - void* shaderPtr = getDirectBufferPointer( env, shaders ); | |
1355 | - void* binaryPtr = getDirectBufferPointer( env, binary ); | |
1356 | - glShaderBinary( n, (GLuint*)shaderPtr, binaryformat, binaryPtr, length ); | |
1354 | + //void* shaderPtr = getDirectBufferPointer( env, shaders ); | |
1355 | + //void* binaryPtr = getDirectBufferPointer( env, binary ); | |
1356 | + //glShaderBinary( n, (GLuint*)shaderPtr, binaryformat, binaryPtr, length ); | |
1357 | 1357 | } |
1358 | 1358 | |
1359 | 1359 | /* |
@@ -1365,7 +1365,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glShad | ||
1365 | 1365 | (JNIEnv *env, jobject, jint shader, jstring string ) |
1366 | 1366 | { |
1367 | 1367 | const char* cstring = getString( env, string ); |
1368 | - glShaderSource( shader, 1, &cstring, NULL ); | |
1368 | + //glShaderSource( shader, 1, &cstring, NULL ); | |
1369 | 1369 | releaseString( env, string, cstring ); |
1370 | 1370 | } |
1371 | 1371 |
@@ -1377,7 +1377,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glShad | ||
1377 | 1377 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glStencilFunc |
1378 | 1378 | (JNIEnv *env, jobject, jint func, jint ref, jint mask) |
1379 | 1379 | { |
1380 | - glStencilFunc( func, ref, mask ); | |
1380 | + //glStencilFunc( func, ref, mask ); | |
1381 | 1381 | } |
1382 | 1382 | |
1383 | 1383 | /* |
@@ -1388,7 +1388,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glSten | ||
1388 | 1388 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glStencilFuncSeparate |
1389 | 1389 | (JNIEnv *env, jobject, jint face, jint func, jint ref, jint mask) |
1390 | 1390 | { |
1391 | - glStencilFuncSeparate( face, func, ref, mask ); | |
1391 | + //glStencilFuncSeparate( face, func, ref, mask ); | |
1392 | 1392 | } |
1393 | 1393 | |
1394 | 1394 | /* |
@@ -1399,7 +1399,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glSten | ||
1399 | 1399 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glStencilMask |
1400 | 1400 | (JNIEnv *env, jobject, jint mask) |
1401 | 1401 | { |
1402 | - glStencilMask( mask ); | |
1402 | + //glStencilMask( mask ); | |
1403 | 1403 | } |
1404 | 1404 | |
1405 | 1405 | /* |
@@ -1410,7 +1410,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glSten | ||
1410 | 1410 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glStencilMaskSeparate |
1411 | 1411 | (JNIEnv *env, jobject, jint face, jint mask) |
1412 | 1412 | { |
1413 | - glStencilMaskSeparate( face, mask ); | |
1413 | + //glStencilMaskSeparate( face, mask ); | |
1414 | 1414 | } |
1415 | 1415 | |
1416 | 1416 | /* |
@@ -1421,7 +1421,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glSten | ||
1421 | 1421 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glStencilOp |
1422 | 1422 | (JNIEnv *env, jobject, jint fail, jint zFail, jint zpass) |
1423 | 1423 | { |
1424 | - glStencilOp( fail, zFail, zpass ); | |
1424 | + //glStencilOp( fail, zFail, zpass ); | |
1425 | 1425 | } |
1426 | 1426 | |
1427 | 1427 | /* |
@@ -1432,7 +1432,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glSten | ||
1432 | 1432 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glStencilOpSeparate |
1433 | 1433 | (JNIEnv *env, jobject, jint face, jint fail, jint zFail, jint zPass) |
1434 | 1434 | { |
1435 | - glStencilOpSeparate( face, fail, zFail, zPass ); | |
1435 | + //glStencilOpSeparate( face, fail, zFail, zPass ); | |
1436 | 1436 | } |
1437 | 1437 | |
1438 | 1438 | /* |
@@ -1443,8 +1443,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glSten | ||
1443 | 1443 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexImage2D |
1444 | 1444 | (JNIEnv *env, jobject, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jobject pixels) |
1445 | 1445 | { |
1446 | - void* dataPtr = getDirectBufferPointer( env, pixels ); | |
1447 | - glTexImage2D( target, level, internalformat, width, height, border, format, type, dataPtr ); | |
1446 | + //void* dataPtr = getDirectBufferPointer( env, pixels ); | |
1447 | + //glTexImage2D( target, level, internalformat, width, height, border, format, type, dataPtr ); | |
1448 | 1448 | } |
1449 | 1449 | |
1450 | 1450 | /* |
@@ -1455,7 +1455,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexI | ||
1455 | 1455 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexParameterf |
1456 | 1456 | (JNIEnv *env, jobject, jint target, jint pname, jfloat param) |
1457 | 1457 | { |
1458 | - glTexParameterf( target, pname, param ); | |
1458 | + //glTexParameterf( target, pname, param ); | |
1459 | 1459 | } |
1460 | 1460 | |
1461 | 1461 | /* |
@@ -1466,8 +1466,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexP | ||
1466 | 1466 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexParameterfv |
1467 | 1467 | (JNIEnv *env, jobject, jint target, jint pname, jobject params) |
1468 | 1468 | { |
1469 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
1470 | - glTexParameterfv( target, pname, (GLfloat*)dataPtr ); | |
1469 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
1470 | + //glTexParameterfv( target, pname, (GLfloat*)dataPtr ); | |
1471 | 1471 | } |
1472 | 1472 | |
1473 | 1473 | /* |
@@ -1478,7 +1478,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexP | ||
1478 | 1478 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexParameteri |
1479 | 1479 | (JNIEnv *env, jobject, jint target, jint pname, jint param) |
1480 | 1480 | { |
1481 | - glTexParameteri( target, pname, param ); | |
1481 | + //glTexParameteri( target, pname, param ); | |
1482 | 1482 | } |
1483 | 1483 | |
1484 | 1484 | /* |
@@ -1489,8 +1489,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexP | ||
1489 | 1489 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexParameteriv |
1490 | 1490 | (JNIEnv *env, jobject, jint target, jint pname, jobject params) |
1491 | 1491 | { |
1492 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
1493 | - glTexParameteriv( target, pname, (GLint*)dataPtr ); | |
1492 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
1493 | + //glTexParameteriv( target, pname, (GLint*)dataPtr ); | |
1494 | 1494 | } |
1495 | 1495 | |
1496 | 1496 | /* |
@@ -1501,8 +1501,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexP | ||
1501 | 1501 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexSubImage2D |
1502 | 1502 | (JNIEnv *env, jobject, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint type, jobject pixels) |
1503 | 1503 | { |
1504 | - void* dataPtr = getDirectBufferPointer( env, pixels ); | |
1505 | - glTexSubImage2D( target, level, xoffset, yoffset, width, height, format, type, dataPtr ); | |
1504 | + //void* dataPtr = getDirectBufferPointer( env, pixels ); | |
1505 | + //glTexSubImage2D( target, level, xoffset, yoffset, width, height, format, type, dataPtr ); | |
1506 | 1506 | } |
1507 | 1507 | |
1508 | 1508 | /* |
@@ -1513,7 +1513,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glTexS | ||
1513 | 1513 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform1f |
1514 | 1514 | (JNIEnv *env, jobject, jint location, jfloat x) |
1515 | 1515 | { |
1516 | - glUniform1f( location, x ); | |
1516 | + //glUniform1f( location, x ); | |
1517 | 1517 | } |
1518 | 1518 | |
1519 | 1519 | /* |
@@ -1524,8 +1524,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1524 | 1524 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform1fv__IILjava_nio_FloatBuffer_2 |
1525 | 1525 | (JNIEnv *env, jobject, jint location, jint count, jobject v) |
1526 | 1526 | { |
1527 | - void* dataPtr = getDirectBufferPointer( env, v ); | |
1528 | - glUniform1fv( location, count, (GLfloat*)dataPtr ); | |
1527 | + //void* dataPtr = getDirectBufferPointer( env, v ); | |
1528 | + //glUniform1fv( location, count, (GLfloat*)dataPtr ); | |
1529 | 1529 | } |
1530 | 1530 | |
1531 | 1531 | /* |
@@ -1537,7 +1537,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1537 | 1537 | (JNIEnv *env, jobject, jint location, jint count, jfloatArray value, jint offset) |
1538 | 1538 | { |
1539 | 1539 | float* v = (float*)env->GetPrimitiveArrayCritical(value, 0); |
1540 | - glUniform1fv( location, count, (GLfloat*)&v[offset] ); | |
1540 | + //glUniform1fv( location, count, (GLfloat*)&v[offset] ); | |
1541 | 1541 | env->ReleasePrimitiveArrayCritical(value, v, 0); |
1542 | 1542 | } |
1543 | 1543 |
@@ -1549,7 +1549,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1549 | 1549 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform1i |
1550 | 1550 | (JNIEnv *env, jobject, jint location, jint x) |
1551 | 1551 | { |
1552 | - glUniform1i( location, x ); | |
1552 | + //glUniform1i( location, x ); | |
1553 | 1553 | } |
1554 | 1554 | |
1555 | 1555 | /* |
@@ -1560,8 +1560,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1560 | 1560 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform1iv__IILjava_nio_IntBuffer_2 |
1561 | 1561 | (JNIEnv *env, jobject, jint location, jint count, jobject v) |
1562 | 1562 | { |
1563 | - void* dataPtr = getDirectBufferPointer( env, v ); | |
1564 | - glUniform1iv( location, count, (GLint*)dataPtr ); | |
1563 | + //void* dataPtr = getDirectBufferPointer( env, v ); | |
1564 | + //glUniform1iv( location, count, (GLint*)dataPtr ); | |
1565 | 1565 | } |
1566 | 1566 | |
1567 | 1567 | /* |
@@ -1573,7 +1573,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1573 | 1573 | (JNIEnv *env, jobject, jint location, jint count, jintArray value, jint offset) |
1574 | 1574 | { |
1575 | 1575 | int* v = (int*)env->GetPrimitiveArrayCritical(value, 0); |
1576 | - glUniform1iv( location, count, (GLint*)&v[offset] ); | |
1576 | + //glUniform1iv( location, count, (GLint*)&v[offset] ); | |
1577 | 1577 | env->ReleasePrimitiveArrayCritical(value, v, 0); |
1578 | 1578 | } |
1579 | 1579 |
@@ -1585,7 +1585,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1585 | 1585 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform2f |
1586 | 1586 | (JNIEnv *env, jobject, jint location, jfloat x, jfloat y) |
1587 | 1587 | { |
1588 | - glUniform2f( location, x, y ); | |
1588 | + //glUniform2f( location, x, y ); | |
1589 | 1589 | } |
1590 | 1590 | |
1591 | 1591 | /* |
@@ -1596,8 +1596,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1596 | 1596 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform2fv__IILjava_nio_FloatBuffer_2 |
1597 | 1597 | (JNIEnv *env, jobject, jint location, jint count, jobject v) |
1598 | 1598 | { |
1599 | - void* dataPtr = getDirectBufferPointer( env, v ); | |
1600 | - glUniform2fv( location, count, (GLfloat*)dataPtr ); | |
1599 | + //void* dataPtr = getDirectBufferPointer( env, v ); | |
1600 | + //glUniform2fv( location, count, (GLfloat*)dataPtr ); | |
1601 | 1601 | } |
1602 | 1602 | |
1603 | 1603 | /* |
@@ -1609,7 +1609,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1609 | 1609 | (JNIEnv *env, jobject, jint location, jint count, jfloatArray value, jint offset) |
1610 | 1610 | { |
1611 | 1611 | float* v = (float*)env->GetPrimitiveArrayCritical(value, 0); |
1612 | - glUniform2fv( location, count, (GLfloat*)&v[offset] ); | |
1612 | + //glUniform2fv( location, count, (GLfloat*)&v[offset] ); | |
1613 | 1613 | env->ReleasePrimitiveArrayCritical(value, v, 0); |
1614 | 1614 | } |
1615 | 1615 |
@@ -1621,7 +1621,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1621 | 1621 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform2i |
1622 | 1622 | (JNIEnv *env, jobject, jint location, jint x, jint y) |
1623 | 1623 | { |
1624 | - glUniform2i( location, x, y ); | |
1624 | + //glUniform2i( location, x, y ); | |
1625 | 1625 | } |
1626 | 1626 | |
1627 | 1627 | /* |
@@ -1632,8 +1632,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1632 | 1632 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform2iv__IILjava_nio_IntBuffer_2 |
1633 | 1633 | (JNIEnv *env, jobject, jint location, jint count, jobject v) |
1634 | 1634 | { |
1635 | - void* dataPtr = getDirectBufferPointer( env, v ); | |
1636 | - glUniform2iv( location, count, (GLint*)dataPtr ); | |
1635 | + //void* dataPtr = getDirectBufferPointer( env, v ); | |
1636 | + //glUniform2iv( location, count, (GLint*)dataPtr ); | |
1637 | 1637 | } |
1638 | 1638 | |
1639 | 1639 | /* |
@@ -1645,7 +1645,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1645 | 1645 | (JNIEnv *env, jobject, jint location, jint count, jintArray value, jint offset) |
1646 | 1646 | { |
1647 | 1647 | int* v = (int*)env->GetPrimitiveArrayCritical(value, 0); |
1648 | - glUniform2iv( location, count, (GLint*)&v[offset] ); | |
1648 | + //glUniform2iv( location, count, (GLint*)&v[offset] ); | |
1649 | 1649 | env->ReleasePrimitiveArrayCritical(value, v, 0); |
1650 | 1650 | } |
1651 | 1651 |
@@ -1657,7 +1657,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1657 | 1657 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform3f |
1658 | 1658 | (JNIEnv *env, jobject, jint location, jfloat x, jfloat y, jfloat z) |
1659 | 1659 | { |
1660 | - glUniform3f( location, x, y, z ); | |
1660 | + //glUniform3f( location, x, y, z ); | |
1661 | 1661 | } |
1662 | 1662 | |
1663 | 1663 | /* |
@@ -1668,8 +1668,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1668 | 1668 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform3fv__IILjava_nio_FloatBuffer_2 |
1669 | 1669 | (JNIEnv *env, jobject, jint location, jint count, jobject v) |
1670 | 1670 | { |
1671 | - void* dataPtr = getDirectBufferPointer( env, v ); | |
1672 | - glUniform3fv( location, count, (GLfloat*)dataPtr ); | |
1671 | + //void* dataPtr = getDirectBufferPointer( env, v ); | |
1672 | + //glUniform3fv( location, count, (GLfloat*)dataPtr ); | |
1673 | 1673 | } |
1674 | 1674 | |
1675 | 1675 | /* |
@@ -1681,7 +1681,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1681 | 1681 | (JNIEnv *env, jobject, jint location, jint count, jfloatArray value, jint offset) |
1682 | 1682 | { |
1683 | 1683 | float* v = (float*)env->GetPrimitiveArrayCritical(value, 0); |
1684 | - glUniform3fv( location, count, (GLfloat*)&v[offset] ); | |
1684 | + //glUniform3fv( location, count, (GLfloat*)&v[offset] ); | |
1685 | 1685 | env->ReleasePrimitiveArrayCritical(value, v, 0); |
1686 | 1686 | } |
1687 | 1687 |
@@ -1693,7 +1693,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1693 | 1693 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform3i |
1694 | 1694 | (JNIEnv *env, jobject, jint location, jint x, jint y, jint z) |
1695 | 1695 | { |
1696 | - glUniform3i( location, x, y, z ); | |
1696 | + //glUniform3i( location, x, y, z ); | |
1697 | 1697 | } |
1698 | 1698 | |
1699 | 1699 | /* |
@@ -1704,8 +1704,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1704 | 1704 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform3iv__IILjava_nio_IntBuffer_2 |
1705 | 1705 | (JNIEnv *env, jobject, jint location, jint count, jobject v) |
1706 | 1706 | { |
1707 | - void* dataPtr = getDirectBufferPointer( env, v ); | |
1708 | - glUniform3iv( location, count, (GLint*)dataPtr ); | |
1707 | + //void* dataPtr = getDirectBufferPointer( env, v ); | |
1708 | + //glUniform3iv( location, count, (GLint*)dataPtr ); | |
1709 | 1709 | } |
1710 | 1710 | |
1711 | 1711 | /* |
@@ -1716,9 +1716,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1716 | 1716 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform3iv__II_3II |
1717 | 1717 | (JNIEnv *env, jobject, jint location, jint count, jintArray value, jint offset) |
1718 | 1718 | { |
1719 | - int* v = (int*)env->GetPrimitiveArrayCritical(value, 0); | |
1720 | - glUniform3iv( location, count, (GLint*)&v[offset] ); | |
1721 | - env->ReleasePrimitiveArrayCritical(value, v, 0); | |
1719 | + //int* v = (int*)env->GetPrimitiveArrayCritical(value, 0); | |
1720 | + //glUniform3iv( location, count, (GLint*)&v[offset] ); | |
1721 | + //env->ReleasePrimitiveArrayCritical(value, v, 0); | |
1722 | 1722 | } |
1723 | 1723 | |
1724 | 1724 | /* |
@@ -1729,7 +1729,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1729 | 1729 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform4f |
1730 | 1730 | (JNIEnv *env, jobject, jint location, jfloat x, jfloat y, jfloat z, jfloat w) |
1731 | 1731 | { |
1732 | - glUniform4f( location, x, y, z, w ); | |
1732 | + //glUniform4f( location, x, y, z, w ); | |
1733 | 1733 | } |
1734 | 1734 | |
1735 | 1735 | /* |
@@ -1740,8 +1740,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1740 | 1740 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform4fv__IILjava_nio_FloatBuffer_2 |
1741 | 1741 | (JNIEnv *env, jobject, jint location, jint count, jobject v) |
1742 | 1742 | { |
1743 | - void* dataPtr = getDirectBufferPointer( env, v ); | |
1744 | - glUniform4fv( location, count, (GLfloat*)dataPtr ); | |
1743 | + //void* dataPtr = getDirectBufferPointer( env, v ); | |
1744 | + //glUniform4fv( location, count, (GLfloat*)dataPtr ); | |
1745 | 1745 | } |
1746 | 1746 | |
1747 | 1747 | /* |
@@ -1753,7 +1753,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1753 | 1753 | (JNIEnv *env, jobject, jint location, jint count, jfloatArray value, jint offset) |
1754 | 1754 | { |
1755 | 1755 | float* v = (float*)env->GetPrimitiveArrayCritical(value, 0); |
1756 | - glUniform4fv( location, count, (GLfloat*)&v[offset] ); | |
1756 | + //glUniform4fv( location, count, (GLfloat*)&v[offset] ); | |
1757 | 1757 | env->ReleasePrimitiveArrayCritical(value, v, 0); |
1758 | 1758 | } |
1759 | 1759 |
@@ -1765,7 +1765,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1765 | 1765 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform4i |
1766 | 1766 | (JNIEnv *env, jobject, jint location, jint x, jint y, jint z, jint w) |
1767 | 1767 | { |
1768 | - glUniform4i( location, x, y, z, w ); | |
1768 | + //glUniform4i( location, x, y, z, w ); | |
1769 | 1769 | } |
1770 | 1770 | |
1771 | 1771 | /* |
@@ -1776,8 +1776,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1776 | 1776 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniform4iv__IILjava_nio_IntBuffer_2 |
1777 | 1777 | (JNIEnv *env, jobject, jint location, jint count, jobject v) |
1778 | 1778 | { |
1779 | - void* dataPtr = getDirectBufferPointer( env, v ); | |
1780 | - glUniform4iv( location, count, (GLint*)dataPtr ); | |
1779 | + //void* dataPtr = getDirectBufferPointer( env, v ); | |
1780 | + //glUniform4iv( location, count, (GLint*)dataPtr ); | |
1781 | 1781 | } |
1782 | 1782 | |
1783 | 1783 | /* |
@@ -1789,7 +1789,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1789 | 1789 | (JNIEnv *env, jobject, jint location, jint count, jintArray value, jint offset) |
1790 | 1790 | { |
1791 | 1791 | int* v = (int*)env->GetPrimitiveArrayCritical(value, 0); |
1792 | - glUniform4iv( location, count, (GLint*)&v[offset] ); | |
1792 | + //glUniform4iv( location, count, (GLint*)&v[offset] ); | |
1793 | 1793 | env->ReleasePrimitiveArrayCritical(value, v, 0); |
1794 | 1794 | } |
1795 | 1795 |
@@ -1801,8 +1801,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1801 | 1801 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniformMatrix2fv__IIZLjava_nio_FloatBuffer_2 |
1802 | 1802 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jobject value) |
1803 | 1803 | { |
1804 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
1805 | - glUniformMatrix2fv( location, count, transpose, (GLfloat*)dataPtr ); | |
1804 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
1805 | + //glUniformMatrix2fv( location, count, transpose, (GLfloat*)dataPtr ); | |
1806 | 1806 | } |
1807 | 1807 | |
1808 | 1808 | /* |
@@ -1813,9 +1813,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1813 | 1813 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniformMatrix2fv__IIZ_3FI |
1814 | 1814 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jfloatArray value, jint offset) |
1815 | 1815 | { |
1816 | - float* v = (float*)env->GetPrimitiveArrayCritical(value, 0); | |
1817 | - glUniformMatrix2fv( location, count, transpose, (GLfloat*)&v[offset] ); | |
1818 | - env->ReleasePrimitiveArrayCritical(value, v, 0); | |
1816 | + //float* v = (float*)env->GetPrimitiveArrayCritical(value, 0); | |
1817 | + //glUniformMatrix2fv( location, count, transpose, (GLfloat*)&v[offset] ); | |
1818 | + //env->ReleasePrimitiveArrayCritical(value, v, 0); | |
1819 | 1819 | } |
1820 | 1820 | |
1821 | 1821 | /* |
@@ -1826,8 +1826,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1826 | 1826 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniformMatrix3fv__IIZLjava_nio_FloatBuffer_2 |
1827 | 1827 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jobject value) |
1828 | 1828 | { |
1829 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
1830 | - glUniformMatrix3fv( location, count, transpose, (GLfloat*)dataPtr ); | |
1829 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
1830 | + //glUniformMatrix3fv( location, count, transpose, (GLfloat*)dataPtr ); | |
1831 | 1831 | } |
1832 | 1832 | |
1833 | 1833 | /* |
@@ -1838,9 +1838,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1838 | 1838 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniformMatrix3fv__IIZ_3FI |
1839 | 1839 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jfloatArray value, jint offset) |
1840 | 1840 | { |
1841 | - float* v = (float*)env->GetPrimitiveArrayCritical(value, 0); | |
1842 | - glUniformMatrix3fv( location, count, transpose, (GLfloat*)&v[offset] ); | |
1843 | - env->ReleasePrimitiveArrayCritical(value, v, 0); | |
1841 | + //float* v = (float*)env->GetPrimitiveArrayCritical(value, 0); | |
1842 | + //glUniformMatrix3fv( location, count, transpose, (GLfloat*)&v[offset] ); | |
1843 | + //env->ReleasePrimitiveArrayCritical(value, v, 0); | |
1844 | 1844 | } |
1845 | 1845 | |
1846 | 1846 | /* |
@@ -1851,8 +1851,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1851 | 1851 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUniformMatrix4fv__IIZLjava_nio_FloatBuffer_2 |
1852 | 1852 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jobject value) |
1853 | 1853 | { |
1854 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
1855 | - glUniformMatrix4fv( location, count, transpose, (GLfloat*)dataPtr ); | |
1854 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
1855 | + //glUniformMatrix4fv( location, count, transpose, (GLfloat*)dataPtr ); | |
1856 | 1856 | } |
1857 | 1857 | |
1858 | 1858 | /* |
@@ -1864,7 +1864,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1864 | 1864 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jfloatArray value, jint offset) |
1865 | 1865 | { |
1866 | 1866 | float* v = (float*)env->GetPrimitiveArrayCritical(value, 0); |
1867 | - glUniformMatrix4fv( location, count, transpose, (GLfloat*)&v[offset] ); | |
1867 | + //glUniformMatrix4fv( location, count, transpose, (GLfloat*)&v[offset] ); | |
1868 | 1868 | env->ReleasePrimitiveArrayCritical(value, v, 0); |
1869 | 1869 | } |
1870 | 1870 |
@@ -1876,7 +1876,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUnif | ||
1876 | 1876 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUseProgram |
1877 | 1877 | (JNIEnv *env, jobject, jint program) |
1878 | 1878 | { |
1879 | - glUseProgram( program ); | |
1879 | + //glUseProgram( program ); | |
1880 | 1880 | } |
1881 | 1881 | |
1882 | 1882 | /* |
@@ -1887,7 +1887,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glUseP | ||
1887 | 1887 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glValidateProgram |
1888 | 1888 | (JNIEnv *env, jobject, jint program) |
1889 | 1889 | { |
1890 | - glValidateProgram( program ); | |
1890 | + //glValidateProgram( program ); | |
1891 | 1891 | } |
1892 | 1892 | |
1893 | 1893 | /* |
@@ -1898,7 +1898,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVali | ||
1898 | 1898 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttrib1f |
1899 | 1899 | (JNIEnv *env, jobject, jint indx, jfloat x) |
1900 | 1900 | { |
1901 | - glVertexAttrib1f( indx, x ); | |
1901 | + //glVertexAttrib1f( indx, x ); | |
1902 | 1902 | } |
1903 | 1903 | |
1904 | 1904 | /* |
@@ -1909,8 +1909,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVert | ||
1909 | 1909 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttrib1fv |
1910 | 1910 | (JNIEnv *env, jobject, jint indx, jobject values) |
1911 | 1911 | { |
1912 | - void* dataPtr = getDirectBufferPointer( env, values ); | |
1913 | - glVertexAttrib1fv( indx, (GLfloat*)dataPtr ); | |
1912 | + //void* dataPtr = getDirectBufferPointer( env, values ); | |
1913 | + //glVertexAttrib1fv( indx, (GLfloat*)dataPtr ); | |
1914 | 1914 | } |
1915 | 1915 | |
1916 | 1916 | /* |
@@ -1921,7 +1921,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVert | ||
1921 | 1921 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttrib2f |
1922 | 1922 | (JNIEnv *env, jobject, jint indx, jfloat x, jfloat y) |
1923 | 1923 | { |
1924 | - glVertexAttrib2f( indx, x, y ); | |
1924 | + //glVertexAttrib2f( indx, x, y ); | |
1925 | 1925 | } |
1926 | 1926 | |
1927 | 1927 | /* |
@@ -1932,8 +1932,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVert | ||
1932 | 1932 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttrib2fv |
1933 | 1933 | (JNIEnv *env, jobject, jint indx, jobject values) |
1934 | 1934 | { |
1935 | - void* dataPtr = getDirectBufferPointer( env, values ); | |
1936 | - glVertexAttrib2fv( indx, (GLfloat*)dataPtr ); | |
1935 | + //void* dataPtr = getDirectBufferPointer( env, values ); | |
1936 | + //glVertexAttrib2fv( indx, (GLfloat*)dataPtr ); | |
1937 | 1937 | } |
1938 | 1938 | |
1939 | 1939 | /* |
@@ -1944,7 +1944,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVert | ||
1944 | 1944 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttrib3f |
1945 | 1945 | (JNIEnv *env, jobject, jint indx, jfloat x, jfloat y, jfloat z) |
1946 | 1946 | { |
1947 | - glVertexAttrib3f( indx, x, y, z ); | |
1947 | + //glVertexAttrib3f( indx, x, y, z ); | |
1948 | 1948 | } |
1949 | 1949 | |
1950 | 1950 | /* |
@@ -1955,8 +1955,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVert | ||
1955 | 1955 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttrib3fv |
1956 | 1956 | (JNIEnv *env, jobject, jint indx, jobject values) |
1957 | 1957 | { |
1958 | - void* dataPtr = getDirectBufferPointer( env, values ); | |
1959 | - glVertexAttrib3fv( indx, (GLfloat*)dataPtr ); | |
1958 | + //void* dataPtr = getDirectBufferPointer( env, values ); | |
1959 | + //glVertexAttrib3fv( indx, (GLfloat*)dataPtr ); | |
1960 | 1960 | } |
1961 | 1961 | |
1962 | 1962 | /* |
@@ -1967,7 +1967,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVert | ||
1967 | 1967 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttrib4f |
1968 | 1968 | (JNIEnv *env, jobject, jint indx, jfloat x, jfloat y, jfloat z, jfloat w) |
1969 | 1969 | { |
1970 | - glVertexAttrib4f( indx, x, y, z, w ); | |
1970 | + //glVertexAttrib4f( indx, x, y, z, w ); | |
1971 | 1971 | } |
1972 | 1972 | |
1973 | 1973 | /* |
@@ -1978,8 +1978,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVert | ||
1978 | 1978 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttrib4fv |
1979 | 1979 | (JNIEnv *env, jobject, jint indx, jobject values) |
1980 | 1980 | { |
1981 | - void* dataPtr = getDirectBufferPointer( env, values ); | |
1982 | - glVertexAttrib4fv( indx, (GLfloat*)dataPtr ); | |
1981 | + //void* dataPtr = getDirectBufferPointer( env, values ); | |
1982 | + //glVertexAttrib4fv( indx, (GLfloat*)dataPtr ); | |
1983 | 1983 | } |
1984 | 1984 | |
1985 | 1985 | /* |
@@ -1990,14 +1990,14 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVert | ||
1990 | 1990 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttribPointer__IIIZILjava_nio_Buffer_2 |
1991 | 1991 | (JNIEnv *env, jobject, jint indx, jint size, jint type, jboolean normalized, jint stride, jobject ptr) |
1992 | 1992 | { |
1993 | - void* dataPtr = getDirectBufferPointer( env, ptr ); | |
1994 | - glVertexAttribPointer( indx, size, type, normalized, stride, dataPtr ); | |
1993 | + //void* dataPtr = getDirectBufferPointer( env, ptr ); | |
1994 | + //glVertexAttribPointer( indx, size, type, normalized, stride, dataPtr ); | |
1995 | 1995 | } |
1996 | 1996 | |
1997 | 1997 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVertexAttribPointer__IIIZII |
1998 | 1998 | (JNIEnv *, jobject, jint indx, jint size, jint type, jboolean normalized, jint stride, jint ptr) |
1999 | 1999 | { |
2000 | - glVertexAttribPointer( indx, size, type, normalized, stride, (const void*)ptr ); | |
2000 | + //glVertexAttribPointer( indx, size, type, normalized, stride, (const void*)ptr ); | |
2001 | 2001 | } |
2002 | 2002 | |
2003 | 2003 | /* |
@@ -2008,7 +2008,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glVert | ||
2008 | 2008 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES20_glViewportJni |
2009 | 2009 | (JNIEnv *env, jobject, jint x, jint y, jint width, jint height) |
2010 | 2010 | { |
2011 | - glViewport( x, y, width, height ); | |
2011 | + //glViewport( x, y, width, height ); | |
2012 | 2012 | } |
2013 | 2013 | #endif |
2014 | 2014 | #endif |
@@ -116,7 +116,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_init | ||
116 | 116 | */ |
117 | 117 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glReadBuffer |
118 | 118 | (JNIEnv *env, jobject, jint mode) { |
119 | - glReadBuffer(mode); | |
119 | + //glReadBuffer(mode); | |
120 | 120 | } |
121 | 121 | |
122 | 122 | /* |
@@ -126,8 +126,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glRead | ||
126 | 126 | */ |
127 | 127 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDrawRangeElements__IIIIILjava_nio_Buffer_2 |
128 | 128 | (JNIEnv *env, jobject, jint mode, jint start, jint end, jint count, jint type, jobject indices) { |
129 | - void* dataPtr = getDirectBufferPointer( env, indices ); | |
130 | - glDrawRangeElements(mode, start, end, count, type, dataPtr); | |
129 | + //void* dataPtr = getDirectBufferPointer( env, indices ); | |
130 | + //glDrawRangeElements(mode, start, end, count, type, dataPtr); | |
131 | 131 | } |
132 | 132 | |
133 | 133 | /* |
@@ -137,7 +137,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDraw | ||
137 | 137 | */ |
138 | 138 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDrawRangeElements__IIIIII |
139 | 139 | (JNIEnv *env, jobject, jint mode, jint start, jint end, jint count, jint type, jint offset) { |
140 | - glDrawRangeElements(mode, start, end, count, type, (void*)offset); | |
140 | + //glDrawRangeElements(mode, start, end, count, type, (void*)offset); | |
141 | 141 | } |
142 | 142 | |
143 | 143 | /* |
@@ -147,8 +147,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDraw | ||
147 | 147 | */ |
148 | 148 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glTexImage3D__IIIIIIIIILjava_nio_Buffer_2 |
149 | 149 | (JNIEnv *env, jobject, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint format, jint type, jobject pixels) { |
150 | - void* dataPtr = getDirectBufferPointer( env, pixels ); | |
151 | - glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, dataPtr); | |
150 | + //void* dataPtr = getDirectBufferPointer( env, pixels ); | |
151 | + //glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, dataPtr); | |
152 | 152 | } |
153 | 153 | |
154 | 154 | /* |
@@ -158,7 +158,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glTexI | ||
158 | 158 | */ |
159 | 159 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glTexImage3D__IIIIIIIIII |
160 | 160 | (JNIEnv *env, jobject, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint format, jint type, jint offset) { |
161 | - glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (void*)offset); | |
161 | + //glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (void*)offset); | |
162 | 162 | } |
163 | 163 | |
164 | 164 | /* |
@@ -168,8 +168,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glTexI | ||
168 | 168 | */ |
169 | 169 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glTexSubImage3D__IIIIIIIIIILjava_nio_Buffer_2 |
170 | 170 | (JNIEnv *env, jobject, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jobject pixels) { |
171 | - void* dataPtr = getDirectBufferPointer( env, pixels ); | |
172 | - glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, dataPtr); | |
171 | + //void* dataPtr = getDirectBufferPointer( env, pixels ); | |
172 | + //glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, dataPtr); | |
173 | 173 | } |
174 | 174 | |
175 | 175 | /* |
@@ -179,7 +179,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glTexS | ||
179 | 179 | */ |
180 | 180 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glTexSubImage3D__IIIIIIIIIII |
181 | 181 | (JNIEnv *env, jobject, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jint offset) { |
182 | - glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (void*)offset); | |
182 | + //glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (void*)offset); | |
183 | 183 | } |
184 | 184 | |
185 | 185 | /* |
@@ -189,7 +189,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glTexS | ||
189 | 189 | */ |
190 | 190 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glCopyTexSubImage3D |
191 | 191 | (JNIEnv *env, jobject, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint x, jint y, jint width, jint height) { |
192 | - glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); | |
192 | + //glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); | |
193 | 193 | } |
194 | 194 | |
195 | 195 | /* |
@@ -200,7 +200,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glCopy | ||
200 | 200 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenQueries__I_3II |
201 | 201 | (JNIEnv *env, jobject, jint n, jintArray ids, jint offset) { |
202 | 202 | int* v = (int*)env->GetPrimitiveArrayCritical(ids, 0); |
203 | - glGenQueries(n, (GLuint*)&v[offset]); | |
203 | + //glGenQueries(n, (GLuint*)&v[offset]); | |
204 | 204 | env->ReleasePrimitiveArrayCritical(ids, v, 0); |
205 | 205 | } |
206 | 206 |
@@ -211,8 +211,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenQ | ||
211 | 211 | */ |
212 | 212 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenQueries__ILjava_nio_IntBuffer_2 |
213 | 213 | (JNIEnv *env, jobject, jint n, jobject ids) { |
214 | - void* dataPtr = getDirectBufferPointer( env, ids ); | |
215 | - glGenQueries(n, (GLuint*)dataPtr); | |
214 | + //void* dataPtr = getDirectBufferPointer( env, ids ); | |
215 | + //glGenQueries(n, (GLuint*)dataPtr); | |
216 | 216 | } |
217 | 217 | |
218 | 218 | /* |
@@ -222,8 +222,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenQ | ||
222 | 222 | */ |
223 | 223 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDeleteQueries__I_3II |
224 | 224 | (JNIEnv *env, jobject, jint n, jintArray ids, jint offset) { |
225 | - void* dataPtr = getDirectBufferPointer( env, ids ); | |
226 | - glDeleteQueries(n, (GLuint*)dataPtr); | |
225 | + //void* dataPtr = getDirectBufferPointer( env, ids ); | |
226 | + //glDeleteQueries(n, (GLuint*)dataPtr); | |
227 | 227 | } |
228 | 228 | |
229 | 229 | /* |
@@ -233,8 +233,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDele | ||
233 | 233 | */ |
234 | 234 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDeleteQueries__ILjava_nio_IntBuffer_2 |
235 | 235 | (JNIEnv *env, jobject, jint n, jobject ids) { |
236 | - void* dataPtr = getDirectBufferPointer( env, ids ); | |
237 | - glDeleteQueries(n, (GLuint*)dataPtr); | |
236 | + //void* dataPtr = getDirectBufferPointer( env, ids ); | |
237 | + //glDeleteQueries(n, (GLuint*)dataPtr); | |
238 | 238 | } |
239 | 239 | |
240 | 240 | /* |
@@ -244,7 +244,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDele | ||
244 | 244 | */ |
245 | 245 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glIsQuery |
246 | 246 | (JNIEnv *env, jobject, jint id) { |
247 | - return glIsQuery(id); | |
247 | + return false;//glIsQuery(id); | |
248 | 248 | } |
249 | 249 | |
250 | 250 | /* |
@@ -254,7 +254,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_gl | ||
254 | 254 | */ |
255 | 255 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBeginQuery |
256 | 256 | (JNIEnv *env, jobject, jint target, jint id) { |
257 | - glBeginQuery(target, id); | |
257 | + //glBeginQuery(target, id); | |
258 | 258 | } |
259 | 259 | |
260 | 260 | /* |
@@ -264,7 +264,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBegi | ||
264 | 264 | */ |
265 | 265 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glEndQuery |
266 | 266 | (JNIEnv *env, jobject, jint target) { |
267 | - glEndQuery(target); | |
267 | + //glEndQuery(target); | |
268 | 268 | } |
269 | 269 | |
270 | 270 | /* |
@@ -274,8 +274,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glEndQ | ||
274 | 274 | */ |
275 | 275 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetQueryiv |
276 | 276 | (JNIEnv *env, jobject, jint target, jint pname, jobject params) { |
277 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
278 | - glGetQueryiv(target, pname, (GLint*)dataPtr); | |
277 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
278 | + //glGetQueryiv(target, pname, (GLint*)dataPtr); | |
279 | 279 | } |
280 | 280 | |
281 | 281 | /* |
@@ -285,8 +285,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetQ | ||
285 | 285 | */ |
286 | 286 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetQueryObjectuiv |
287 | 287 | (JNIEnv *env, jobject, jint target, jint pname, jobject params) { |
288 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
289 | - glGetQueryObjectuiv(target, pname, (GLuint*)dataPtr); | |
288 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
289 | + //glGetQueryObjectuiv(target, pname, (GLuint*)dataPtr); | |
290 | 290 | } |
291 | 291 | |
292 | 292 | /* |
@@ -296,7 +296,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetQ | ||
296 | 296 | */ |
297 | 297 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnmapBuffer |
298 | 298 | (JNIEnv *env, jobject, jint target) { |
299 | - return glUnmapBuffer(target); | |
299 | + return 0;//glUnmapBuffer(target); | |
300 | 300 | } |
301 | 301 | |
302 | 302 | /* |
@@ -317,8 +317,8 @@ JNIEXPORT jobject JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glG | ||
317 | 317 | */ |
318 | 318 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDrawBuffers |
319 | 319 | (JNIEnv *env, jobject, jint n, jobject bufs) { |
320 | - void* dataPtr = getDirectBufferPointer( env, bufs ); | |
321 | - glDrawBuffers(n, (GLenum*)dataPtr); | |
320 | + //void* dataPtr = getDirectBufferPointer( env, bufs ); | |
321 | + //glDrawBuffers(n, (GLenum*)dataPtr); | |
322 | 322 | } |
323 | 323 | |
324 | 324 | /* |
@@ -328,8 +328,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDraw | ||
328 | 328 | */ |
329 | 329 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniformMatrix2x3fv |
330 | 330 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jobject value) { |
331 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
332 | - glUniformMatrix2x3fv(location, count, transpose, (GLfloat*)dataPtr); | |
331 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
332 | + //glUniformMatrix2x3fv(location, count, transpose, (GLfloat*)dataPtr); | |
333 | 333 | } |
334 | 334 | |
335 | 335 | /* |
@@ -339,8 +339,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
339 | 339 | */ |
340 | 340 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniformMatrix3x2fv |
341 | 341 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jobject value) { |
342 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
343 | - glUniformMatrix3x2fv(location, count, transpose, (GLfloat*)dataPtr); | |
342 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
343 | + //glUniformMatrix3x2fv(location, count, transpose, (GLfloat*)dataPtr); | |
344 | 344 | } |
345 | 345 | |
346 | 346 | /* |
@@ -350,8 +350,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
350 | 350 | */ |
351 | 351 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniformMatrix2x4fv |
352 | 352 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jobject value) { |
353 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
354 | - glUniformMatrix2x4fv(location, count, transpose, (GLfloat*)dataPtr); | |
353 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
354 | + //glUniformMatrix2x4fv(location, count, transpose, (GLfloat*)dataPtr); | |
355 | 355 | } |
356 | 356 | |
357 | 357 | /* |
@@ -361,8 +361,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
361 | 361 | */ |
362 | 362 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniformMatrix4x2fv |
363 | 363 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jobject value) { |
364 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
365 | - glUniformMatrix4x2fv(location, count, transpose, (GLfloat*)dataPtr); | |
364 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
365 | + //glUniformMatrix4x2fv(location, count, transpose, (GLfloat*)dataPtr); | |
366 | 366 | } |
367 | 367 | |
368 | 368 | /* |
@@ -372,8 +372,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
372 | 372 | */ |
373 | 373 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniformMatrix3x4fv |
374 | 374 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jobject value) { |
375 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
376 | - glUniformMatrix3x4fv(location, count, transpose, (GLfloat*)dataPtr); | |
375 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
376 | + //glUniformMatrix3x4fv(location, count, transpose, (GLfloat*)dataPtr); | |
377 | 377 | } |
378 | 378 | |
379 | 379 | /* |
@@ -383,8 +383,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
383 | 383 | */ |
384 | 384 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniformMatrix4x3fv |
385 | 385 | (JNIEnv *env, jobject, jint location, jint count, jboolean transpose, jobject value) { |
386 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
387 | - glUniformMatrix4x3fv(location, count, transpose, (GLfloat*)dataPtr); | |
386 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
387 | + //glUniformMatrix4x3fv(location, count, transpose, (GLfloat*)dataPtr); | |
388 | 388 | } |
389 | 389 | |
390 | 390 | /* |
@@ -394,7 +394,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
394 | 394 | */ |
395 | 395 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBlitFramebuffer |
396 | 396 | (JNIEnv *env, jobject, jint srcX0, jint srcY0, jint srcX1, jint srcY1, jint dstX0, jint dstY0, jint dstX1, jint dstY1, jint mask, jint filter) { |
397 | - glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); | |
397 | + //glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); | |
398 | 398 | } |
399 | 399 | |
400 | 400 | /* |
@@ -404,7 +404,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBlit | ||
404 | 404 | */ |
405 | 405 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glRenderbufferStorageMultisample |
406 | 406 | (JNIEnv *env, jobject, jint target, jint samples, jint internalformat, jint width, jint height) { |
407 | - glRenderbufferStorageMultisample(target, samples, internalformat, width, height); | |
407 | + //glRenderbufferStorageMultisample(target, samples, internalformat, width, height); | |
408 | 408 | } |
409 | 409 | |
410 | 410 | /* |
@@ -414,7 +414,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glRend | ||
414 | 414 | */ |
415 | 415 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glFramebufferTextureLayer |
416 | 416 | (JNIEnv *env, jobject, jint target, jint attachment, jint texture, jint level, jint layer) { |
417 | - glFramebufferTextureLayer(target, attachment, texture, level, layer); | |
417 | + //glFramebufferTextureLayer(target, attachment, texture, level, layer); | |
418 | 418 | } |
419 | 419 | |
420 | 420 |
@@ -425,11 +425,11 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glFram | ||
425 | 425 | */ |
426 | 426 | JNIEXPORT jobject JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glMapBufferRange |
427 | 427 | (JNIEnv *env, jobject, jint target, jint offset, jint length, jint access) { |
428 | - GLvoid* buf = glMapBufferRange(target, offset, length, access); | |
428 | + //GLvoid* buf = glMapBufferRange(target, offset, length, access); | |
429 | 429 | jobject returnBuffer = (jobject)0; |
430 | - if (buf) { | |
431 | - returnBuffer = env->NewDirectByteBuffer(buf, length); | |
432 | - } | |
430 | + //if (buf) { | |
431 | + // returnBuffer = env->NewDirectByteBuffer(buf, length); | |
432 | + //} | |
433 | 433 | return returnBuffer; |
434 | 434 | } |
435 | 435 |
@@ -441,7 +441,7 @@ JNIEXPORT jobject JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glM | ||
441 | 441 | */ |
442 | 442 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glFlushMappedBufferRange |
443 | 443 | (JNIEnv *env, jobject, jint target, jint offset, jint length) { |
444 | - glFlushMappedBufferRange(target, offset, length); | |
444 | + //glFlushMappedBufferRange(target, offset, length); | |
445 | 445 | } |
446 | 446 | |
447 | 447 | /* |
@@ -451,7 +451,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glFlus | ||
451 | 451 | */ |
452 | 452 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBindVertexArray |
453 | 453 | (JNIEnv *env, jobject, jint array) { |
454 | - glBindVertexArray(array); | |
454 | + //glBindVertexArray(array); | |
455 | 455 | } |
456 | 456 | |
457 | 457 | /* |
@@ -461,9 +461,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBind | ||
461 | 461 | */ |
462 | 462 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDeleteVertexArrays__I_3II |
463 | 463 | (JNIEnv *env, jobject, jint n, jintArray arrays, jint offset) { |
464 | - int* v = (int*)env->GetPrimitiveArrayCritical(arrays, 0); | |
465 | - glDeleteVertexArrays(n, (GLuint*)&v[offset]); | |
466 | - env->ReleasePrimitiveArrayCritical(arrays, v, 0); | |
464 | + //int* v = (int*)env->GetPrimitiveArrayCritical(arrays, 0); | |
465 | + //glDeleteVertexArrays(n, (GLuint*)&v[offset]); | |
466 | + //env->ReleasePrimitiveArrayCritical(arrays, v, 0); | |
467 | 467 | } |
468 | 468 | |
469 | 469 | /* |
@@ -473,8 +473,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDele | ||
473 | 473 | */ |
474 | 474 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDeleteVertexArrays__ILjava_nio_IntBuffer_2 |
475 | 475 | (JNIEnv *env, jobject, jint n, jobject arrays) { |
476 | - void* dataPtr = getDirectBufferPointer( env, arrays ); | |
477 | - glDeleteVertexArrays(n, (GLuint*)dataPtr); | |
476 | + //void* dataPtr = getDirectBufferPointer( env, arrays ); | |
477 | + //glDeleteVertexArrays(n, (GLuint*)dataPtr); | |
478 | 478 | } |
479 | 479 | |
480 | 480 | /* |
@@ -484,9 +484,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDele | ||
484 | 484 | */ |
485 | 485 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenVertexArrays__I_3II |
486 | 486 | (JNIEnv *env, jobject, jint n, jintArray arrays, jint offset) { |
487 | - int* v = (int*)env->GetPrimitiveArrayCritical(arrays, 0); | |
488 | - glGenVertexArrays(n, (GLuint*)&v[offset]); | |
489 | - env->ReleasePrimitiveArrayCritical(arrays, v, 0); | |
487 | + //int* v = (int*)env->GetPrimitiveArrayCritical(arrays, 0); | |
488 | + //glGenVertexArrays(n, (GLuint*)&v[offset]); | |
489 | + //env->ReleasePrimitiveArrayCritical(arrays, v, 0); | |
490 | 490 | } |
491 | 491 | |
492 | 492 | /* |
@@ -496,8 +496,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenV | ||
496 | 496 | */ |
497 | 497 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenVertexArrays__ILjava_nio_IntBuffer_2 |
498 | 498 | (JNIEnv *env, jobject, jint n, jobject arrays) { |
499 | - void* dataPtr = getDirectBufferPointer( env, arrays ); | |
500 | - glGenVertexArrays(n, (GLuint*)dataPtr); | |
499 | + //void* dataPtr = getDirectBufferPointer( env, arrays ); | |
500 | + //glGenVertexArrays(n, (GLuint*)dataPtr); | |
501 | 501 | } |
502 | 502 | |
503 | 503 | /* |
@@ -507,7 +507,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenV | ||
507 | 507 | */ |
508 | 508 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glIsVertexArray |
509 | 509 | (JNIEnv *env, jobject, jint array) { |
510 | - return glIsVertexArray(array); | |
510 | + return false;//glIsVertexArray(array); | |
511 | 511 | } |
512 | 512 | |
513 | 513 | /* |
@@ -517,7 +517,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_gl | ||
517 | 517 | */ |
518 | 518 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBeginTransformFeedback |
519 | 519 | (JNIEnv *env, jobject, jint primitiveMode) { |
520 | - glBeginTransformFeedback(primitiveMode); | |
520 | + //glBeginTransformFeedback(primitiveMode); | |
521 | 521 | } |
522 | 522 | |
523 | 523 | /* |
@@ -527,7 +527,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBegi | ||
527 | 527 | */ |
528 | 528 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glEndTransformFeedback |
529 | 529 | (JNIEnv *env, jobject) { |
530 | - glEndTransformFeedback(); | |
530 | + //glEndTransformFeedback(); | |
531 | 531 | } |
532 | 532 | |
533 | 533 | /* |
@@ -537,7 +537,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glEndT | ||
537 | 537 | */ |
538 | 538 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBindBufferRange |
539 | 539 | (JNIEnv *env, jobject, jint target, jint index, jint buffer, jint offset, jint size) { |
540 | - glBindBufferRange(target, index, buffer, offset, size); | |
540 | + //glBindBufferRange(target, index, buffer, offset, size); | |
541 | 541 | } |
542 | 542 | |
543 | 543 | /* |
@@ -547,7 +547,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBind | ||
547 | 547 | */ |
548 | 548 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBindBufferBase |
549 | 549 | (JNIEnv *env, jobject, jint target, jint index, jint buffer) { |
550 | - glBindBufferBase(target, index, buffer); | |
550 | + //glBindBufferBase(target, index, buffer); | |
551 | 551 | } |
552 | 552 | |
553 | 553 | /* |
@@ -568,7 +568,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glTran | ||
568 | 568 | */ |
569 | 569 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glVertexAttribIPointer |
570 | 570 | (JNIEnv *env, jobject, jint index, jint size, jint type, jint stride, jint offset) { |
571 | - glVertexAttribIPointer(index, size, type, stride, (void*)offset); | |
571 | + //glVertexAttribIPointer(index, size, type, stride, (void*)offset); | |
572 | 572 | } |
573 | 573 | |
574 | 574 | /* |
@@ -579,7 +579,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glVert | ||
579 | 579 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetVertexAttribIiv |
580 | 580 | (JNIEnv *env, jobject, jint index, jint pname, jobject params) { |
581 | 581 | void* dataPtr = getDirectBufferPointer( env, params ); |
582 | - glGetVertexAttribIiv(index, pname, (GLint*)dataPtr); | |
582 | + //glGetVertexAttribIiv(index, pname, (GLint*)dataPtr); | |
583 | 583 | } |
584 | 584 | |
585 | 585 | /* |
@@ -590,7 +590,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetV | ||
590 | 590 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetVertexAttribIuiv |
591 | 591 | (JNIEnv *env, jobject, jint index, jint pname, jobject params) { |
592 | 592 | void* dataPtr = getDirectBufferPointer( env, params ); |
593 | - glGetVertexAttribIuiv(index, pname, (GLuint*)dataPtr); | |
593 | + //glGetVertexAttribIuiv(index, pname, (GLuint*)dataPtr); | |
594 | 594 | } |
595 | 595 | |
596 | 596 | /* |
@@ -600,7 +600,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetV | ||
600 | 600 | */ |
601 | 601 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glVertexAttribI4i |
602 | 602 | (JNIEnv *env, jobject, jint index, jint x, jint y, jint z, jint w) { |
603 | - glVertexAttribI4i(index, x, y, z, w); | |
603 | + //glVertexAttribI4i(index, x, y, z, w); | |
604 | 604 | } |
605 | 605 | |
606 | 606 | /* |
@@ -610,7 +610,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glVert | ||
610 | 610 | */ |
611 | 611 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glVertexAttribI4ui |
612 | 612 | (JNIEnv *env, jobject, jint index, jint x, jint y, jint z, jint w) { |
613 | - glVertexAttribI4ui(index, x, y, z, w); | |
613 | + //glVertexAttribI4ui(index, x, y, z, w); | |
614 | 614 | } |
615 | 615 | |
616 | 616 | /* |
@@ -621,7 +621,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glVert | ||
621 | 621 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetUniformuiv |
622 | 622 | (JNIEnv *env, jobject, jint program, jint location, jobject params) { |
623 | 623 | void* dataPtr = getDirectBufferPointer( env, params ); |
624 | - glGetUniformuiv(program, location, (GLuint*)dataPtr); | |
624 | + //glGetUniformuiv(program, location, (GLuint*)dataPtr); | |
625 | 625 | } |
626 | 626 | |
627 | 627 | /* |
@@ -631,9 +631,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetU | ||
631 | 631 | */ |
632 | 632 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetFragDataLocation |
633 | 633 | (JNIEnv *env, jobject, jint program, jstring name) { |
634 | - const char* cname = getString( env, name ); | |
635 | - int loc = glGetFragDataLocation(program, cname); | |
636 | - releaseString( env, name, cname ); | |
634 | + //const char* cname = getString( env, name ); | |
635 | + //int loc = 0;//glGetFragDataLocation(program, cname); | |
636 | + //releaseString( env, name, cname ); | |
637 | 637 | } |
638 | 638 | |
639 | 639 | /* |
@@ -643,8 +643,8 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetF | ||
643 | 643 | */ |
644 | 644 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniform1uiv |
645 | 645 | (JNIEnv *env, jobject, jint location, jint count, jobject value) { |
646 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
647 | - glUniform1uiv(location, count, (GLuint*)dataPtr); | |
646 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
647 | + //glUniform1uiv(location, count, (GLuint*)dataPtr); | |
648 | 648 | } |
649 | 649 | |
650 | 650 | /* |
@@ -654,8 +654,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
654 | 654 | */ |
655 | 655 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniform3uiv |
656 | 656 | (JNIEnv *env, jobject, jint location, jint count, jobject value) { |
657 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
658 | - glUniform3uiv(location, count, (GLuint*)dataPtr); | |
657 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
658 | + //glUniform3uiv(location, count, (GLuint*)dataPtr); | |
659 | 659 | } |
660 | 660 | |
661 | 661 | /* |
@@ -665,8 +665,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
665 | 665 | */ |
666 | 666 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniform4uiv |
667 | 667 | (JNIEnv *env, jobject, jint location, jint count, jobject value) { |
668 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
669 | - glUniform4uiv(location, count, (GLuint*)dataPtr); | |
668 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
669 | + //glUniform4uiv(location, count, (GLuint*)dataPtr); | |
670 | 670 | } |
671 | 671 | |
672 | 672 | /* |
@@ -676,8 +676,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
676 | 676 | */ |
677 | 677 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glClearBufferiv |
678 | 678 | (JNIEnv *env, jobject, jint buffer, jint drawbuffer, jobject value) { |
679 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
680 | - glClearBufferiv(buffer, drawbuffer, (GLint*)dataPtr); | |
679 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
680 | + //glClearBufferiv(buffer, drawbuffer, (GLint*)dataPtr); | |
681 | 681 | } |
682 | 682 | |
683 | 683 | /* |
@@ -687,8 +687,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glClea | ||
687 | 687 | */ |
688 | 688 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glClearBufferuiv |
689 | 689 | (JNIEnv *env, jobject, jint buffer, jint drawbuffer, jobject value) { |
690 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
691 | - glClearBufferuiv(buffer, drawbuffer, (GLuint*)dataPtr); | |
690 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
691 | + //glClearBufferuiv(buffer, drawbuffer, (GLuint*)dataPtr); | |
692 | 692 | } |
693 | 693 | |
694 | 694 | /* |
@@ -698,8 +698,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glClea | ||
698 | 698 | */ |
699 | 699 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glClearBufferfv |
700 | 700 | (JNIEnv *env, jobject, jint buffer, jint drawbuffer, jobject value) { |
701 | - void* dataPtr = getDirectBufferPointer( env, value ); | |
702 | - glClearBufferfv(buffer, drawbuffer, (GLfloat*)dataPtr); | |
701 | + //void* dataPtr = getDirectBufferPointer( env, value ); | |
702 | + //glClearBufferfv(buffer, drawbuffer, (GLfloat*)dataPtr); | |
703 | 703 | } |
704 | 704 | |
705 | 705 | /* |
@@ -709,7 +709,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glClea | ||
709 | 709 | */ |
710 | 710 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glClearBufferfi |
711 | 711 | (JNIEnv *env, jobject, jint buffer, jint drawbuffer, jfloat depth, jint stencil) { |
712 | - glClearBufferfi(buffer, drawbuffer, depth, stencil); | |
712 | + //glClearBufferfi(buffer, drawbuffer, depth, stencil); | |
713 | 713 | } |
714 | 714 | |
715 | 715 | /* |
@@ -719,7 +719,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glClea | ||
719 | 719 | */ |
720 | 720 | JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetStringi |
721 | 721 | (JNIEnv *env, jobject, jint name, jint index) { |
722 | - return env->NewStringUTF((const char *)glGetStringi(name, index)); | |
722 | + return env->NewStringUTF("");//(const char *)glGetStringi(name, index)); | |
723 | 723 | } |
724 | 724 | |
725 | 725 | /* |
@@ -729,7 +729,7 @@ JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glG | ||
729 | 729 | */ |
730 | 730 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glCopyBufferSubData |
731 | 731 | (JNIEnv *env, jobject, jint readTarget, jint writeTarget, jint readOffset, jint writeOffset, jint size) { |
732 | - glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); | |
732 | + //glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size); | |
733 | 733 | } |
734 | 734 | |
735 | 735 | /* |
@@ -750,9 +750,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetU | ||
750 | 750 | */ |
751 | 751 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetActiveUniformsiv |
752 | 752 | (JNIEnv *env, jobject, jint program, jint uniformCount, jobject indices, jint pname, jobject params) { |
753 | - void* indicesPtr = getDirectBufferPointer( env, indices ); | |
754 | - void* paramsPtr = getDirectBufferPointer( env, params ); | |
755 | - glGetActiveUniformsiv(program, uniformCount, (GLuint*)indicesPtr, pname, (GLint*)paramsPtr); | |
753 | + //void* indicesPtr = getDirectBufferPointer( env, indices ); | |
754 | + //void* paramsPtr = getDirectBufferPointer( env, params ); | |
755 | + //glGetActiveUniformsiv(program, uniformCount, (GLuint*)indicesPtr, pname, (GLint*)paramsPtr); | |
756 | 756 | } |
757 | 757 | |
758 | 758 | /* |
@@ -762,10 +762,10 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetA | ||
762 | 762 | */ |
763 | 763 | JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetUniformBlockIndex |
764 | 764 | (JNIEnv *env, jobject, jint program, jstring uniformBlockName) { |
765 | - const char* cname = getString( env, uniformBlockName ); | |
766 | - int loc = glGetUniformBlockIndex(program, cname); | |
767 | - releaseString( env, uniformBlockName, cname ); | |
768 | - return loc; | |
765 | + //const char* cname = getString( env, uniformBlockName ); | |
766 | + //int loc = 0;//glGetUniformBlockIndex(program, cname); | |
767 | + //releaseString( env, uniformBlockName, cname ); | |
768 | + return 0;//loc; | |
769 | 769 | } |
770 | 770 | |
771 | 771 | /* |
@@ -775,8 +775,8 @@ JNIEXPORT jint JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetU | ||
775 | 775 | */ |
776 | 776 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetActiveUniformBlockiv |
777 | 777 | (JNIEnv *env, jobject, jint program, jint uniformBlockIndex, jint pname, jobject params) { |
778 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
779 | - glGetActiveUniformBlockiv(program, uniformBlockIndex, pname, (GLint*)dataPtr); | |
778 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
779 | + //glGetActiveUniformBlockiv(program, uniformBlockIndex, pname, (GLint*)dataPtr); | |
780 | 780 | } |
781 | 781 | |
782 | 782 | /* |
@@ -808,7 +808,7 @@ JNIEXPORT jstring JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glG | ||
808 | 808 | */ |
809 | 809 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUniformBlockBinding |
810 | 810 | (JNIEnv *env, jobject, jint program, jint uniformBlockIndex, jint uniformBlockBinding) { |
811 | - glUniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); | |
811 | + //glUniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); | |
812 | 812 | } |
813 | 813 | |
814 | 814 | /* |
@@ -818,7 +818,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glUnif | ||
818 | 818 | */ |
819 | 819 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDrawArraysInstanced |
820 | 820 | (JNIEnv *env, jobject, jint mode, jint first, jint count, jint instancecount) { |
821 | - glDrawArraysInstanced(mode, first, count, instancecount); | |
821 | + //glDrawArraysInstanced(mode, first, count, instancecount); | |
822 | 822 | } |
823 | 823 | |
824 | 824 | /* |
@@ -828,7 +828,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDraw | ||
828 | 828 | */ |
829 | 829 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDrawElementsInstanced |
830 | 830 | (JNIEnv *env, jobject, jint mode, jint count, jint type, jint indicesOffset, jint instancecount) { |
831 | - glDrawElementsInstanced(mode, count, type, (GLvoid*)indicesOffset, instancecount); | |
831 | + //glDrawElementsInstanced(mode, count, type, (GLvoid*)indicesOffset, instancecount); | |
832 | 832 | } |
833 | 833 | |
834 | 834 | /* |
@@ -838,8 +838,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDraw | ||
838 | 838 | */ |
839 | 839 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetInteger64v |
840 | 840 | (JNIEnv *env, jobject, jint pname, jobject data) { |
841 | - void* dataPtr = getDirectBufferPointer( env, data ); | |
842 | - glGetInteger64v(pname, (GLint64*)dataPtr); | |
841 | + //void* dataPtr = getDirectBufferPointer( env, data ); | |
842 | + //glGetInteger64v(pname, (GLint64*)dataPtr); | |
843 | 843 | } |
844 | 844 | |
845 | 845 | /* |
@@ -849,8 +849,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetI | ||
849 | 849 | */ |
850 | 850 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetBufferParameteri64v |
851 | 851 | (JNIEnv *env, jobject, jint target, jint pname, jobject params) { |
852 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
853 | - glGetBufferParameteri64v(target, pname, (GLint64*)dataPtr); | |
852 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
853 | + //glGetBufferParameteri64v(target, pname, (GLint64*)dataPtr); | |
854 | 854 | } |
855 | 855 | |
856 | 856 | /* |
@@ -861,7 +861,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetB | ||
861 | 861 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenSamplers__I_3II |
862 | 862 | (JNIEnv *env, jobject, jint count, jintArray samplers, jint offset) { |
863 | 863 | int* v = (int*)env->GetPrimitiveArrayCritical(samplers, 0); |
864 | - glGenSamplers(count, (GLuint*)&v[offset]); | |
864 | + //glGenSamplers(count, (GLuint*)&v[offset]); | |
865 | 865 | env->ReleasePrimitiveArrayCritical(samplers, v, 0); |
866 | 866 | } |
867 | 867 |
@@ -872,8 +872,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenS | ||
872 | 872 | */ |
873 | 873 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenSamplers__ILjava_nio_IntBuffer_2 |
874 | 874 | (JNIEnv *env, jobject, jint count, jobject samplers) { |
875 | - void* dataPtr = getDirectBufferPointer( env, samplers ); | |
876 | - glGenSamplers(count, (GLuint*)dataPtr); | |
875 | + //void* dataPtr = getDirectBufferPointer( env, samplers ); | |
876 | + //glGenSamplers(count, (GLuint*)dataPtr); | |
877 | 877 | } |
878 | 878 | |
879 | 879 | /* |
@@ -883,9 +883,9 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenS | ||
883 | 883 | */ |
884 | 884 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDeleteSamplers__I_3II |
885 | 885 | (JNIEnv *env, jobject, jint count, jintArray samplers, jint offset) { |
886 | - int* v = (int*)env->GetPrimitiveArrayCritical(samplers, 0); | |
887 | - glDeleteSamplers(count, (GLuint*)&v[offset]); | |
888 | - env->ReleasePrimitiveArrayCritical(samplers, v, 0); | |
886 | + //int* v = (int*)env->GetPrimitiveArrayCritical(samplers, 0); | |
887 | + //glDeleteSamplers(count, (GLuint*)&v[offset]); | |
888 | + //env->ReleasePrimitiveArrayCritical(samplers, v, 0); | |
889 | 889 | } |
890 | 890 | |
891 | 891 | /* |
@@ -895,8 +895,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDele | ||
895 | 895 | */ |
896 | 896 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDeleteSamplers__ILjava_nio_IntBuffer_2 |
897 | 897 | (JNIEnv *env, jobject, jint count, jobject samplers) { |
898 | - void* dataPtr = getDirectBufferPointer( env, samplers ); | |
899 | - glDeleteSamplers(count, (GLuint*)dataPtr); | |
898 | + //void* dataPtr = getDirectBufferPointer( env, samplers ); | |
899 | + //glDeleteSamplers(count, (GLuint*)dataPtr); | |
900 | 900 | } |
901 | 901 | |
902 | 902 | /* |
@@ -906,7 +906,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDele | ||
906 | 906 | */ |
907 | 907 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glIsSampler |
908 | 908 | (JNIEnv *env, jobject, jint sampler) { |
909 | - return glIsSampler(sampler); | |
909 | + return false;//glIsSampler(sampler); | |
910 | 910 | } |
911 | 911 | |
912 | 912 | /* |
@@ -916,7 +916,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_gl | ||
916 | 916 | */ |
917 | 917 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBindSampler |
918 | 918 | (JNIEnv *env, jobject, jint unit, jint sampler) { |
919 | - glBindSampler(unit, sampler); | |
919 | + //glBindSampler(unit, sampler); | |
920 | 920 | } |
921 | 921 | |
922 | 922 | /* |
@@ -926,7 +926,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBind | ||
926 | 926 | */ |
927 | 927 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glSamplerParameteri |
928 | 928 | (JNIEnv *env, jobject, jint sampler, jint pname, jint param) { |
929 | - glSamplerParameteri(sampler, pname, param); | |
929 | + //glSamplerParameteri(sampler, pname, param); | |
930 | 930 | } |
931 | 931 | |
932 | 932 | /* |
@@ -936,8 +936,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glSamp | ||
936 | 936 | */ |
937 | 937 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glSamplerParameteriv |
938 | 938 | (JNIEnv *env, jobject, jint sampler, jint pname, jobject params) { |
939 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
940 | - glSamplerParameteriv(sampler, pname, (GLint*)dataPtr); | |
939 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
940 | + //glSamplerParameteriv(sampler, pname, (GLint*)dataPtr); | |
941 | 941 | } |
942 | 942 | |
943 | 943 | /* |
@@ -947,7 +947,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glSamp | ||
947 | 947 | */ |
948 | 948 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glSamplerParameterf |
949 | 949 | (JNIEnv *env, jobject, jint sampler, jint pname, jfloat param) { |
950 | - glSamplerParameterf(sampler, pname, param); | |
950 | + //glSamplerParameterf(sampler, pname, param); | |
951 | 951 | } |
952 | 952 | |
953 | 953 | /* |
@@ -957,8 +957,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glSamp | ||
957 | 957 | */ |
958 | 958 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glSamplerParameterfv |
959 | 959 | (JNIEnv *env, jobject, jint sampler, jint pname, jobject params) { |
960 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
961 | - glSamplerParameterfv(sampler, pname, (GLfloat*)dataPtr); | |
960 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
961 | + //glSamplerParameterfv(sampler, pname, (GLfloat*)dataPtr); | |
962 | 962 | } |
963 | 963 | |
964 | 964 | /* |
@@ -968,8 +968,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glSamp | ||
968 | 968 | */ |
969 | 969 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetSamplerParameteriv |
970 | 970 | (JNIEnv *env, jobject, jint sampler, jint pname, jobject params) { |
971 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
972 | - glGetSamplerParameteriv(sampler, pname, (GLint*)dataPtr); | |
971 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
972 | + //glGetSamplerParameteriv(sampler, pname, (GLint*)dataPtr); | |
973 | 973 | } |
974 | 974 | |
975 | 975 | /* |
@@ -979,8 +979,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetS | ||
979 | 979 | */ |
980 | 980 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetSamplerParameterfv |
981 | 981 | (JNIEnv *env, jobject, jint sampler, jint pname, jobject params) { |
982 | - void* dataPtr = getDirectBufferPointer( env, params ); | |
983 | - glGetSamplerParameterfv(sampler, pname, (GLfloat*)dataPtr); | |
982 | + //void* dataPtr = getDirectBufferPointer( env, params ); | |
983 | + //glGetSamplerParameterfv(sampler, pname, (GLfloat*)dataPtr); | |
984 | 984 | } |
985 | 985 | |
986 | 986 | /* |
@@ -990,7 +990,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGetS | ||
990 | 990 | */ |
991 | 991 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glVertexAttribDivisor |
992 | 992 | (JNIEnv *env, jobject, jint index, jint divisor) { |
993 | - glVertexAttribDivisor(index, divisor); | |
993 | + //glVertexAttribDivisor(index, divisor); | |
994 | 994 | } |
995 | 995 | |
996 | 996 | /* |
@@ -1000,7 +1000,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glVert | ||
1000 | 1000 | */ |
1001 | 1001 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBindTransformFeedback |
1002 | 1002 | (JNIEnv *env, jobject, jint target, jint id) { |
1003 | - glBindTransformFeedback(target, id); | |
1003 | + //glBindTransformFeedback(target, id); | |
1004 | 1004 | } |
1005 | 1005 | |
1006 | 1006 | /* |
@@ -1011,7 +1011,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glBind | ||
1011 | 1011 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDeleteTransformFeedbacks__I_3II |
1012 | 1012 | (JNIEnv *env, jobject, jint n, jintArray ids, jint offset) { |
1013 | 1013 | int* v = (int*)env->GetPrimitiveArrayCritical(ids, 0); |
1014 | - glDeleteTransformFeedbacks(n, (GLuint*)&v[offset]); | |
1014 | + //glDeleteTransformFeedbacks(n, (GLuint*)&v[offset]); | |
1015 | 1015 | env->ReleasePrimitiveArrayCritical(ids, v, 0); |
1016 | 1016 | } |
1017 | 1017 |
@@ -1022,8 +1022,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDele | ||
1022 | 1022 | */ |
1023 | 1023 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDeleteTransformFeedbacks__ILjava_nio_IntBuffer_2 |
1024 | 1024 | (JNIEnv *env, jobject, jint n, jobject ids) { |
1025 | - void* dataPtr = getDirectBufferPointer( env, ids ); | |
1026 | - glDeleteTransformFeedbacks(n, (GLuint*)dataPtr); | |
1025 | + //void* dataPtr = getDirectBufferPointer( env, ids ); | |
1026 | + //glDeleteTransformFeedbacks(n, (GLuint*)dataPtr); | |
1027 | 1027 | } |
1028 | 1028 | |
1029 | 1029 | /* |
@@ -1034,7 +1034,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glDele | ||
1034 | 1034 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenTransformFeedbacks__I_3II |
1035 | 1035 | (JNIEnv *env, jobject, jint n, jintArray ids, jint offset) { |
1036 | 1036 | int* v = (int*)env->GetPrimitiveArrayCritical(ids, 0); |
1037 | - glGenTransformFeedbacks(n, (GLuint*)&v[offset]); | |
1037 | + //glGenTransformFeedbacks(n, (GLuint*)&v[offset]); | |
1038 | 1038 | env->ReleasePrimitiveArrayCritical(ids, v, 0); |
1039 | 1039 | } |
1040 | 1040 |
@@ -1045,8 +1045,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenT | ||
1045 | 1045 | */ |
1046 | 1046 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenTransformFeedbacks__ILjava_nio_IntBuffer_2 |
1047 | 1047 | (JNIEnv *env, jobject, jint n, jobject ids) { |
1048 | - void* dataPtr = getDirectBufferPointer( env, ids ); | |
1049 | - glGenTransformFeedbacks(n, (GLuint*)dataPtr); | |
1048 | + //void* dataPtr = getDirectBufferPointer( env, ids ); | |
1049 | + //glGenTransformFeedbacks(n, (GLuint*)dataPtr); | |
1050 | 1050 | } |
1051 | 1051 | |
1052 | 1052 | /* |
@@ -1056,7 +1056,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glGenT | ||
1056 | 1056 | */ |
1057 | 1057 | JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glIsTransformFeedback |
1058 | 1058 | (JNIEnv *env, jobject, jint id) { |
1059 | - return glIsTransformFeedback(id); | |
1059 | + return false;//glIsTransformFeedback(id); | |
1060 | 1060 | } |
1061 | 1061 | |
1062 | 1062 | /* |
@@ -1066,7 +1066,7 @@ JNIEXPORT jboolean JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_gl | ||
1066 | 1066 | */ |
1067 | 1067 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glPauseTransformFeedback |
1068 | 1068 | (JNIEnv *env, jobject) { |
1069 | - glPauseTransformFeedback(); | |
1069 | + //glPauseTransformFeedback(); | |
1070 | 1070 | } |
1071 | 1071 | /* |
1072 | 1072 | * Class: com_badlogic_gdx_backends_iosrobovm_IOSGLES30 |
@@ -1075,7 +1075,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glPaus | ||
1075 | 1075 | */ |
1076 | 1076 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glResumeTransformFeedback |
1077 | 1077 | (JNIEnv *env, jobject) { |
1078 | - glResumeTransformFeedback(); | |
1078 | + //glResumeTransformFeedback(); | |
1079 | 1079 | } |
1080 | 1080 | |
1081 | 1081 | /* |
@@ -1085,7 +1085,7 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glResu | ||
1085 | 1085 | */ |
1086 | 1086 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glProgramParameteri |
1087 | 1087 | (JNIEnv *env, jobject, jint program, jint pname, jint value) { |
1088 | - glProgramParameteri(program, pname, value); | |
1088 | + //glProgramParameteri(program, pname, value); | |
1089 | 1089 | } |
1090 | 1090 | |
1091 | 1091 | /* |
@@ -1095,8 +1095,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glProg | ||
1095 | 1095 | */ |
1096 | 1096 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glInvalidateFramebuffer |
1097 | 1097 | (JNIEnv *env, jobject, jint target, jint numAttachments, jobject attachments) { |
1098 | - void* dataPtr = getDirectBufferPointer( env, attachments ); | |
1099 | - glInvalidateFramebuffer(target, numAttachments, (GLenum*)dataPtr); | |
1098 | + //void* dataPtr = getDirectBufferPointer( env, attachments ); | |
1099 | + //glInvalidateFramebuffer(target, numAttachments, (GLenum*)dataPtr); | |
1100 | 1100 | } |
1101 | 1101 | |
1102 | 1102 | /* |
@@ -1106,8 +1106,8 @@ JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glInva | ||
1106 | 1106 | */ |
1107 | 1107 | JNIEXPORT void JNICALL Java_com_badlogic_gdx_backends_iosrobovm_IOSGLES30_glInvalidateSubFramebuffer |
1108 | 1108 | (JNIEnv *env, jobject, jint target, jint numAttachments, jobject attachments, jint x, jint y, jint width, jint height) { |
1109 | - void* dataPtr = getDirectBufferPointer( env, attachments ); | |
1110 | - glInvalidateSubFramebuffer(target, numAttachments, (GLenum*)dataPtr, x, y, width, height); | |
1109 | + //void* dataPtr = getDirectBufferPointer( env, attachments ); | |
1110 | + //glInvalidateSubFramebuffer(target, numAttachments, (GLenum*)dataPtr, x, y, width, height); | |
1111 | 1111 | } |
1112 | 1112 | |
1113 | 1113 |