Class GLUtil
java.lang.Object
dev.pfaff.altargui.render.GLUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkBoundBuffer
(dev.pfaff.glass.opengl.enums.GLGetPName pname, int id) static void
glBindVertexArray
(int id) static void
glBufferData
(dev.pfaff.glass.opengl.enums.GLBufferTarget target, long size, dev.pfaff.glass.opengl.enums.GLBufferUsage usage) static void
glBufferData
(dev.pfaff.glass.opengl.enums.GLBufferTarget target, @NotNull MemorySegment data, dev.pfaff.glass.opengl.enums.GLBufferUsage usage) static void
glBufferStorage
(dev.pfaff.glass.opengl.enums.GLBufferStorageTarget target, int size, int flags) static void
glBufferSubData
(dev.pfaff.glass.opengl.enums.GLBufferTarget target, long offset, @NotNull MemorySegment data) static void
glCopyBufferSubData
(dev.pfaff.glass.opengl.enums.GLCopyBufferSubDataTarget readTarget, dev.pfaff.glass.opengl.enums.GLCopyBufferSubDataTarget writeTarget, long readOffset, long writeOffset, long length) static void
glDeleteBuffers
(int id) static void
glEnableVertexAttribArray
(int id) static int
static int
glGetAttribLocation
(int program, String name) static @NotNull MemorySegment
glMapBuffer
(dev.pfaff.glass.opengl.enums.GLBufferTarget target, dev.pfaff.glass.opengl.enums.GLBufferAccess access, long length) static @NotNull MemorySegment
glMapBufferRange
(dev.pfaff.glass.opengl.enums.GLBufferTarget target, long offset, long length, int access) static void
glTexSubImage3D
(dev.pfaff.glass.opengl.enums.GLTextureTarget target, int level, int xOffset, int yOffset, int zOffset, int width, int height, int depth, dev.pfaff.glass.opengl.enums.GLPixelFormat format, dev.pfaff.glass.opengl.enums.GLPixelType type, MemorySegment pixels) static void
glUnmapBuffer
(dev.pfaff.glass.opengl.enums.GLBufferTarget target) static void
glVertexAttribDivisor
(int location, int divisor) static void
glVertexAttribIPointer
(int id, int size, dev.pfaff.glass.opengl.enums.GLVertexAttribIType type, int stride, long pointer) static void
glVertexAttribLPointer
(int id, int size, dev.pfaff.glass.opengl.enums.GLVertexAttribLType type, int stride, long pointer) static void
glVertexAttribPointer
(int id, int size, dev.pfaff.glass.opengl.enums.GLVertexAttribPointerType type, boolean normalized, int stride, long pointer) static void
-
Constructor Details
-
GLUtil
public GLUtil()
-
-
Method Details
-
glMapBuffer
@NotNull public static @NotNull MemorySegment glMapBuffer(dev.pfaff.glass.opengl.enums.GLBufferTarget target, dev.pfaff.glass.opengl.enums.GLBufferAccess access, long length) -
glMapBufferRange
@NotNull public static @NotNull MemorySegment glMapBufferRange(dev.pfaff.glass.opengl.enums.GLBufferTarget target, long offset, long length, int access) - Parameters:
access
- bitset ofGL_MAP_*
bits.
-
glUnmapBuffer
public static void glUnmapBuffer(dev.pfaff.glass.opengl.enums.GLBufferTarget target) -
glBufferData
public static void glBufferData(dev.pfaff.glass.opengl.enums.GLBufferTarget target, long size, dev.pfaff.glass.opengl.enums.GLBufferUsage usage) -
glBufferData
public static void glBufferData(dev.pfaff.glass.opengl.enums.GLBufferTarget target, @NotNull @NotNull MemorySegment data, dev.pfaff.glass.opengl.enums.GLBufferUsage usage) -
glBufferStorage
public static void glBufferStorage(dev.pfaff.glass.opengl.enums.GLBufferStorageTarget target, int size, int flags) -
glBufferSubData
public static void glBufferSubData(dev.pfaff.glass.opengl.enums.GLBufferTarget target, long offset, @NotNull @NotNull MemorySegment data) -
glCopyBufferSubData
public static void glCopyBufferSubData(dev.pfaff.glass.opengl.enums.GLCopyBufferSubDataTarget readTarget, dev.pfaff.glass.opengl.enums.GLCopyBufferSubDataTarget writeTarget, long readOffset, long writeOffset, long length) -
glVertexAttribDivisor
public static void glVertexAttribDivisor(int location, int divisor) -
glBindVertexArray
public static void glBindVertexArray(int id) -
glxUnbindVertexArray
public static void glxUnbindVertexArray() -
glGenBuffers
public static int glGenBuffers() -
glDeleteBuffers
public static void glDeleteBuffers(int id) -
glGetAttribLocation
-
glEnableVertexAttribArray
public static void glEnableVertexAttribArray(int id) -
glVertexAttribPointer
public static void glVertexAttribPointer(int id, int size, dev.pfaff.glass.opengl.enums.GLVertexAttribPointerType type, boolean normalized, int stride, long pointer) - Since:
- OpenGL 2.0
-
glVertexAttribIPointer
public static void glVertexAttribIPointer(int id, int size, dev.pfaff.glass.opengl.enums.GLVertexAttribIType type, int stride, long pointer) - Since:
- OpenGL 3.0
-
glVertexAttribLPointer
public static void glVertexAttribLPointer(int id, int size, dev.pfaff.glass.opengl.enums.GLVertexAttribLType type, int stride, long pointer) - Since:
- OpenGL 4.1
-
checkBoundBuffer
public static void checkBoundBuffer(dev.pfaff.glass.opengl.enums.GLGetPName pname, int id) -
glTexSubImage3D
public static void glTexSubImage3D(dev.pfaff.glass.opengl.enums.GLTextureTarget target, int level, int xOffset, int yOffset, int zOffset, int width, int height, int depth, dev.pfaff.glass.opengl.enums.GLPixelFormat format, dev.pfaff.glass.opengl.enums.GLPixelType type, MemorySegment pixels) - Since:
- OpenGL 2.0
- See Also:
-