Calls a single method on Gdx.gl20.
(gl! :gl-create-program)
Options
:gl-active-texture^int texture
:gl-attach-shader^int program, ^int shader
:gl-bind-attrib-location^int program, ^int index, ^String name
:gl-bind-buffer^int target, ^int buffer
:gl-bind-framebuffer^int target, ^int framebuffer
:gl-bind-renderbuffer^int target, ^int renderbuffer
:gl-bind-texture^int target, ^int texture
:gl-blend-color^float red, ^float green, ^float blue, ^float alpha
:gl-blend-equation^int mode
:gl-blend-equation-separate^int mode-r-g-b, ^int mode-alpha
:gl-blend-func^int sfactor, ^int dfactor
:gl-blend-func-separate^int src-r-g-b, ^int dst-r-g-b, ^int src-alpha, ^int dst-alpha
:gl-buffer-data^int target, ^int size, ^Buffer data, ^int usage
:gl-buffer-sub-data^int target, ^int offset, ^int size, ^Buffer data
:gl-check-framebuffer-status^int target
:gl-clear^int mask
:gl-clear-color^float red, ^float green, ^float blue, ^float alpha
:gl-clear-depthf^float depth
:gl-clear-stencil^int s
:gl-color-mask^boolean red, ^boolean green, ^boolean blue, ^boolean alpha
:gl-compile-shader^int shader
:gl-compressed-tex-image2-d^int target, ^int level, ^int internalformat, ^int width, ^int height, ^int border, ^int image-size, ^Buffer data
:gl-compressed-tex-sub-image2-d^int target, ^int level, ^int xoffset, ^int yoffset, ^int width, ^int height, ^int format, ^int image-size, ^Buffer data
:gl-copy-tex-image2-d^int target, ^int level, ^int internalformat, ^int x, ^int y, ^int width, ^int height, ^int border
:gl-copy-tex-sub-image2-d^int target, ^int level, ^int xoffset, ^int yoffset, ^int x, ^int y, ^int width, ^int height
:gl-create-program
:gl-create-shader^int type
:gl-cull-face^int mode
:gl-delete-buffer^int buffer
:gl-delete-buffers^int n, ^IntBuffer buffers
:gl-delete-framebuffer^int framebuffer
:gl-delete-framebuffers^int n, ^IntBuffer framebuffers
:gl-delete-program^int program
:gl-delete-renderbuffer^int renderbuffer
:gl-delete-renderbuffers^int n, ^IntBuffer renderbuffers
:gl-delete-shader^int shader
:gl-delete-texture^int texture
:gl-delete-textures^int n, ^IntBuffer textures
:gl-depth-func^int func
:gl-depth-mask^boolean flag
:gl-depth-rangef^float z-near, ^float z-far
:gl-detach-shader^int program, ^int shader
:gl-disable^int cap
:gl-disable-vertex-attrib-array^int index
:gl-draw-arrays^int mode, ^int first, ^int count
:gl-draw-elements^int mode, ^int count, ^int type, ^Buffer indices
:gl-draw-elements^int mode, ^int count, ^int type, ^int indices
:gl-enable^int cap
:gl-enable-vertex-attrib-array^int index
:gl-finish
:gl-flush
:gl-framebuffer-renderbuffer^int target, ^int attachment, ^int renderbuffertarget, ^int renderbuffer
:gl-framebuffer-texture2-d^int target, ^int attachment, ^int textarget, ^int texture, ^int level
:gl-front-face^int mode
:gl-gen-buffer
:gl-gen-buffers^int n, ^IntBuffer buffers
:gl-gen-framebuffer
:gl-gen-framebuffers^int n, ^IntBuffer framebuffers
:gl-gen-renderbuffer
:gl-gen-renderbuffers^int n, ^IntBuffer renderbuffers
:gl-gen-texture
:gl-gen-textures^int n, ^IntBuffer textures
:gl-generate-mipmap^int target
:gl-get-active-attrib^int program, ^int index, ^IntBuffer size, ^Buffer type
:gl-get-active-uniform^int program, ^int index, ^IntBuffer size, ^Buffer type
:gl-get-attached-shaders^int program, ^int maxcount, ^Buffer count, ^IntBuffer shaders
:gl-get-attrib-location^int program, ^String name
:gl-get-booleanv^int pname, ^Buffer params
:gl-get-buffer-parameteriv^int target, ^int pname, ^IntBuffer params
:gl-get-error
:gl-get-floatv^int pname, ^FloatBuffer params
:gl-get-framebuffer-attachment-parameteriv^int target, ^int attachment, ^int pname, ^IntBuffer params
:gl-get-integerv^int pname, ^IntBuffer params
:gl-get-program-info-log^int program
:gl-get-programiv^int program, ^int pname, ^IntBuffer params
:gl-get-renderbuffer-parameteriv^int target, ^int pname, ^IntBuffer params
:gl-get-shader-info-log^int shader
:gl-get-shader-precision-format^int shadertype, ^int precisiontype, ^IntBuffer range, ^IntBuffer precision
:gl-get-shaderiv^int shader, ^int pname, ^IntBuffer params
:gl-get-string^int name
:gl-get-tex-parameterfv^int target, ^int pname, ^FloatBuffer params
:gl-get-tex-parameteriv^int target, ^int pname, ^IntBuffer params
:gl-get-uniform-location^int program, ^String name
:gl-get-uniformfv^int program, ^int location, ^FloatBuffer params
:gl-get-uniformiv^int program, ^int location, ^IntBuffer params
:gl-get-vertex-attrib-pointerv^int index, ^int pname, ^Buffer pointer
:gl-get-vertex-attribfv^int index, ^int pname, ^FloatBuffer params
:gl-get-vertex-attribiv^int index, ^int pname, ^IntBuffer params
:gl-hint^int target, ^int mode
:gl-is-buffer^int buffer
:gl-is-enabled^int cap
:gl-is-framebuffer^int framebuffer
:gl-is-program^int program
:gl-is-renderbuffer^int renderbuffer
:gl-is-shader^int shader
:gl-is-texture^int texture
:gl-line-width^float width
:gl-link-program^int program
:gl-pixel-storei^int pname, ^int param
:gl-polygon-offset^float factor, ^float units
:gl-read-pixels^int x, ^int y, ^int width, ^int height, ^int format, ^int type, ^Buffer pixels
:gl-release-shader-compiler
:gl-renderbuffer-storage^int target, ^int internalformat, ^int width, ^int height
:gl-sample-coverage^float value, ^boolean invert
:gl-scissor^int x, ^int y, ^int width, ^int height
:gl-shader-binary^int n, ^IntBuffer shaders, ^int binaryformat, ^Buffer binary, ^int length
:gl-shader-source^int shader, ^String string
:gl-stencil-func^int func, ^int ref, ^int mask
:gl-stencil-func-separate^int face, ^int func, ^int ref, ^int mask
:gl-stencil-mask^int mask
:gl-stencil-mask-separate^int face, ^int mask
:gl-stencil-op^int fail, ^int zfail, ^int zpass
:gl-stencil-op-separate^int face, ^int fail, ^int zfail, ^int zpass
:gl-tex-image2-d^int target, ^int level, ^int internalformat, ^int width, ^int height, ^int border, ^int format, ^int type, ^Buffer pixels
:gl-tex-parameterf^int target, ^int pname, ^float param
:gl-tex-parameterfv^int target, ^int pname, ^FloatBuffer params
:gl-tex-parameteri^int target, ^int pname, ^int param
:gl-tex-parameteriv^int target, ^int pname, ^IntBuffer params
:gl-tex-sub-image2-d^int target, ^int level, ^int xoffset, ^int yoffset, ^int width, ^int height, ^int format, ^int type, ^Buffer pixels
:gl-uniform-matrix2fv^int location, ^int count, ^boolean transpose, ^FloatBuffer value
:gl-uniform-matrix2fv^int location, ^int count, ^boolean transpose, ^float[] value, ^int offset
:gl-uniform-matrix3fv^int location, ^int count, ^boolean transpose, ^FloatBuffer value
:gl-uniform-matrix3fv^int location, ^int count, ^boolean transpose, ^float[] value, ^int offset
:gl-uniform-matrix4fv^int location, ^int count, ^boolean transpose, ^FloatBuffer value
:gl-uniform-matrix4fv^int location, ^int count, ^boolean transpose, ^float[] value, ^int offset
:gl-uniform1f^int location, ^float x
:gl-uniform1fv^int location, ^int count, ^FloatBuffer v
:gl-uniform1fv^int location, ^int count, ^float[] v, ^int offset
:gl-uniform1i^int location, ^int x
:gl-uniform1iv^int location, ^int count, ^IntBuffer v
:gl-uniform1iv^int location, ^int count, ^int[] v, ^int offset
:gl-uniform2f^int location, ^float x, ^float y
:gl-uniform2fv^int location, ^int count, ^FloatBuffer v
:gl-uniform2fv^int location, ^int count, ^float[] v, ^int offset
:gl-uniform2i^int location, ^int x, ^int y
:gl-uniform2iv^int location, ^int count, ^IntBuffer v
:gl-uniform2iv^int location, ^int count, ^int[] v, ^int offset
:gl-uniform3f^int location, ^float x, ^float y, ^float z
:gl-uniform3fv^int location, ^int count, ^FloatBuffer v
:gl-uniform3fv^int location, ^int count, ^float[] v, ^int offset
:gl-uniform3i^int location, ^int x, ^int y, ^int z
:gl-uniform3iv^int location, ^int count, ^IntBuffer v
:gl-uniform3iv^int location, ^int count, ^int[] v, ^int offset
:gl-uniform4f^int location, ^float x, ^float y, ^float z, ^float w
:gl-uniform4fv^int location, ^int count, ^FloatBuffer v
:gl-uniform4fv^int location, ^int count, ^float[] v, ^int offset
:gl-uniform4i^int location, ^int x, ^int y, ^int z, ^int w
:gl-uniform4iv^int location, ^int count, ^IntBuffer v
:gl-uniform4iv^int location, ^int count, ^int[] v, ^int offset
:gl-use-program^int program
:gl-validate-program^int program
:gl-vertex-attrib-pointer^int indx, ^int size, ^int type, ^boolean normalized, ^int stride, ^Buffer ptr
In OpenGl core profiles (3.1+), passing a pointer to client memory is not valid.
In 3.0 and later, use the other version of this function instead, pass a zero-based
offset which references the buffer currently bound to GL_ARRAY_BUFFER.
:gl-vertex-attrib-pointer^int indx, ^int size, ^int type, ^boolean normalized, ^int stride, ^int ptr
:gl-vertex-attrib1f^int indx, ^float x
:gl-vertex-attrib1fv^int indx, ^FloatBuffer values
:gl-vertex-attrib2f^int indx, ^float x, ^float y
:gl-vertex-attrib2fv^int indx, ^FloatBuffer values
:gl-vertex-attrib3f^int indx, ^float x, ^float y, ^float z
:gl-vertex-attrib3fv^int indx, ^FloatBuffer values
:gl-vertex-attrib4f^int indx, ^float x, ^float y, ^float z, ^float w
:gl-vertex-attrib4fv^int indx, ^FloatBuffer values
:gl-viewport^int x, ^int y, ^int width, ^int height
Source
(defmacro gl! [k & options] `(u/call! ^GL20 (Gdx/gl20) ~k ~@options))