java.lang.Object
io.qt.QtObject
io.qt.gui.QOpenGLFunctions
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QOpenGLExtraFunctions
Cross-platform access to the OpenGL ES 2.0 API
Java wrapper for Qt class QOpenGLFunctions
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQOpenGLFunctions::OpenGLFeature
static final class
QFlags
type for enumQOpenGLFunctions.OpenGLFeature
-
Constructor Summary
ConstructorDescriptionQOpenGLFunctions
(QOpenGLContext context) QOpenGLFunctions
(QOpenGLFunctions other) SeeQOpenGLFunctions::
QOpenGLFunctions(QOpenGLFunctions) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final void
glActiveTexture
(int texture) final void
glAttachShader
(int program, int shader) final void
glBindAttribLocation
(int program, int index, String name) final void
glBindBuffer
(int target, int buffer) final void
glBindFramebuffer
(int target, int framebuffer) final void
glBindRenderbuffer
(int target, int renderbuffer) final void
glBindTexture
(int target, int texture) final void
glBlendColor
(float red, float green, float blue, float alpha) final void
glBlendEquation
(int mode) final void
glBlendEquationSeparate
(int modeRGB, int modeAlpha) final void
glBlendFunc
(int sfactor, int dfactor) final void
glBlendFuncSeparate
(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) final void
glBufferData
(int target, long size, Buffer data, int usage) final void
glBufferSubData
(int target, long offset, long size, Buffer data) final int
glCheckFramebufferStatus
(int target) final void
glClear
(int mask) final void
glClearColor
(float red, float green, float blue, float alpha) final void
glClearDepthf
(float depth) final void
glClearStencil
(int s) final void
glColorMask
(boolean red, boolean green, boolean blue, boolean alpha) final void
glCompileShader
(int shader) final void
glCompressedTexImage2D
(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) final void
glCompressedTexSubImage2D
(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data) final void
glCopyTexImage2D
(int target, int level, int internalformat, int x, int y, int width, int height, int border) final void
glCopyTexSubImage2D
(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) final int
final int
glCreateShader
(int type) final void
glCullFace
(int mode) final void
glDeleteBuffers
(int n, IntBuffer buffers) final void
glDeleteFramebuffers
(int n, IntBuffer framebuffers) final void
glDeleteProgram
(int program) final void
glDeleteRenderbuffers
(int n, IntBuffer renderbuffers) final void
glDeleteShader
(int shader) final void
glDeleteTextures
(int n, IntBuffer textures) final void
glDepthFunc
(int func) final void
glDepthMask
(boolean flag) final void
glDepthRangef
(float zNear, float zFar) final void
glDetachShader
(int program, int shader) final void
glDisable
(int cap) final void
glDisableVertexAttribArray
(int index) final void
glDrawArrays
(int mode, int first, int count) final void
glDrawElements
(int mode, int count, int type, Buffer indices) final void
glEnable
(int cap) final void
glEnableVertexAttribArray
(int index) final void
glFinish()
final void
glFlush()
final void
glFramebufferRenderbuffer
(int target, int attachment, int renderbuffertarget, int renderbuffer) final void
glFramebufferTexture2D
(int target, int attachment, int textarget, int texture, int level) final void
glFrontFace
(int mode) final void
glGenBuffers
(int n, IntBuffer buffers) final void
glGenerateMipmap
(int target) final void
glGenFramebuffers
(int n, IntBuffer framebuffers) final void
glGenRenderbuffers
(int n, IntBuffer renderbuffers) final void
glGenTextures
(int n, IntBuffer textures) final void
glGetActiveAttrib
(int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) final void
glGetActiveUniform
(int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) final void
glGetAttachedShaders
(int program, int maxcount, IntBuffer count, IntBuffer shaders) final int
glGetAttribLocation
(int program, String name) final void
glGetBooleanv
(int pname, Buffer params) final void
glGetBufferParameteriv
(int target, int pname, IntBuffer params) final int
final void
glGetFloatv
(int pname, FloatBuffer params) final void
glGetFramebufferAttachmentParameteriv
(int target, int attachment, int pname, IntBuffer params) final void
glGetIntegerv
(int pname, IntBuffer params) final void
glGetProgramInfoLog
(int program, int bufsize, IntBuffer length, ByteBuffer infolog) final void
glGetProgramiv
(int program, int pname, IntBuffer params) final void
glGetRenderbufferParameteriv
(int target, int pname, IntBuffer params) final void
glGetShaderInfoLog
(int shader, int bufsize, IntBuffer length, ByteBuffer infolog) final void
glGetShaderiv
(int shader, int pname, IntBuffer params) final void
glGetShaderPrecisionFormat
(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision) final void
glGetShaderSource
(int shader, int bufsize, IntBuffer length, ByteBuffer source) final String
glGetString
(int name) final void
glGetTexParameterfv
(int target, int pname, FloatBuffer params) final void
glGetTexParameteriv
(int target, int pname, IntBuffer params) final void
glGetUniformfv
(int program, int location, FloatBuffer params) final void
glGetUniformiv
(int program, int location, IntBuffer params) final int
glGetUniformLocation
(int program, String name) final void
glGetVertexAttribfv
(int index, int pname, FloatBuffer params) final void
glGetVertexAttribiv
(int index, int pname, IntBuffer params) final void
glGetVertexAttribPointerv
(int index, int pname, Buffer[] pointer) final void
glHint
(int target, int mode) final boolean
glIsBuffer
(int buffer) final boolean
glIsEnabled
(int cap) final boolean
glIsFramebuffer
(int framebuffer) final boolean
glIsProgram
(int program) final boolean
glIsRenderbuffer
(int renderbuffer) final boolean
glIsShader
(int shader) final boolean
glIsTexture
(int texture) final void
glLineWidth
(float width) final void
glLinkProgram
(int program) final void
glPixelStorei
(int pname, int param) final void
glPolygonOffset
(float factor, float units) final void
glReadPixels
(int x, int y, int width, int height, int format, int type, Buffer pixels) final void
final void
glRenderbufferStorage
(int target, int internalformat, int width, int height) final void
glSampleCoverage
(float value, boolean invert) final void
glScissor
(int x, int y, int width, int height) final void
glShaderBinary
(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length) final void
glShaderSource
(int shader, String[] string) final void
glStencilFunc
(int func, int ref, int mask) final void
glStencilFuncSeparate
(int face, int func, int ref, int mask) final void
glStencilMask
(int mask) final void
glStencilMaskSeparate
(int face, int mask) final void
glStencilOp
(int fail, int zfail, int zpass) final void
glStencilOpSeparate
(int face, int fail, int zfail, int zpass) final void
glTexImage2D
(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) final void
glTexParameterf
(int target, int pname, float param) final void
glTexParameterfv
(int target, int pname, FloatBuffer params) final void
glTexParameteri
(int target, int pname, int param) final void
glTexParameteriv
(int target, int pname, IntBuffer params) final void
glTexSubImage2D
(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) final void
glUniform1f
(int location, float x) final void
glUniform1fv
(int location, int count, FloatBuffer v) final void
glUniform1i
(int location, int x) final void
glUniform1iv
(int location, int count, IntBuffer v) final void
glUniform2f
(int location, float x, float y) final void
glUniform2fv
(int location, int count, FloatBuffer v) final void
glUniform2i
(int location, int x, int y) final void
glUniform2iv
(int location, int count, IntBuffer v) final void
glUniform3f
(int location, float x, float y, float z) final void
glUniform3fv
(int location, int count, FloatBuffer v) final void
glUniform3i
(int location, int x, int y, int z) final void
glUniform3iv
(int location, int count, IntBuffer v) final void
glUniform4f
(int location, float x, float y, float z, float w) final void
glUniform4fv
(int location, int count, FloatBuffer v) final void
glUniform4i
(int location, int x, int y, int z, int w) final void
glUniform4iv
(int location, int count, IntBuffer v) final void
glUniformMatrix2fv
(int location, int count, boolean transpose, FloatBuffer value) final void
glUniformMatrix3fv
(int location, int count, boolean transpose, FloatBuffer value) final void
glUniformMatrix4fv
(int location, int count, boolean transpose, FloatBuffer value) final void
glUseProgram
(int program) final void
glValidateProgram
(int program) final void
glVertexAttrib1f
(int indx, float x) final void
glVertexAttrib1fv
(int indx, FloatBuffer values) final void
glVertexAttrib2f
(int indx, float x, float y) final void
glVertexAttrib2fv
(int indx, FloatBuffer values) final void
glVertexAttrib3f
(int indx, float x, float y, float z) final void
glVertexAttrib3fv
(int indx, FloatBuffer values) final void
glVertexAttrib4f
(int indx, float x, float y, float z, float w) final void
glVertexAttrib4fv
(int indx, FloatBuffer values) final void
glVertexAttribPointer
(int indx, int size, int type, boolean normalized, int stride, Buffer ptr) final void
glViewport
(int x, int y, int width, int height) final boolean
final void
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QOpenGLFunctions
public QOpenGLFunctions() -
QOpenGLFunctions
- Parameters:
context
-
-
QOpenGLFunctions
See
QOpenGLFunctions::
QOpenGLFunctions(QOpenGLFunctions) - Parameters:
other
-
-
-
Method Details
-
glActiveTexture
- Parameters:
texture
-
-
glAttachShader
- Parameters:
program
-shader
-
-
glBindAttribLocation
- Parameters:
program
-index
-name
-
-
glBindBuffer
- Parameters:
target
-buffer
-
-
glBindFramebuffer
- Parameters:
target
-framebuffer
-
-
glBindRenderbuffer
- Parameters:
target
-renderbuffer
-
-
glBindTexture
- Parameters:
target
-texture
-
-
glBlendColor
- Parameters:
red
-green
-blue
-alpha
-
-
glBlendEquation
- Parameters:
mode
-
-
glBlendEquationSeparate
- Parameters:
modeRGB
-modeAlpha
-
-
glBlendFunc
- Parameters:
sfactor
-dfactor
-
-
glBlendFuncSeparate
@QtUninvokable public final void glBlendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) - Parameters:
srcRGB
-dstRGB
-srcAlpha
-dstAlpha
-
-
glBufferData
- Parameters:
target
-size
-data
-usage
-
-
glBufferSubData
- Parameters:
target
-offset
-size
-data
-
-
glCheckFramebufferStatus
- Parameters:
target
-- Returns:
-
glClear
- Parameters:
mask
-
-
glClearColor
- Parameters:
red
-green
-blue
-alpha
-
-
glClearDepthf
- Parameters:
depth
-
-
glClearStencil
- Parameters:
s
-
-
glColorMask
@QtUninvokable public final void glColorMask(boolean red, boolean green, boolean blue, boolean alpha) - Parameters:
red
-green
-blue
-alpha
-
-
glCompileShader
- Parameters:
shader
-
-
glCompressedTexImage2D
@QtUninvokable public final void glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) - Parameters:
target
-level
-internalformat
-width
-height
-border
-imageSize
-data
-
-
glCompressedTexSubImage2D
@QtUninvokable public final void glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data) - Parameters:
target
-level
-xoffset
-yoffset
-width
-height
-format
-imageSize
-data
-
-
glCopyTexImage2D
@QtUninvokable public final void glCopyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) - Parameters:
target
-level
-internalformat
-x
-y
-width
-height
-border
-
-
glCopyTexSubImage2D
@QtUninvokable public final void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) - Parameters:
target
-level
-xoffset
-yoffset
-x
-y
-width
-height
-
-
glCreateProgram
- Returns:
-
glCreateShader
- Parameters:
type
-- Returns:
-
glCullFace
- Parameters:
mode
-
-
glDeleteBuffers
- Parameters:
n
-buffers
-
-
glDeleteFramebuffers
- Parameters:
n
-framebuffers
-
-
glDeleteProgram
- Parameters:
program
-
-
glDeleteRenderbuffers
- Parameters:
n
-renderbuffers
-
-
glDeleteShader
- Parameters:
shader
-
-
glDeleteTextures
- Parameters:
n
-textures
-
-
glDepthFunc
- Parameters:
func
-
-
glDepthMask
- Parameters:
flag
-
-
glDepthRangef
- Parameters:
zNear
-zFar
-
-
glDetachShader
- Parameters:
program
-shader
-
-
glDisable
- Parameters:
cap
-
-
glDisableVertexAttribArray
- Parameters:
index
-
-
glDrawArrays
- Parameters:
mode
-first
-count
-
-
glDrawElements
- Parameters:
mode
-count
-type
-indices
-
-
glEnable
- Parameters:
cap
-
-
glEnableVertexAttribArray
- Parameters:
index
-
-
glFinish
-
glFlush
-
glFramebufferRenderbuffer
@QtUninvokable public final void glFramebufferRenderbuffer(int target, int attachment, int renderbuffertarget, int renderbuffer) - Parameters:
target
-attachment
-renderbuffertarget
-renderbuffer
-
-
glFramebufferTexture2D
@QtUninvokable public final void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level) - Parameters:
target
-attachment
-textarget
-texture
-level
-
-
glFrontFace
- Parameters:
mode
-
-
glGenBuffers
- Parameters:
n
-buffers
-
-
glGenFramebuffers
- Parameters:
n
-framebuffers
-
-
glGenRenderbuffers
- Parameters:
n
-renderbuffers
-
-
glGenTextures
- Parameters:
n
-textures
-
-
glGenerateMipmap
- Parameters:
target
-
-
glGetActiveAttrib
@QtUninvokable public final void glGetActiveAttrib(int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) - Parameters:
program
-index
-bufsize
-length
-size
-type
-name
-
-
glGetActiveUniform
@QtUninvokable public final void glGetActiveUniform(int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, ByteBuffer name) - Parameters:
program
-index
-bufsize
-length
-size
-type
-name
-
-
glGetAttachedShaders
@QtUninvokable public final void glGetAttachedShaders(int program, int maxcount, IntBuffer count, IntBuffer shaders) - Parameters:
program
-maxcount
-count
-shaders
-
-
glGetAttribLocation
- Parameters:
program
-name
-- Returns:
-
glGetBooleanv
- Parameters:
pname
-params
-
-
glGetBufferParameteriv
- Parameters:
target
-pname
-params
-
-
glGetError
- Returns:
-
glGetFloatv
- Parameters:
pname
-params
-
-
glGetFramebufferAttachmentParameteriv
@QtUninvokable public final void glGetFramebufferAttachmentParameteriv(int target, int attachment, int pname, IntBuffer params) - Parameters:
target
-attachment
-pname
-params
-
-
glGetIntegerv
- Parameters:
pname
-params
-
-
glGetProgramInfoLog
@QtUninvokable public final void glGetProgramInfoLog(int program, int bufsize, IntBuffer length, ByteBuffer infolog) - Parameters:
program
-bufsize
-length
-infolog
-
-
glGetProgramiv
- Parameters:
program
-pname
-params
-
-
glGetRenderbufferParameteriv
@QtUninvokable public final void glGetRenderbufferParameteriv(int target, int pname, IntBuffer params) - Parameters:
target
-pname
-params
-
-
glGetShaderInfoLog
@QtUninvokable public final void glGetShaderInfoLog(int shader, int bufsize, IntBuffer length, ByteBuffer infolog) - Parameters:
shader
-bufsize
-length
-infolog
-
-
glGetShaderPrecisionFormat
@QtUninvokable public final void glGetShaderPrecisionFormat(int shadertype, int precisiontype, IntBuffer range, IntBuffer precision) - Parameters:
shadertype
-precisiontype
-range
-precision
-
-
glGetShaderSource
@QtUninvokable public final void glGetShaderSource(int shader, int bufsize, IntBuffer length, ByteBuffer source) - Parameters:
shader
-bufsize
-length
-source
-
-
glGetShaderiv
- Parameters:
shader
-pname
-params
-
-
glGetString
- Parameters:
name
-- Returns:
-
glGetTexParameterfv
- Parameters:
target
-pname
-params
-
-
glGetTexParameteriv
- Parameters:
target
-pname
-params
-
-
glGetUniformLocation
- Parameters:
program
-name
-- Returns:
-
glGetUniformfv
- Parameters:
program
-location
-params
-
-
glGetUniformiv
- Parameters:
program
-location
-params
-
-
glGetVertexAttribPointerv
- Parameters:
index
-pname
-pointer
-
-
glGetVertexAttribfv
- Parameters:
index
-pname
-params
-
-
glGetVertexAttribiv
- Parameters:
index
-pname
-params
-
-
glHint
- Parameters:
target
-mode
-
-
glIsBuffer
- Parameters:
buffer
-- Returns:
-
glIsEnabled
- Parameters:
cap
-- Returns:
-
glIsFramebuffer
- Parameters:
framebuffer
-- Returns:
-
glIsProgram
- Parameters:
program
-- Returns:
-
glIsRenderbuffer
- Parameters:
renderbuffer
-- Returns:
-
glIsShader
- Parameters:
shader
-- Returns:
-
glIsTexture
- Parameters:
texture
-- Returns:
-
glLineWidth
- Parameters:
width
-
-
glLinkProgram
- Parameters:
program
-
-
glPixelStorei
- Parameters:
pname
-param
-
-
glPolygonOffset
- Parameters:
factor
-units
-
-
glReadPixels
@QtUninvokable public final void glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels) - Parameters:
x
-y
-width
-height
-format
-type
-pixels
-
-
glReleaseShaderCompiler
-
glRenderbufferStorage
@QtUninvokable public final void glRenderbufferStorage(int target, int internalformat, int width, int height) - Parameters:
target
-internalformat
-width
-height
-
-
glSampleCoverage
- Parameters:
value
-invert
-
-
glScissor
- Parameters:
x
-y
-width
-height
-
-
glShaderBinary
@QtUninvokable public final void glShaderBinary(int n, IntBuffer shaders, int binaryformat, Buffer binary, int length) - Parameters:
n
-shaders
-binaryformat
-binary
-length
-
-
glShaderSource
- Parameters:
shader
-string
-
-
glStencilFunc
- Parameters:
func
-ref
-mask
-
-
glStencilFuncSeparate
- Parameters:
face
-func
-ref
-mask
-
-
glStencilMask
- Parameters:
mask
-
-
glStencilMaskSeparate
- Parameters:
face
-mask
-
-
glStencilOp
- Parameters:
fail
-zfail
-zpass
-
-
glStencilOpSeparate
- Parameters:
face
-fail
-zfail
-zpass
-
-
glTexImage2D
@QtUninvokable public final void glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) See
QOpenGLFunctions::
glTexImage2D(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid*) - Parameters:
target
-level
-internalformat
-width
-height
-border
-format
-type
-pixels
-
-
glTexParameterf
- Parameters:
target
-pname
-param
-
-
glTexParameterfv
- Parameters:
target
-pname
-params
-
-
glTexParameteri
- Parameters:
target
-pname
-param
-
-
glTexParameteriv
- Parameters:
target
-pname
-params
-
-
glTexSubImage2D
@QtUninvokable public final void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) - Parameters:
target
-level
-xoffset
-yoffset
-width
-height
-format
-type
-pixels
-
-
glUniform1f
- Parameters:
location
-x
-
-
glUniform1fv
- Parameters:
location
-count
-v
-
-
glUniform1i
- Parameters:
location
-x
-
-
glUniform1iv
- Parameters:
location
-count
-v
-
-
glUniform2f
- Parameters:
location
-x
-y
-
-
glUniform2fv
- Parameters:
location
-count
-v
-
-
glUniform2i
- Parameters:
location
-x
-y
-
-
glUniform2iv
- Parameters:
location
-count
-v
-
-
glUniform3f
- Parameters:
location
-x
-y
-z
-
-
glUniform3fv
- Parameters:
location
-count
-v
-
-
glUniform3i
- Parameters:
location
-x
-y
-z
-
-
glUniform3iv
- Parameters:
location
-count
-v
-
-
glUniform4f
- Parameters:
location
-x
-y
-z
-w
-
-
glUniform4fv
- Parameters:
location
-count
-v
-
-
glUniform4i
- Parameters:
location
-x
-y
-z
-w
-
-
glUniform4iv
- Parameters:
location
-count
-v
-
-
glUniformMatrix2fv
@QtUninvokable public final void glUniformMatrix2fv(int location, int count, boolean transpose, FloatBuffer value) - Parameters:
location
-count
-transpose
-value
-
-
glUniformMatrix3fv
@QtUninvokable public final void glUniformMatrix3fv(int location, int count, boolean transpose, FloatBuffer value) - Parameters:
location
-count
-transpose
-value
-
-
glUniformMatrix4fv
@QtUninvokable public final void glUniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value) - Parameters:
location
-count
-transpose
-value
-
-
glUseProgram
- Parameters:
program
-
-
glValidateProgram
- Parameters:
program
-
-
glVertexAttrib1f
- Parameters:
indx
-x
-
-
glVertexAttrib1fv
- Parameters:
indx
-values
-
-
glVertexAttrib2f
- Parameters:
indx
-x
-y
-
-
glVertexAttrib2fv
- Parameters:
indx
-values
-
-
glVertexAttrib3f
- Parameters:
indx
-x
-y
-z
-
-
glVertexAttrib3fv
- Parameters:
indx
-values
-
-
glVertexAttrib4f
- Parameters:
indx
-x
-y
-z
-w
-
-
glVertexAttrib4fv
- Parameters:
indx
-values
-
-
glVertexAttribPointer
@QtUninvokable public final void glVertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, Buffer ptr) - Parameters:
indx
-size
-type
-normalized
-stride
-ptr
-
-
glViewport
- Parameters:
x
-y
-width
-height
-
-
hasOpenGLFeature
- Parameters:
feature
-- Returns:
-
initializeOpenGLFunctions
-
openGLFeatures
- Returns:
-
clone
Creates and returns a copy of this object.
See
QOpenGLFunctions::
QOpenGLFunctions(QOpenGLFunctions)
-