Class PlatformOpenGL


  • public class PlatformOpenGL
    extends java.lang.Object
    Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Detail

      • PlatformOpenGL

        public PlatformOpenGL()
    • Method Detail

      • _wglEnable

        public static final void _wglEnable​(int glEnum)
      • _wglDisable

        public static final void _wglDisable​(int glEnum)
      • _wglClearColor

        public static final void _wglClearColor​(float r,
                                                float g,
                                                float b,
                                                float a)
      • _wglClearDepth

        public static final void _wglClearDepth​(float f)
      • _wglClear

        public static final void _wglClear​(int bits)
      • _wglDepthFunc

        public static final void _wglDepthFunc​(int glEnum)
      • _wglDepthMask

        public static final void _wglDepthMask​(boolean mask)
      • _wglCullFace

        public static final void _wglCullFace​(int glEnum)
      • _wglViewport

        public static final void _wglViewport​(int x,
                                              int y,
                                              int w,
                                              int h)
      • _wglBlendFunc

        public static final void _wglBlendFunc​(int src,
                                               int dst)
      • _wglBlendFuncSeparate

        public static final void _wglBlendFuncSeparate​(int srcColor,
                                                       int dstColor,
                                                       int srcAlpha,
                                                       int dstAlpha)
      • _wglBlendEquation

        public static final void _wglBlendEquation​(int glEnum)
      • _wglColorMask

        public static final void _wglColorMask​(boolean r,
                                               boolean g,
                                               boolean b,
                                               boolean a)
      • _wglDrawBuffers

        public static final void _wglDrawBuffers​(int buffer)
      • _wglDrawBuffers

        public static final void _wglDrawBuffers​(int[] buffers)
      • _wglReadBuffer

        public static final void _wglReadBuffer​(int buffer)
      • _wglPolygonOffset

        public static final void _wglPolygonOffset​(float f1,
                                                   float f2)
      • _wglLineWidth

        public static final void _wglLineWidth​(float width)
      • _wglGenBuffers

        public static final IBufferGL _wglGenBuffers()
      • _wglGenTextures

        public static final ITextureGL _wglGenTextures()
      • _wglGenVertexArrays

        public static final IBufferArrayGL _wglGenVertexArrays()
      • _wglCreateProgram

        public static final IProgramGL _wglCreateProgram()
      • _wglCreateShader

        public static final IShaderGL _wglCreateShader​(int type)
      • _wglCreateFramebuffer

        public static final IFramebufferGL _wglCreateFramebuffer()
      • _wglCreateRenderbuffer

        public static final IRenderbufferGL _wglCreateRenderbuffer()
      • _wglGenQueries

        public static final IQueryGL _wglGenQueries()
      • _wglDeleteBuffers

        public static final void _wglDeleteBuffers​(IBufferGL obj)
      • _wglDeleteTextures

        public static final void _wglDeleteTextures​(ITextureGL obj)
      • _wglDeleteVertexArrays

        public static final void _wglDeleteVertexArrays​(IBufferArrayGL obj)
      • _wglDeleteProgram

        public static final void _wglDeleteProgram​(IProgramGL obj)
      • _wglDeleteShader

        public static final void _wglDeleteShader​(IShaderGL obj)
      • _wglDeleteFramebuffer

        public static final void _wglDeleteFramebuffer​(IFramebufferGL obj)
      • _wglDeleteRenderbuffer

        public static final void _wglDeleteRenderbuffer​(IRenderbufferGL obj)
      • _wglDeleteQueries

        public static final void _wglDeleteQueries​(IQueryGL obj)
      • _wglBindBuffer

        public static final void _wglBindBuffer​(int target,
                                                IBufferGL obj)
      • _wglBufferData

        public static final void _wglBufferData​(int target,
                                                ByteBuffer data,
                                                int usage)
      • _wglBufferData

        public static final void _wglBufferData​(int target,
                                                IntBuffer data,
                                                int usage)
      • _wglBufferData

        public static final void _wglBufferData​(int target,
                                                FloatBuffer data,
                                                int usage)
      • _wglBufferData

        public static final void _wglBufferData​(int target,
                                                int size,
                                                int usage)
      • _wglBufferSubData

        public static final void _wglBufferSubData​(int target,
                                                   int offset,
                                                   ByteBuffer data)
      • _wglBufferSubData

        public static final void _wglBufferSubData​(int target,
                                                   int offset,
                                                   IntBuffer data)
      • _wglBufferSubData

        public static final void _wglBufferSubData​(int target,
                                                   int offset,
                                                   FloatBuffer data)
      • _wglBindVertexArray

        public static final void _wglBindVertexArray​(IBufferArrayGL obj)
      • _wglEnableVertexAttribArray

        public static final void _wglEnableVertexAttribArray​(int index)
      • _wglDisableVertexAttribArray

        public static final void _wglDisableVertexAttribArray​(int index)
      • _wglVertexAttribPointer

        public static final void _wglVertexAttribPointer​(int index,
                                                         int size,
                                                         int type,
                                                         boolean normalized,
                                                         int stride,
                                                         int offset)
      • _wglVertexAttribDivisor

        public static final void _wglVertexAttribDivisor​(int index,
                                                         int divisor)
      • _wglActiveTexture

        public static final void _wglActiveTexture​(int texture)
      • _wglBindTexture

        public static final void _wglBindTexture​(int target,
                                                 ITextureGL obj)
      • _wglTexParameterf

        public static final void _wglTexParameterf​(int target,
                                                   int param,
                                                   float value)
      • _wglTexParameteri

        public static final void _wglTexParameteri​(int target,
                                                   int param,
                                                   int value)
      • _wglTexImage2D

        public static final void _wglTexImage2D​(int target,
                                                int level,
                                                int internalFormat,
                                                int width,
                                                int height,
                                                int border,
                                                int format,
                                                int type,
                                                ByteBuffer data)
      • _wglTexImage2D

        public static final void _wglTexImage2D​(int target,
                                                int level,
                                                int internalFormat,
                                                int width,
                                                int height,
                                                int border,
                                                int format,
                                                int type,
                                                IntBuffer data)
      • _wglTexImage2D

        public static final void _wglTexImage2D​(int target,
                                                int level,
                                                int internalFormat,
                                                int width,
                                                int height,
                                                int border,
                                                int format,
                                                int type,
                                                FloatBuffer data)
      • _wglTexSubImage2D

        public static final void _wglTexSubImage2D​(int target,
                                                   int level,
                                                   int xoffset,
                                                   int yoffset,
                                                   int width,
                                                   int height,
                                                   int format,
                                                   int type,
                                                   ByteBuffer data)
      • _wglTexSubImage2D

        public static final void _wglTexSubImage2D​(int target,
                                                   int level,
                                                   int xoffset,
                                                   int yoffset,
                                                   int width,
                                                   int height,
                                                   int format,
                                                   int type,
                                                   IntBuffer data)
      • _wglTexSubImage2D

        public static final void _wglTexSubImage2D​(int target,
                                                   int level,
                                                   int xoffset,
                                                   int yoffset,
                                                   int width,
                                                   int height,
                                                   int format,
                                                   int type,
                                                   FloatBuffer data)
      • _wglCopyTexSubImage2D

        public static final void _wglCopyTexSubImage2D​(int target,
                                                       int level,
                                                       int xoffset,
                                                       int yoffset,
                                                       int x,
                                                       int y,
                                                       int width,
                                                       int height)
      • _wglPixelStorei

        public static final void _wglPixelStorei​(int pname,
                                                 int value)
      • _wglGenerateMipmap

        public static final void _wglGenerateMipmap​(int target)
      • _wglShaderSource

        public static final void _wglShaderSource​(IShaderGL obj,
                                                  java.lang.String source)
      • _wglCompileShader

        public static final void _wglCompileShader​(IShaderGL obj)
      • _wglGetShaderi

        public static final int _wglGetShaderi​(IShaderGL obj,
                                               int param)
      • _wglGetShaderInfoLog

        public static final java.lang.String _wglGetShaderInfoLog​(IShaderGL obj)
      • _wglUseProgram

        public static final void _wglUseProgram​(IProgramGL obj)
      • _wglAttachShader

        public static final void _wglAttachShader​(IProgramGL obj,
                                                  IShaderGL shader)
      • _wglDetachShader

        public static final void _wglDetachShader​(IProgramGL obj,
                                                  IShaderGL shader)
      • _wglLinkProgram

        public static final void _wglLinkProgram​(IProgramGL obj)
      • _wglGetProgrami

        public static final int _wglGetProgrami​(IProgramGL obj,
                                                int param)
      • _wglGetProgramInfoLog

        public static final java.lang.String _wglGetProgramInfoLog​(IProgramGL obj)
      • _wglBindAttribLocation

        public static final void _wglBindAttribLocation​(IProgramGL obj,
                                                        int index,
                                                        java.lang.String name)
      • _wglGetAttribLocation

        public static final int _wglGetAttribLocation​(IProgramGL obj,
                                                      java.lang.String name)
      • _wglDrawArrays

        public static final void _wglDrawArrays​(int mode,
                                                int first,
                                                int count)
      • _wglDrawArraysInstanced

        public static final void _wglDrawArraysInstanced​(int mode,
                                                         int first,
                                                         int count,
                                                         int instanced)
      • _wglDrawElements

        public static final void _wglDrawElements​(int mode,
                                                  int count,
                                                  int type,
                                                  int offset)
      • _wglDrawElementsInstanced

        public static final void _wglDrawElementsInstanced​(int mode,
                                                           int count,
                                                           int type,
                                                           int offset,
                                                           int instanced)
      • _wglGetUniformLocation

        public static final IUniformGL _wglGetUniformLocation​(IProgramGL obj,
                                                              java.lang.String name)
      • _wglUniform1f

        public static final void _wglUniform1f​(IUniformGL obj,
                                               float x)
      • _wglUniform2f

        public static final void _wglUniform2f​(IUniformGL obj,
                                               float x,
                                               float y)
      • _wglUniform3f

        public static final void _wglUniform3f​(IUniformGL obj,
                                               float x,
                                               float y,
                                               float z)
      • _wglUniform4f

        public static final void _wglUniform4f​(IUniformGL obj,
                                               float x,
                                               float y,
                                               float z,
                                               float w)
      • _wglUniform1i

        public static final void _wglUniform1i​(IUniformGL obj,
                                               int x)
      • _wglUniform2i

        public static final void _wglUniform2i​(IUniformGL obj,
                                               int x,
                                               int y)
      • _wglUniform3i

        public static final void _wglUniform3i​(IUniformGL obj,
                                               int x,
                                               int y,
                                               int z)
      • _wglUniform4i

        public static final void _wglUniform4i​(IUniformGL obj,
                                               int x,
                                               int y,
                                               int z,
                                               int w)
      • _wglUniformMatrix2fv

        public static final void _wglUniformMatrix2fv​(IUniformGL obj,
                                                      boolean transpose,
                                                      FloatBuffer mat)
      • _wglUniformMatrix3fv

        public static final void _wglUniformMatrix3fv​(IUniformGL obj,
                                                      boolean transpose,
                                                      FloatBuffer mat)
      • _wglUniformMatrix4fv

        public static final void _wglUniformMatrix4fv​(IUniformGL obj,
                                                      boolean transpose,
                                                      FloatBuffer mat)
      • _wglBindFramebuffer

        public static final void _wglBindFramebuffer​(int target,
                                                     IFramebufferGL framebuffer)
      • _wglCheckFramebufferStatus

        public static final int _wglCheckFramebufferStatus​(int target)
      • _wglFramebufferTexture2D

        public static final void _wglFramebufferTexture2D​(int target,
                                                          int attachment,
                                                          int texTarget,
                                                          ITextureGL texture,
                                                          int level)
      • _wglBlitFramebuffer

        public static final void _wglBlitFramebuffer​(int srcX0,
                                                     int srcY0,
                                                     int srcX1,
                                                     int srcY1,
                                                     int dstX0,
                                                     int dstY0,
                                                     int dstX1,
                                                     int dstY1,
                                                     int bits,
                                                     int filter)
      • _wglBindRenderbuffer

        public static final void _wglBindRenderbuffer​(int target,
                                                      IRenderbufferGL renderbuffer)
      • _wglRenderbufferStorage

        public static final void _wglRenderbufferStorage​(int target,
                                                         int internalformat,
                                                         int width,
                                                         int height)
      • _wglFramebufferRenderbuffer

        public static final void _wglFramebufferRenderbuffer​(int target,
                                                             int attachment,
                                                             int renderbufferTarget,
                                                             IRenderbufferGL renderbuffer)
      • _wglGetString

        public static final java.lang.String _wglGetString​(int param)
      • _wglGetInteger

        public static final int _wglGetInteger​(int param)
      • _wglGetError

        public static final int _wglGetError()