1 package com.badlogic.gdx.backends.iosrobovm; 2 3 import com.badlogic.gdx.graphics.GL30; 4 5 import java.nio.Buffer; 6 import java.nio.FloatBuffer; 7 import java.nio.IntBuffer; 8 import java.nio.LongBuffer; 9 10 public class IOSGLES30 extends IOSGLES20 implements GL30 { 11 12 public IOSGLES30() { 13 init(); 14 } 15 16 private static native void init( ); 17 18 public native void glReadBuffer(int mode); 19 20 public native void glDrawRangeElements(int mode, int start, int end, int count, int type, Buffer indices); 21 22 public native void glDrawRangeElements(int mode, int start, int end, int count, int type, int offset); 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); 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); 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); 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); 31 32 public native void glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height); 33 34 public native void glGenQueries(int n, int[] ids, int offset); 35 36 public native void glGenQueries(int n, IntBuffer ids); 37 38 public native void glDeleteQueries(int n, int[] ids, int offset); 39 40 public native void glDeleteQueries(int n, IntBuffer ids); 41 42 public native boolean glIsQuery(int id); 43 44 public native void glBeginQuery(int target, int id); 45 46 public native void glEndQuery(int target); 47 48 public native void glGetQueryiv(int target, int pname, IntBuffer params); 49 50 public native void glGetQueryObjectuiv(int id, int pname, IntBuffer params); 51 52 public native boolean glUnmapBuffer(int target); 53 54 public native Buffer glGetBufferPointerv(int target, int pname); 55 56 public native void glDrawBuffers(int n, IntBuffer bufs); 57 58 public native void glUniformMatrix2x3fv(int location, int count, boolean transpose, FloatBuffer value); 59 60 public native void glUniformMatrix3x2fv(int location, int count, boolean transpose, FloatBuffer value); 61 62 public native void glUniformMatrix2x4fv(int location, int count, boolean transpose, FloatBuffer value); 63 64 public native void glUniformMatrix4x2fv(int location, int count, boolean transpose, FloatBuffer value); 65 66 public native void glUniformMatrix3x4fv(int location, int count, boolean transpose, FloatBuffer value); 67 68 public native void glUniformMatrix4x3fv(int location, int count, boolean transpose, FloatBuffer value); 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); 71 72 public native void glRenderbufferStorageMultisample(int target, int samples, int internalformat, int width, int height); 73 74 public native void glFramebufferTextureLayer(int target, int attachment, int texture, int level, int layer); 75 76 public native void glFlushMappedBufferRange(int target, int offset, int length); 77 78 public native void glBindVertexArray(int array); 79 80 public native void glDeleteVertexArrays(int n, int[] arrays, int offset); 81 82 public native void glDeleteVertexArrays(int n, IntBuffer arrays); 83 84 public native void glGenVertexArrays(int n, int[] arrays, int offset); 85 86 public native void glGenVertexArrays(int n, IntBuffer arrays); 87 88 public native boolean glIsVertexArray(int array); 89 90 public native void glBeginTransformFeedback(int primitiveMode); 91 92 public native void glEndTransformFeedback(); 93 94 public native void glBindBufferRange(int target, int index, int buffer, int offset, int size); 95 96 public native void glBindBufferBase(int target, int index, int buffer); 97 98 public native void glTransformFeedbackVaryings(int program, String[] varyings, int bufferMode); 99 100 public native void glVertexAttribIPointer(int index, int size, int type, int stride, int offset); 101 102 public native void glGetVertexAttribIiv(int index, int pname, IntBuffer params); 103 104 public native void glGetVertexAttribIuiv(int index, int pname, IntBuffer params); 105 106 public native void glVertexAttribI4i(int index, int x, int y, int z, int w); 107 108 public native void glVertexAttribI4ui(int index, int x, int y, int z, int w); 109 110 public native void glGetUniformuiv(int program, int location, IntBuffer params); 111 112 public native int glGetFragDataLocation(int program, String name); 113 114 public native void glUniform1uiv(int location, int count, IntBuffer value); 115 116 public native void glUniform3uiv(int location, int count, IntBuffer value); 117 118 public native void glUniform4uiv(int location, int count, IntBuffer value); 119 120 public native void glClearBufferiv(int buffer, int drawbuffer, IntBuffer value); 121 122 public native void glClearBufferuiv(int buffer, int drawbuffer, IntBuffer value); 123 124 public native void glClearBufferfv(int buffer, int drawbuffer, FloatBuffer value); 125 126 public native void glClearBufferfi(int buffer, int drawbuffer, float depth, int stencil); 127 128 public native String glGetStringi(int name, int index); 129 130 public native void glCopyBufferSubData(int readTarget, int writeTarget, int readOffset, int writeOffset, int size); 131 132 public native void glGetUniformIndices(int program, String[] uniformNames, IntBuffer uniformIndices); 133 134 public native void glGetActiveUniformsiv(int program, int uniformCount, IntBuffer uniformIndices, int pname, IntBuffer params); 135 136 public native int glGetUniformBlockIndex(int program, String uniformBlockName); 137 138 public native void glGetActiveUniformBlockiv(int program, int uniformBlockIndex, int pname, IntBuffer params); 139 140 public native void glGetActiveUniformBlockName(int program, int uniformBlockIndex, Buffer length, Buffer uniformBlockName); 141 142 public native String glGetActiveUniformBlockName(int program, int uniformBlockIndex); 143 144 public native void glUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding); 145 146 public native void glDrawArraysInstanced(int mode, int first, int count, int instanceCount); 147 148 public native void glDrawElementsInstanced(int mode, int count, int type, int indicesOffset, int instanceCount); 149 150 public native void glGetInteger64v(int pname, LongBuffer params); 151 152 public native void glGetBufferParameteri64v(int target, int pname, LongBuffer params); 153 154 public native void glGenSamplers(int count, int[] samplers, int offset); 155 156 public native void glGenSamplers(int count, IntBuffer samplers); 157 158 public native void glDeleteSamplers(int count, int[] samplers, int offset); 159 160 public native void glDeleteSamplers(int count, IntBuffer samplers); 161 162 public native boolean glIsSampler(int sampler); 163 164 public native void glBindSampler(int unit, int sampler); 165 166 public native void glSamplerParameteri(int sampler, int pname, int param); 167 168 public native void glSamplerParameteriv(int sampler, int pname, IntBuffer param); 169 170 public native void glSamplerParameterf(int sampler, int pname, float param); 171 172 public native void glSamplerParameterfv(int sampler, int pname, FloatBuffer param); 173 174 public native void glGetSamplerParameteriv(int sampler, int pname, IntBuffer params); 175 176 public native void glGetSamplerParameterfv(int sampler, int pname, FloatBuffer params); 177 178 public native void glVertexAttribDivisor(int index, int divisor); 179 180 public native void glBindTransformFeedback(int target, int id); 181 182 public native void glDeleteTransformFeedbacks(int n, int[] ids, int offset); 183 184 public native void glDeleteTransformFeedbacks(int n, IntBuffer ids); 185 186 public native void glGenTransformFeedbacks(int n, int[] ids, int offset); 187 188 public native void glGenTransformFeedbacks(int n, IntBuffer ids); 189 190 public native boolean glIsTransformFeedback(int id); 191 192 public native void glPauseTransformFeedback(); 193 194 public native void glResumeTransformFeedback(); 195 196 public native void glProgramParameteri(int program, int pname, int value); 197 198 public native void glInvalidateFramebuffer(int target, int numAttachments, IntBuffer attachments); 199 200 public native void glInvalidateSubFramebuffer(int target, int numAttachments, IntBuffer attachments, int x, int y, int width, int height); 201 }