Struct gl33::GlFns [−][src]
A struct that holds all the functions to use OpenGL 3.3 Core.
Each supported GL command has a method named after the command, with the
gl
prefix removed. The expectation is that you’ll name the struct’s
variable gl
, and then calling a command such as glFlush()
would be
written as gl.Flush()
.
Optionally, the GL_KHR_debug
extension functions might be available. To
see if an optional function is available, use the function’s base name with
_is_loaded
at the end. The _is_loaded
functions are hidden in the
generated documentation, but they are there. Calling an optional function
that is not loaded will panic. Note: To get high quality debug output, you
generally have to ask for a debug context during context creation.
Implementations
impl GlFns
[src]
pub unsafe fn load_from(
f: &dyn Fn(*const u8) -> *const c_void
) -> Result<Self, &'static str>
[src]
f: &dyn Fn(*const u8) -> *const c_void
) -> Result<Self, &'static str>
Loads all GL functions from the loader given.
Failure
This fails if any of the OpenGL 3.3 Core functions don’t load. The error value will be the name of the first function that doesn’t load.
Safety
- The “Get Proc Address” function you provide will always be given a pointer to the start of a null-terminated string containing the name of a GL function to load.
- The “Get Proc Address” function given must always return accurate function pointer values, or null on failure.
- Some “Get Proc Address” implementations will return context-specific function pointers. Others will return general function pointers even if the current context doesn’t support the command. It’s up to you to only load and use this struct with an appropriate GL context as the current context.
impl GlFns
[src]
pub unsafe fn ActiveTexture(&self, texture: TextureUnit)
[src]
glActiveTexture
texture
group: TextureUnit
pub fn AttachShader(&self, program: c_uint, shader: c_uint)
[src]
Attaches the given shader object to the given program object. You can attach more than one shader of the same type to a program.
program
is the program you’re attaching the shader object to.shader
is the shader you’re attaching.
pub unsafe fn BeginConditionalRender(
&self,
id: c_uint,
mode: ConditionalRenderMode
)
[src]
&self,
id: c_uint,
mode: ConditionalRenderMode
)
glBeginConditionalRender
mode
group: ConditionalRenderMode
pub unsafe fn BeginQuery(&self, target: QueryTarget, id: c_uint)
[src]
glBeginQuery
target
group: QueryTargetid
class: query
pub unsafe fn BeginTransformFeedback(&self, primitiveMode: PrimitiveType)
[src]
glBeginTransformFeedback
primitiveMode
group: PrimitiveType
pub unsafe fn BindAttribLocation(
&self,
program: c_uint,
index: c_uint,
name: *const u8
)
[src]
&self,
program: c_uint,
index: c_uint,
name: *const u8
)
glBindAttribLocation
program
class: program
pub unsafe fn BindBuffer(&self, target: BufferTargetARB, buffer: c_uint)
[src]
glBindBuffer
target
group: BufferTargetARBbuffer
class: buffer
pub unsafe fn BindBufferBase(
&self,
target: BufferTargetARB,
index: c_uint,
buffer: c_uint
)
[src]
&self,
target: BufferTargetARB,
index: c_uint,
buffer: c_uint
)
glBindBufferBase
target
group: BufferTargetARBbuffer
class: buffer
pub unsafe fn BindBufferRange(
&self,
target: BufferTargetARB,
index: c_uint,
buffer: c_uint,
offset: isize,
size: isize
)
[src]
&self,
target: BufferTargetARB,
index: c_uint,
buffer: c_uint,
offset: isize,
size: isize
)
glBindBufferRange
target
group: BufferTargetARBbuffer
class: bufferoffset
group: BufferOffsetsize
group: BufferSize
pub unsafe fn BindFragDataLocation(
&self,
program: c_uint,
color: c_uint,
name: *const u8
)
[src]
&self,
program: c_uint,
color: c_uint,
name: *const u8
)
glBindFragDataLocation
program
class: programname
len: COMPSIZE(name)
pub unsafe fn BindFragDataLocationIndexed(
&self,
program: c_uint,
colorNumber: c_uint,
index: c_uint,
name: *const u8
)
[src]
&self,
program: c_uint,
colorNumber: c_uint,
index: c_uint,
name: *const u8
)
glBindFragDataLocationIndexed
program
class: program
pub unsafe fn BindFramebuffer(
&self,
target: FramebufferTarget,
framebuffer: c_uint
)
[src]
&self,
target: FramebufferTarget,
framebuffer: c_uint
)
glBindFramebuffer
target
group: FramebufferTargetframebuffer
class: framebuffer
pub unsafe fn BindRenderbuffer(
&self,
target: RenderbufferTarget,
renderbuffer: c_uint
)
[src]
&self,
target: RenderbufferTarget,
renderbuffer: c_uint
)
glBindRenderbuffer
target
group: RenderbufferTargetrenderbuffer
class: renderbuffer
pub unsafe fn BindSampler(&self, unit: c_uint, sampler: c_uint)
[src]
glBindSampler
sampler
class: sampler
pub unsafe fn BindTexture(&self, target: TextureTarget, texture: c_uint)
[src]
glBindTexture
target
group: TextureTargettexture
group: Texturetexture
class: texture
pub fn BindVertexArray(&self, array: c_uint)
[src]
Binds a given vertex array object as the active vertex array object. Passing 0 will make it so that no vertex array object is bound.
array
names the vertex array object to bind.
pub unsafe fn BlendColor(
&self,
red: c_float,
green: c_float,
blue: c_float,
alpha: c_float
)
[src]
&self,
red: c_float,
green: c_float,
blue: c_float,
alpha: c_float
)
glBlendColor
red
group: ColorFgreen
group: ColorFblue
group: ColorFalpha
group: ColorF
pub unsafe fn BlendEquation(&self, mode: BlendEquationModeEXT)
[src]
glBlendEquation
mode
group: BlendEquationModeEXT
pub unsafe fn BlendEquationSeparate(
&self,
modeRGB: BlendEquationModeEXT,
modeAlpha: BlendEquationModeEXT
)
[src]
&self,
modeRGB: BlendEquationModeEXT,
modeAlpha: BlendEquationModeEXT
)
glBlendEquationSeparate
modeRGB
group: BlendEquationModeEXTmodeAlpha
group: BlendEquationModeEXT
pub unsafe fn BlendFunc(&self, sfactor: BlendingFactor, dfactor: BlendingFactor)
[src]
glBlendFunc
sfactor
group: BlendingFactordfactor
group: BlendingFactor
pub unsafe fn BlendFuncSeparate(
&self,
sfactorRGB: BlendingFactor,
dfactorRGB: BlendingFactor,
sfactorAlpha: BlendingFactor,
dfactorAlpha: BlendingFactor
)
[src]
&self,
sfactorRGB: BlendingFactor,
dfactorRGB: BlendingFactor,
sfactorAlpha: BlendingFactor,
dfactorAlpha: BlendingFactor
)
glBlendFuncSeparate
sfactorRGB
group: BlendingFactordfactorRGB
group: BlendingFactorsfactorAlpha
group: BlendingFactordfactorAlpha
group: BlendingFactor
pub unsafe fn BlitFramebuffer(
&self,
srcX0: c_int,
srcY0: c_int,
srcX1: c_int,
srcY1: c_int,
dstX0: c_int,
dstY0: c_int,
dstX1: c_int,
dstY1: c_int,
mask: GLbitfield,
filter: BlitFramebufferFilter
)
[src]
&self,
srcX0: c_int,
srcY0: c_int,
srcX1: c_int,
srcY1: c_int,
dstX0: c_int,
dstY0: c_int,
dstX1: c_int,
dstY1: c_int,
mask: GLbitfield,
filter: BlitFramebufferFilter
)
glBlitFramebuffer
mask
group: ClearBufferMaskfilter
group: BlitFramebufferFilter
pub unsafe fn BufferData(
&self,
target: BufferTargetARB,
size: isize,
data: *const c_void,
usage: BufferUsageARB
)
[src]
&self,
target: BufferTargetARB,
size: isize,
data: *const c_void,
usage: BufferUsageARB
)
glBufferData
target
group: BufferTargetARBsize
group: BufferSizedata
len: sizeusage
group: BufferUsageARB
pub unsafe fn BufferSubData(
&self,
target: BufferTargetARB,
offset: isize,
size: isize,
data: *const c_void
)
[src]
&self,
target: BufferTargetARB,
offset: isize,
size: isize,
data: *const c_void
)
glBufferSubData
target
group: BufferTargetARBoffset
group: BufferOffsetsize
group: BufferSizedata
len: size
pub unsafe fn CheckFramebufferStatus(
&self,
target: FramebufferTarget
) -> FramebufferStatus
[src]
&self,
target: FramebufferTarget
) -> FramebufferStatus
glCheckFramebufferStatus
target
group: FramebufferTarget
pub unsafe fn ClampColor(
&self,
target: ClampColorTargetARB,
clamp: ClampColorModeARB
)
[src]
&self,
target: ClampColorTargetARB,
clamp: ClampColorModeARB
)
glClampColor
target
group: ClampColorTargetARBclamp
group: ClampColorModeARB
pub unsafe fn Clear(&self, mask: GLbitfield)
[src]
glClear
mask
group: ClearBufferMask
pub unsafe fn ClearBufferfi(
&self,
buffer: Buffer,
drawbuffer: c_int,
depth: c_float,
stencil: c_int
)
[src]
&self,
buffer: Buffer,
drawbuffer: c_int,
depth: c_float,
stencil: c_int
)
glClearBufferfi
buffer
group: Bufferdrawbuffer
group: DrawBufferName
pub unsafe fn ClearBufferfv(
&self,
buffer: Buffer,
drawbuffer: c_int,
value: *const c_float
)
[src]
&self,
buffer: Buffer,
drawbuffer: c_int,
value: *const c_float
)
Clears a specified buffer of the currently bound draw framebuffer object to a specified value.
- If
buffer
isGL_COLOR
, a particular draw bufferGL_DRAW_BUFFERi
is specified by passingi
asdrawbuffer
(eg: to affectGL_DRAW_BUFFER0
you’d pass 0). In this case,value
points to a four-element vector specifying the R, G, B, and A color to clear that draw buffer to. If the value ofGL_DRAW_BUFFERi
isGL_NONE
, the command has no effect. Otherwise, the value ofGL_DRAW_BUFFERi
identifies one or more color buffers, each of which is cleared to the same value. Clamping and type conversion for fixed-point color buffers are performed in the same fashion as forglClearColor
. - If
buffer
isGL_DEPTH
,drawbuffer
must be zero, andvalue
points to a single value to clear the depth buffer to. Clamping and type conversion for fixed-point depth buffers are performed in the same fashion as forglClearDepth
.
Errors
GL_INVALID_ENUM
is generated ifbuffer
is notGL_COLOR
orGL_DEPTH
.
pub unsafe fn ClearBufferiv(
&self,
buffer: Buffer,
drawbuffer: c_int,
value: *const c_int
)
[src]
&self,
buffer: Buffer,
drawbuffer: c_int,
value: *const c_int
)
glClearBufferiv
buffer
group: Bufferdrawbuffer
group: DrawBufferNamevalue
len: COMPSIZE(buffer)
pub unsafe fn ClearBufferuiv(
&self,
buffer: Buffer,
drawbuffer: c_int,
value: *const c_uint
)
[src]
&self,
buffer: Buffer,
drawbuffer: c_int,
value: *const c_uint
)
glClearBufferuiv
buffer
group: Bufferdrawbuffer
group: DrawBufferNamevalue
len: COMPSIZE(buffer)
pub unsafe fn ClearColor(
&self,
red: c_float,
green: c_float,
blue: c_float,
alpha: c_float
)
[src]
&self,
red: c_float,
green: c_float,
blue: c_float,
alpha: c_float
)
glClearColor
red
group: ColorFgreen
group: ColorFblue
group: ColorFalpha
group: ColorF
pub unsafe fn ClearDepth(&self, depth: c_double)
[src]
glClearDepth
pub unsafe fn ClearStencil(&self, s: c_int)
[src]
glClearStencil
s
group: StencilValue
pub unsafe fn ClientWaitSync(
&self,
sync: GLsync,
flags: GLbitfield,
timeout: u64
) -> SyncStatus
[src]
&self,
sync: GLsync,
flags: GLbitfield,
timeout: u64
) -> SyncStatus
glClientWaitSync
sync
group: syncsync
class: syncflags
group: SyncObjectMask
pub unsafe fn ColorMask(
&self,
red: c_uchar,
green: c_uchar,
blue: c_uchar,
alpha: c_uchar
)
[src]
&self,
red: c_uchar,
green: c_uchar,
blue: c_uchar,
alpha: c_uchar
)
glColorMask
red
group: Booleangreen
group: Booleanblue
group: Booleanalpha
group: Boolean
pub unsafe fn ColorMaski(
&self,
index: c_uint,
r: c_uchar,
g: c_uchar,
b: c_uchar,
a: c_uchar
)
[src]
&self,
index: c_uint,
r: c_uchar,
g: c_uchar,
b: c_uchar,
a: c_uchar
)
glColorMaski
r
group: Booleang
group: Booleanb
group: Booleana
group: Boolean
pub fn CompileShader(&self, shader: c_uint)
[src]
Compiles the source code assigned to the shader. The compilation status is
stored as part of the shader object’s state, check it with glGetShader
and glGetShaderInfoLog
.
shader
names the shader to compile.
pub unsafe fn CompressedTexImage1D(
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
width: c_int,
border: c_int,
imageSize: c_int,
data: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
width: c_int,
border: c_int,
imageSize: c_int,
data: *const c_void
)
glCompressedTexImage1D
target
group: TextureTargetlevel
group: CheckedInt32internalformat
group: InternalFormatborder
group: CheckedInt32data
group: CompressedTextureARBdata
len: imageSize
pub unsafe fn CompressedTexImage2D(
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int,
border: c_int,
imageSize: c_int,
data: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int,
border: c_int,
imageSize: c_int,
data: *const c_void
)
glCompressedTexImage2D
target
group: TextureTargetlevel
group: CheckedInt32internalformat
group: InternalFormatborder
group: CheckedInt32data
group: CompressedTextureARBdata
len: imageSize
pub unsafe fn CompressedTexImage3D(
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int,
depth: c_int,
border: c_int,
imageSize: c_int,
data: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int,
depth: c_int,
border: c_int,
imageSize: c_int,
data: *const c_void
)
glCompressedTexImage3D
target
group: TextureTargetlevel
group: CheckedInt32internalformat
group: InternalFormatborder
group: CheckedInt32data
group: CompressedTextureARBdata
len: imageSize
pub unsafe fn CompressedTexSubImage1D(
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
width: c_int,
format: PixelFormat,
imageSize: c_int,
data: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
width: c_int,
format: PixelFormat,
imageSize: c_int,
data: *const c_void
)
glCompressedTexSubImage1D
target
group: TextureTargetlevel
group: CheckedInt32xoffset
group: CheckedInt32format
group: PixelFormatdata
group: CompressedTextureARBdata
len: imageSize
pub unsafe fn CompressedTexSubImage2D(
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
width: c_int,
height: c_int,
format: PixelFormat,
imageSize: c_int,
data: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
width: c_int,
height: c_int,
format: PixelFormat,
imageSize: c_int,
data: *const c_void
)
glCompressedTexSubImage2D
target
group: TextureTargetlevel
group: CheckedInt32xoffset
group: CheckedInt32yoffset
group: CheckedInt32format
group: PixelFormatdata
group: CompressedTextureARBdata
len: imageSize
pub unsafe fn CompressedTexSubImage3D(
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
zoffset: c_int,
width: c_int,
height: c_int,
depth: c_int,
format: PixelFormat,
imageSize: c_int,
data: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
zoffset: c_int,
width: c_int,
height: c_int,
depth: c_int,
format: PixelFormat,
imageSize: c_int,
data: *const c_void
)
glCompressedTexSubImage3D
target
group: TextureTargetlevel
group: CheckedInt32xoffset
group: CheckedInt32yoffset
group: CheckedInt32zoffset
group: CheckedInt32format
group: PixelFormatdata
group: CompressedTextureARBdata
len: imageSize
pub unsafe fn CopyBufferSubData(
&self,
readTarget: CopyBufferSubDataTarget,
writeTarget: CopyBufferSubDataTarget,
readOffset: isize,
writeOffset: isize,
size: isize
)
[src]
&self,
readTarget: CopyBufferSubDataTarget,
writeTarget: CopyBufferSubDataTarget,
readOffset: isize,
writeOffset: isize,
size: isize
)
glCopyBufferSubData
readTarget
group: CopyBufferSubDataTargetwriteTarget
group: CopyBufferSubDataTargetreadOffset
group: BufferOffsetwriteOffset
group: BufferOffsetsize
group: BufferSize
pub unsafe fn CopyTexImage1D(
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
x: c_int,
y: c_int,
width: c_int,
border: c_int
)
[src]
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
x: c_int,
y: c_int,
width: c_int,
border: c_int
)
glCopyTexImage1D
target
group: TextureTargetlevel
group: CheckedInt32internalformat
group: InternalFormatx
group: WinCoordy
group: WinCoordborder
group: CheckedInt32
pub unsafe fn CopyTexImage2D(
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
x: c_int,
y: c_int,
width: c_int,
height: c_int,
border: c_int
)
[src]
&self,
target: TextureTarget,
level: c_int,
internalformat: InternalFormat,
x: c_int,
y: c_int,
width: c_int,
height: c_int,
border: c_int
)
glCopyTexImage2D
target
group: TextureTargetlevel
group: CheckedInt32internalformat
group: InternalFormatx
group: WinCoordy
group: WinCoordborder
group: CheckedInt32
pub unsafe fn CopyTexSubImage1D(
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
x: c_int,
y: c_int,
width: c_int
)
[src]
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
x: c_int,
y: c_int,
width: c_int
)
glCopyTexSubImage1D
target
group: TextureTargetlevel
group: CheckedInt32xoffset
group: CheckedInt32x
group: WinCoordy
group: WinCoord
pub unsafe fn CopyTexSubImage2D(
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
x: c_int,
y: c_int,
width: c_int,
height: c_int
)
[src]
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
x: c_int,
y: c_int,
width: c_int,
height: c_int
)
glCopyTexSubImage2D
target
group: TextureTargetlevel
group: CheckedInt32xoffset
group: CheckedInt32yoffset
group: CheckedInt32x
group: WinCoordy
group: WinCoord
pub unsafe fn CopyTexSubImage3D(
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
zoffset: c_int,
x: c_int,
y: c_int,
width: c_int,
height: c_int
)
[src]
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
zoffset: c_int,
x: c_int,
y: c_int,
width: c_int,
height: c_int
)
glCopyTexSubImage3D
target
group: TextureTargetlevel
group: CheckedInt32xoffset
group: CheckedInt32yoffset
group: CheckedInt32zoffset
group: CheckedInt32x
group: WinCoordy
group: WinCoord
pub fn CreateProgram(&self) -> c_uint
[src]
Creates an empty program object, returning its name (a non-zero ID value).
Failure
- If this fails, 0 is returned.
pub fn CreateShader(&self, type_: ShaderType) -> c_uint
[src]
Creates a new empty shader object of the given type, returning its name (a non-zero ID value).
type
group: ShaderType
Failure
- If an error occurs the function returns 0.
pub unsafe fn CullFace(&self, mode: CullFaceMode)
[src]
glCullFace
mode
group: CullFaceMode
pub unsafe fn DeleteBuffers(&self, n: c_int, buffers: *const c_uint)
[src]
glDeleteBuffers
buffers
class: bufferbuffers
len: n
pub unsafe fn DeleteFramebuffers(&self, n: c_int, framebuffers: *const c_uint)
[src]
glDeleteFramebuffers
framebuffers
class: framebufferframebuffers
len: n
pub fn DeleteProgram(&self, program: c_uint)
[src]
Marks a program object for deletion. If the shader program is not in use it will be immediately deleted, otherwise it will be deleted once it’s no longer in use. When a program object is deleted any shaders attached to it are automatically unattached from it.
program
names the program to mark for deletion.
pub unsafe fn DeleteQueries(&self, n: c_int, ids: *const c_uint)
[src]
glDeleteQueries
ids
class: queryids
len: n
pub unsafe fn DeleteRenderbuffers(&self, n: c_int, renderbuffers: *const c_uint)
[src]
glDeleteRenderbuffers
renderbuffers
class: renderbufferrenderbuffers
len: n
pub unsafe fn DeleteSamplers(&self, count: c_int, samplers: *const c_uint)
[src]
glDeleteSamplers
samplers
class: samplersamplers
len: count
pub fn DeleteShader(&self, shader: c_uint)
[src]
Marks a shader to be deleted. If it’s not attached to a program it will be deleted immediately, otherwise it won’t be deleted until it’s unattached.
shader
names the shader to mark for deletion.
pub unsafe fn DeleteSync(&self, sync: GLsync)
[src]
glDeleteSync
sync
group: syncsync
class: sync
pub unsafe fn DeleteTextures(&self, n: c_int, textures: *const c_uint)
[src]
glDeleteTextures
textures
group: Texturetextures
class: texturetextures
len: n
pub unsafe fn DeleteVertexArrays(&self, n: c_int, arrays: *const c_uint)
[src]
Deletes a list of vertex array objects. If a vertex array object that is bound is deleted then the binding reverts to 0 and the default vertex array becomes current. Passing any vertex array object IDs not currently in use, or passing 0, is silently ignored.
n
the size of the listarrays
the vertex array objects to delete.
pub unsafe fn DepthFunc(&self, func: DepthFunction)
[src]
glDepthFunc
func
group: DepthFunction
pub unsafe fn DepthMask(&self, flag: c_uchar)
[src]
glDepthMask
flag
group: Boolean
pub unsafe fn DepthRange(&self, n: c_double, f: c_double)
[src]
glDepthRange
pub unsafe fn DetachShader(&self, program: c_uint, shader: c_uint)
[src]
glDetachShader
program
class: programshader
class: shader
pub unsafe fn Disable(&self, cap: EnableCap)
[src]
glDisable
cap
group: EnableCap
pub unsafe fn DisableVertexAttribArray(&self, index: c_uint)
[src]
glDisableVertexAttribArray
pub unsafe fn Disablei(&self, target: EnableCap, index: c_uint)
[src]
glDisablei
target
group: EnableCap
pub unsafe fn DrawArrays(&self, mode: PrimitiveType, first: c_int, count: c_int)
[src]
Draws count
sequential indices using each enabled array to construct a
sequence of primitives, starting from first
. Depending on the mode
specified, the number of indices required per primitive can vary.
If vertex attributes are modified by glDrawArrays
the values are
unspecified after the call returns. Any other attributes remain well
defined.
mode
is the type of primitive to render.first
is the starting index to use within the enabled arrays.count
is the number of indices to be rendered.
pub unsafe fn DrawArraysInstanced(
&self,
mode: PrimitiveType,
first: c_int,
count: c_int,
instancecount: c_int
)
[src]
&self,
mode: PrimitiveType,
first: c_int,
count: c_int,
instancecount: c_int
)
glDrawArraysInstanced
mode
group: PrimitiveType
pub unsafe fn DrawBuffer(&self, buf: DrawBufferMode)
[src]
glDrawBuffer
buf
group: DrawBufferMode
pub unsafe fn DrawBuffers(&self, n: c_int, bufs: *const DrawBufferMode)
[src]
glDrawBuffers
bufs
group: DrawBufferModebufs
len: n
pub unsafe fn DrawElements(
&self,
mode: PrimitiveType,
count: c_int,
type_: DrawElementsType,
indices: *const c_void
)
[src]
&self,
mode: PrimitiveType,
count: c_int,
type_: DrawElementsType,
indices: *const c_void
)
glDrawElements
mode
group: PrimitiveTypetype
group: DrawElementsTypeindices
len: COMPSIZE(count,type)
pub unsafe fn DrawElementsBaseVertex(
&self,
mode: PrimitiveType,
count: c_int,
type_: DrawElementsType,
indices: *const c_void,
basevertex: c_int
)
[src]
&self,
mode: PrimitiveType,
count: c_int,
type_: DrawElementsType,
indices: *const c_void,
basevertex: c_int
)
glDrawElementsBaseVertex
mode
group: PrimitiveTypetype
group: DrawElementsTypeindices
len: COMPSIZE(count,type)
pub unsafe fn DrawElementsInstanced(
&self,
mode: PrimitiveType,
count: c_int,
type_: DrawElementsType,
indices: *const c_void,
instancecount: c_int
)
[src]
&self,
mode: PrimitiveType,
count: c_int,
type_: DrawElementsType,
indices: *const c_void,
instancecount: c_int
)
glDrawElementsInstanced
mode
group: PrimitiveTypetype
group: DrawElementsTypeindices
len: COMPSIZE(count,type)
pub unsafe fn DrawElementsInstancedBaseVertex(
&self,
mode: PrimitiveType,
count: c_int,
type_: DrawElementsType,
indices: *const c_void,
instancecount: c_int,
basevertex: c_int
)
[src]
&self,
mode: PrimitiveType,
count: c_int,
type_: DrawElementsType,
indices: *const c_void,
instancecount: c_int,
basevertex: c_int
)
glDrawElementsInstancedBaseVertex
mode
group: PrimitiveTypetype
group: DrawElementsTypeindices
len: COMPSIZE(count,type)
pub unsafe fn DrawRangeElements(
&self,
mode: PrimitiveType,
start: c_uint,
end: c_uint,
count: c_int,
type_: DrawElementsType,
indices: *const c_void
)
[src]
&self,
mode: PrimitiveType,
start: c_uint,
end: c_uint,
count: c_int,
type_: DrawElementsType,
indices: *const c_void
)
glDrawRangeElements
mode
group: PrimitiveTypetype
group: DrawElementsTypeindices
len: COMPSIZE(count,type)
pub unsafe fn DrawRangeElementsBaseVertex(
&self,
mode: PrimitiveType,
start: c_uint,
end: c_uint,
count: c_int,
type_: DrawElementsType,
indices: *const c_void,
basevertex: c_int
)
[src]
&self,
mode: PrimitiveType,
start: c_uint,
end: c_uint,
count: c_int,
type_: DrawElementsType,
indices: *const c_void,
basevertex: c_int
)
glDrawRangeElementsBaseVertex
mode
group: PrimitiveTypetype
group: DrawElementsTypeindices
len: COMPSIZE(count,type)
pub unsafe fn Enable(&self, cap: EnableCap)
[src]
glEnable
cap
group: EnableCap
pub unsafe fn EnableVertexAttribArray(&self, index: c_uint)
[src]
glEnableVertexAttribArray
pub unsafe fn Enablei(&self, target: EnableCap, index: c_uint)
[src]
glEnablei
target
group: EnableCap
pub unsafe fn EndConditionalRender(&self)
[src]
glEndConditionalRender
pub unsafe fn EndQuery(&self, target: QueryTarget)
[src]
glEndQuery
target
group: QueryTarget
pub unsafe fn EndTransformFeedback(&self)
[src]
glEndTransformFeedback
pub unsafe fn FenceSync(
&self,
condition: SyncCondition,
flags: GLbitfield
) -> GLsync
[src]
&self,
condition: SyncCondition,
flags: GLbitfield
) -> GLsync
glFenceSync
condition
group: SyncConditionflags
group: SyncBehaviorFlags
pub unsafe fn Finish(&self)
[src]
glFinish
pub unsafe fn Flush(&self)
[src]
glFlush
pub unsafe fn FlushMappedBufferRange(
&self,
target: BufferTargetARB,
offset: isize,
length: isize
)
[src]
&self,
target: BufferTargetARB,
offset: isize,
length: isize
)
glFlushMappedBufferRange
target
group: BufferTargetARBoffset
group: BufferOffsetlength
group: BufferSize
pub unsafe fn FramebufferRenderbuffer(
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
renderbuffertarget: RenderbufferTarget,
renderbuffer: c_uint
)
[src]
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
renderbuffertarget: RenderbufferTarget,
renderbuffer: c_uint
)
glFramebufferRenderbuffer
target
group: FramebufferTargetattachment
group: FramebufferAttachmentrenderbuffertarget
group: RenderbufferTargetrenderbuffer
class: renderbuffer
pub unsafe fn FramebufferTexture(
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
texture: c_uint,
level: c_int
)
[src]
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
texture: c_uint,
level: c_int
)
glFramebufferTexture
target
group: FramebufferTargetattachment
group: FramebufferAttachmenttexture
class: texture
pub unsafe fn FramebufferTexture1D(
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
textarget: TextureTarget,
texture: c_uint,
level: c_int
)
[src]
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
textarget: TextureTarget,
texture: c_uint,
level: c_int
)
glFramebufferTexture1D
target
group: FramebufferTargetattachment
group: FramebufferAttachmenttextarget
group: TextureTargettexture
class: texture
pub unsafe fn FramebufferTexture2D(
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
textarget: TextureTarget,
texture: c_uint,
level: c_int
)
[src]
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
textarget: TextureTarget,
texture: c_uint,
level: c_int
)
glFramebufferTexture2D
target
group: FramebufferTargetattachment
group: FramebufferAttachmenttextarget
group: TextureTargettexture
class: texture
pub unsafe fn FramebufferTexture3D(
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
textarget: TextureTarget,
texture: c_uint,
level: c_int,
zoffset: c_int
)
[src]
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
textarget: TextureTarget,
texture: c_uint,
level: c_int,
zoffset: c_int
)
glFramebufferTexture3D
target
group: FramebufferTargetattachment
group: FramebufferAttachmenttextarget
group: TextureTargettexture
class: texture
pub unsafe fn FramebufferTextureLayer(
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
texture: c_uint,
level: c_int,
layer: c_int
)
[src]
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
texture: c_uint,
level: c_int,
layer: c_int
)
glFramebufferTextureLayer
target
group: FramebufferTargetattachment
group: FramebufferAttachmenttexture
group: Texturetexture
class: texturelevel
group: CheckedInt32layer
group: CheckedInt32
pub unsafe fn FrontFace(&self, mode: FrontFaceDirection)
[src]
glFrontFace
mode
group: FrontFaceDirection
pub unsafe fn GenBuffers(&self, n: c_int, buffers: *mut c_uint)
[src]
glGenBuffers
buffers
class: bufferbuffers
len: n
pub unsafe fn GenFramebuffers(&self, n: c_int, framebuffers: *mut c_uint)
[src]
glGenFramebuffers
framebuffers
class: framebufferframebuffers
len: n
pub unsafe fn GenQueries(&self, n: c_int, ids: *mut c_uint)
[src]
glGenQueries
ids
class: queryids
len: n
pub unsafe fn GenRenderbuffers(&self, n: c_int, renderbuffers: *mut c_uint)
[src]
glGenRenderbuffers
renderbuffers
class: renderbufferrenderbuffers
len: n
pub unsafe fn GenSamplers(&self, count: c_int, samplers: *mut c_uint)
[src]
glGenSamplers
samplers
class: samplersamplers
len: count
pub unsafe fn GenTextures(&self, n: c_int, textures: *mut c_uint)
[src]
glGenTextures
textures
group: Texturetextures
class: texturetextures
len: n
pub unsafe fn GenVertexArrays(&self, n: c_int, arrays: *mut c_uint)
[src]
glGenVertexArrays
arrays
class: vertex arrayarrays
len: n
pub unsafe fn GenerateMipmap(&self, target: TextureTarget)
[src]
glGenerateMipmap
target
group: TextureTarget
pub unsafe fn GetActiveAttrib(
&self,
program: c_uint,
index: c_uint,
bufSize: c_int,
length: *mut c_int,
size: *mut c_int,
type_: *mut AttributeType,
name: *mut u8
)
[src]
&self,
program: c_uint,
index: c_uint,
bufSize: c_int,
length: *mut c_int,
size: *mut c_int,
type_: *mut AttributeType,
name: *mut u8
)
glGetActiveAttrib
program
class: programtype
group: AttributeTypename
len: bufSize
pub unsafe fn GetActiveUniform(
&self,
program: c_uint,
index: c_uint,
bufSize: c_int,
length: *mut c_int,
size: *mut c_int,
type_: *mut UniformType,
name: *mut u8
)
[src]
&self,
program: c_uint,
index: c_uint,
bufSize: c_int,
length: *mut c_int,
size: *mut c_int,
type_: *mut UniformType,
name: *mut u8
)
glGetActiveUniform
program
class: programtype
group: UniformTypename
len: bufSize
pub unsafe fn GetActiveUniformBlockName(
&self,
program: c_uint,
uniformBlockIndex: c_uint,
bufSize: c_int,
length: *mut c_int,
uniformBlockName: *mut u8
)
[src]
&self,
program: c_uint,
uniformBlockIndex: c_uint,
bufSize: c_int,
length: *mut c_int,
uniformBlockName: *mut u8
)
glGetActiveUniformBlockName
program
class: programuniformBlockName
len: bufSize
pub unsafe fn GetActiveUniformBlockiv(
&self,
program: c_uint,
uniformBlockIndex: c_uint,
pname: UniformBlockPName,
params: *mut c_int
)
[src]
&self,
program: c_uint,
uniformBlockIndex: c_uint,
pname: UniformBlockPName,
params: *mut c_int
)
glGetActiveUniformBlockiv
program
class: programpname
group: UniformBlockPNameparams
len: COMPSIZE(program,uniformBlockIndex,pname)
pub unsafe fn GetActiveUniformName(
&self,
program: c_uint,
uniformIndex: c_uint,
bufSize: c_int,
length: *mut c_int,
uniformName: *mut u8
)
[src]
&self,
program: c_uint,
uniformIndex: c_uint,
bufSize: c_int,
length: *mut c_int,
uniformName: *mut u8
)
glGetActiveUniformName
program
class: programuniformName
len: bufSize
pub unsafe fn GetActiveUniformsiv(
&self,
program: c_uint,
uniformCount: c_int,
uniformIndices: *const c_uint,
pname: UniformPName,
params: *mut c_int
)
[src]
&self,
program: c_uint,
uniformCount: c_int,
uniformIndices: *const c_uint,
pname: UniformPName,
params: *mut c_int
)
glGetActiveUniformsiv
program
class: programuniformIndices
len: uniformCountpname
group: UniformPNameparams
len: COMPSIZE(uniformCount,pname)
pub unsafe fn GetAttachedShaders(
&self,
program: c_uint,
maxCount: c_int,
count: *mut c_int,
shaders: *mut c_uint
)
[src]
&self,
program: c_uint,
maxCount: c_int,
count: *mut c_int,
shaders: *mut c_uint
)
glGetAttachedShaders
program
class: programshaders
class: shadershaders
len: maxCount
pub unsafe fn GetAttribLocation(
&self,
program: c_uint,
name: *const u8
) -> c_int
[src]
&self,
program: c_uint,
name: *const u8
) -> c_int
glGetAttribLocation
program
class: program
pub unsafe fn GetBooleani_v(
&self,
target: BufferTargetARB,
index: c_uint,
data: *mut c_uchar
)
[src]
&self,
target: BufferTargetARB,
index: c_uint,
data: *mut c_uchar
)
glGetBooleani_v
target
group: BufferTargetARBdata
group: Booleandata
len: COMPSIZE(target)
pub unsafe fn GetBooleanv(&self, pname: GetPName, data: *mut c_uchar)
[src]
glGetBooleanv
pname
group: GetPNamedata
group: Booleandata
len: COMPSIZE(pname)
pub unsafe fn GetBufferParameteri64v(
&self,
target: BufferTargetARB,
pname: BufferPNameARB,
params: *mut i64
)
[src]
&self,
target: BufferTargetARB,
pname: BufferPNameARB,
params: *mut i64
)
glGetBufferParameteri64v
target
group: BufferTargetARBpname
group: BufferPNameARBparams
len: COMPSIZE(pname)
pub unsafe fn GetBufferParameteriv(
&self,
target: BufferTargetARB,
pname: BufferPNameARB,
params: *mut c_int
)
[src]
&self,
target: BufferTargetARB,
pname: BufferPNameARB,
params: *mut c_int
)
glGetBufferParameteriv
target
group: BufferTargetARBpname
group: BufferPNameARBparams
len: COMPSIZE(pname)
pub unsafe fn GetBufferPointerv(
&self,
target: BufferTargetARB,
pname: BufferPointerNameARB,
params: *mut *mut c_void
)
[src]
&self,
target: BufferTargetARB,
pname: BufferPointerNameARB,
params: *mut *mut c_void
)
glGetBufferPointerv
target
group: BufferTargetARBpname
group: BufferPointerNameARB
pub unsafe fn GetBufferSubData(
&self,
target: BufferTargetARB,
offset: isize,
size: isize,
data: *mut c_void
)
[src]
&self,
target: BufferTargetARB,
offset: isize,
size: isize,
data: *mut c_void
)
glGetBufferSubData
target
group: BufferTargetARBoffset
group: BufferOffsetsize
group: BufferSizedata
len: size
pub unsafe fn GetCompressedTexImage(
&self,
target: TextureTarget,
level: c_int,
img: *mut c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
img: *mut c_void
)
glGetCompressedTexImage
target
group: TextureTargetlevel
group: CheckedInt32img
group: CompressedTextureARBimg
len: COMPSIZE(target,level)
pub unsafe fn GetDoublev(&self, pname: GetPName, data: *mut c_double)
[src]
glGetDoublev
pname
group: GetPNamedata
len: COMPSIZE(pname)
pub unsafe fn GetError(&self) -> ErrorCode
[src]
glGetError
pub unsafe fn GetFloatv(&self, pname: GetPName, data: *mut c_float)
[src]
glGetFloatv
pname
group: GetPNamedata
len: COMPSIZE(pname)
pub unsafe fn GetFragDataIndex(&self, program: c_uint, name: *const u8) -> c_int
[src]
glGetFragDataIndex
program
class: program
pub unsafe fn GetFragDataLocation(
&self,
program: c_uint,
name: *const u8
) -> c_int
[src]
&self,
program: c_uint,
name: *const u8
) -> c_int
glGetFragDataLocation
program
class: programname
len: COMPSIZE(name)
pub unsafe fn GetFramebufferAttachmentParameteriv(
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
pname: FramebufferAttachmentParameterName,
params: *mut c_int
)
[src]
&self,
target: FramebufferTarget,
attachment: FramebufferAttachment,
pname: FramebufferAttachmentParameterName,
params: *mut c_int
)
glGetFramebufferAttachmentParameteriv
target
group: FramebufferTargetattachment
group: FramebufferAttachmentpname
group: FramebufferAttachmentParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn GetInteger64i_v(
&self,
target: GetPName,
index: c_uint,
data: *mut i64
)
[src]
&self,
target: GetPName,
index: c_uint,
data: *mut i64
)
glGetInteger64i_v
target
group: GetPNamedata
len: COMPSIZE(target)
pub unsafe fn GetInteger64v(&self, pname: GetPName, data: *mut i64)
[src]
glGetInteger64v
pname
group: GetPNamedata
len: COMPSIZE(pname)
pub unsafe fn GetIntegeri_v(
&self,
target: GetPName,
index: c_uint,
data: *mut c_int
)
[src]
&self,
target: GetPName,
index: c_uint,
data: *mut c_int
)
glGetIntegeri_v
target
group: GetPNamedata
len: COMPSIZE(target)
pub unsafe fn GetIntegerv(&self, pname: GetPName, data: *mut c_int)
[src]
glGetIntegerv
pname
group: GetPNamedata
len: COMPSIZE(pname)
pub unsafe fn GetMultisamplefv(
&self,
pname: GetMultisamplePNameNV,
index: c_uint,
val: *mut c_float
)
[src]
&self,
pname: GetMultisamplePNameNV,
index: c_uint,
val: *mut c_float
)
glGetMultisamplefv
pname
group: GetMultisamplePNameNVval
len: COMPSIZE(pname)
pub unsafe fn GetProgramInfoLog(
&self,
program: c_uint,
bufSize: c_int,
length: *mut c_int,
infoLog: *mut u8
)
[src]
&self,
program: c_uint,
bufSize: c_int,
length: *mut c_int,
infoLog: *mut u8
)
glGetProgramInfoLog
program
class: programinfoLog
len: bufSize
pub unsafe fn GetProgramiv(
&self,
program: c_uint,
pname: ProgramPropertyARB,
params: *mut c_int
)
[src]
&self,
program: c_uint,
pname: ProgramPropertyARB,
params: *mut c_int
)
glGetProgramiv
program
class: programpname
group: ProgramPropertyARBparams
len: COMPSIZE(pname)
pub unsafe fn GetQueryObjecti64v(
&self,
id: c_uint,
pname: QueryObjectParameterName,
params: *mut i64
)
[src]
&self,
id: c_uint,
pname: QueryObjectParameterName,
params: *mut i64
)
glGetQueryObjecti64v
id
class: querypname
group: QueryObjectParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn GetQueryObjectiv(
&self,
id: c_uint,
pname: QueryObjectParameterName,
params: *mut c_int
)
[src]
&self,
id: c_uint,
pname: QueryObjectParameterName,
params: *mut c_int
)
glGetQueryObjectiv
id
class: querypname
group: QueryObjectParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn GetQueryObjectui64v(
&self,
id: c_uint,
pname: QueryObjectParameterName,
params: *mut u64
)
[src]
&self,
id: c_uint,
pname: QueryObjectParameterName,
params: *mut u64
)
glGetQueryObjectui64v
id
class: querypname
group: QueryObjectParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn GetQueryObjectuiv(
&self,
id: c_uint,
pname: QueryObjectParameterName,
params: *mut c_uint
)
[src]
&self,
id: c_uint,
pname: QueryObjectParameterName,
params: *mut c_uint
)
glGetQueryObjectuiv
id
class: querypname
group: QueryObjectParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn GetQueryiv(
&self,
target: QueryTarget,
pname: QueryParameterName,
params: *mut c_int
)
[src]
&self,
target: QueryTarget,
pname: QueryParameterName,
params: *mut c_int
)
glGetQueryiv
target
group: QueryTargetpname
group: QueryParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn GetRenderbufferParameteriv(
&self,
target: RenderbufferTarget,
pname: RenderbufferParameterName,
params: *mut c_int
)
[src]
&self,
target: RenderbufferTarget,
pname: RenderbufferParameterName,
params: *mut c_int
)
glGetRenderbufferParameteriv
target
group: RenderbufferTargetpname
group: RenderbufferParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn GetSamplerParameterIiv(
&self,
sampler: c_uint,
pname: SamplerParameterI,
params: *mut c_int
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterI,
params: *mut c_int
)
glGetSamplerParameterIiv
sampler
class: samplerpname
group: SamplerParameterIparams
len: COMPSIZE(pname)
pub unsafe fn GetSamplerParameterIuiv(
&self,
sampler: c_uint,
pname: SamplerParameterI,
params: *mut c_uint
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterI,
params: *mut c_uint
)
glGetSamplerParameterIuiv
sampler
class: samplerpname
group: SamplerParameterIparams
len: COMPSIZE(pname)
pub unsafe fn GetSamplerParameterfv(
&self,
sampler: c_uint,
pname: SamplerParameterF,
params: *mut c_float
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterF,
params: *mut c_float
)
glGetSamplerParameterfv
sampler
class: samplerpname
group: SamplerParameterFparams
len: COMPSIZE(pname)
pub unsafe fn GetSamplerParameteriv(
&self,
sampler: c_uint,
pname: SamplerParameterI,
params: *mut c_int
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterI,
params: *mut c_int
)
glGetSamplerParameteriv
sampler
class: samplerpname
group: SamplerParameterIparams
len: COMPSIZE(pname)
pub unsafe fn GetShaderInfoLog(
&self,
shader: c_uint,
bufSize: c_int,
length: *mut c_int,
infoLog: *mut u8
)
[src]
&self,
shader: c_uint,
bufSize: c_int,
length: *mut c_int,
infoLog: *mut u8
)
glGetShaderInfoLog
shader
class: shaderinfoLog
len: bufSize
pub unsafe fn GetShaderSource(
&self,
shader: c_uint,
bufSize: c_int,
length: *mut c_int,
source: *mut u8
)
[src]
&self,
shader: c_uint,
bufSize: c_int,
length: *mut c_int,
source: *mut u8
)
glGetShaderSource
shader
class: shadersource
len: bufSize
pub unsafe fn GetShaderiv(
&self,
shader: c_uint,
pname: ShaderParameterName,
params: *mut c_int
)
[src]
&self,
shader: c_uint,
pname: ShaderParameterName,
params: *mut c_int
)
glGetShaderiv
shader
class: shaderpname
group: ShaderParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn GetString(&self, name: StringName) -> *const u8
[src]
Gets various string info about the GL implementation.
name
:GL_VENDOR
: The name of the company that made this GL implementation.GL_RENDERER
: The name of the renderer.GL_VERSION
: A version or release number.GL_SHADING_LANGUAGE_VERSION
: The version/release for the shading language.
pub unsafe fn GetStringi(&self, name: StringName, index: c_uint) -> *const u8
[src]
Gets indexed string info about the GL implementation.
name
: One of:GL_EXTENSIONS
: Returns the name of the extension specified byindex
. Extensions are indexed in the range0 .. GL_NUM_EXTENSIONS
. UseglGetIntegerv
to find the current implementation’s number of extensions.
index
: The index of the string to return.
See Also: glGetIntegerv
pub unsafe fn GetSynciv(
&self,
sync: GLsync,
pname: SyncParameterName,
count: c_int,
length: *mut c_int,
values: *mut c_int
)
[src]
&self,
sync: GLsync,
pname: SyncParameterName,
count: c_int,
length: *mut c_int,
values: *mut c_int
)
glGetSynciv
sync
group: syncsync
class: syncpname
group: SyncParameterNamevalues
len: count
pub unsafe fn GetTexImage(
&self,
target: TextureTarget,
level: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *mut c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *mut c_void
)
glGetTexImage
target
group: TextureTargetlevel
group: CheckedInt32format
group: PixelFormattype
group: PixelTypepixels
len: COMPSIZE(target,level,format,type)
pub unsafe fn GetTexLevelParameterfv(
&self,
target: TextureTarget,
level: c_int,
pname: GetTextureParameter,
params: *mut c_float
)
[src]
&self,
target: TextureTarget,
level: c_int,
pname: GetTextureParameter,
params: *mut c_float
)
glGetTexLevelParameterfv
target
group: TextureTargetlevel
group: CheckedInt32pname
group: GetTextureParameterparams
len: COMPSIZE(pname)
pub unsafe fn GetTexLevelParameteriv(
&self,
target: TextureTarget,
level: c_int,
pname: GetTextureParameter,
params: *mut c_int
)
[src]
&self,
target: TextureTarget,
level: c_int,
pname: GetTextureParameter,
params: *mut c_int
)
glGetTexLevelParameteriv
target
group: TextureTargetlevel
group: CheckedInt32pname
group: GetTextureParameterparams
len: COMPSIZE(pname)
pub unsafe fn GetTexParameterIiv(
&self,
target: TextureTarget,
pname: GetTextureParameter,
params: *mut c_int
)
[src]
&self,
target: TextureTarget,
pname: GetTextureParameter,
params: *mut c_int
)
glGetTexParameterIiv
target
group: TextureTargetpname
group: GetTextureParameterparams
len: COMPSIZE(pname)
pub unsafe fn GetTexParameterIuiv(
&self,
target: TextureTarget,
pname: GetTextureParameter,
params: *mut c_uint
)
[src]
&self,
target: TextureTarget,
pname: GetTextureParameter,
params: *mut c_uint
)
glGetTexParameterIuiv
target
group: TextureTargetpname
group: GetTextureParameterparams
len: COMPSIZE(pname)
pub unsafe fn GetTexParameterfv(
&self,
target: TextureTarget,
pname: GetTextureParameter,
params: *mut c_float
)
[src]
&self,
target: TextureTarget,
pname: GetTextureParameter,
params: *mut c_float
)
glGetTexParameterfv
target
group: TextureTargetpname
group: GetTextureParameterparams
len: COMPSIZE(pname)
pub unsafe fn GetTexParameteriv(
&self,
target: TextureTarget,
pname: GetTextureParameter,
params: *mut c_int
)
[src]
&self,
target: TextureTarget,
pname: GetTextureParameter,
params: *mut c_int
)
glGetTexParameteriv
target
group: TextureTargetpname
group: GetTextureParameterparams
len: COMPSIZE(pname)
pub unsafe fn GetTransformFeedbackVarying(
&self,
program: c_uint,
index: c_uint,
bufSize: c_int,
length: *mut c_int,
size: *mut c_int,
type_: *mut AttributeType,
name: *mut u8
)
[src]
&self,
program: c_uint,
index: c_uint,
bufSize: c_int,
length: *mut c_int,
size: *mut c_int,
type_: *mut AttributeType,
name: *mut u8
)
glGetTransformFeedbackVarying
program
class: programtype
group: AttributeTypename
len: bufSize
pub unsafe fn GetUniformBlockIndex(
&self,
program: c_uint,
uniformBlockName: *const u8
) -> c_uint
[src]
&self,
program: c_uint,
uniformBlockName: *const u8
) -> c_uint
glGetUniformBlockIndex
program
class: programuniformBlockName
len: COMPSIZE()
pub unsafe fn GetUniformIndices(
&self,
program: c_uint,
uniformCount: c_int,
uniformNames: *const *const u8,
uniformIndices: *mut c_uint
)
[src]
&self,
program: c_uint,
uniformCount: c_int,
uniformNames: *const *const u8,
uniformIndices: *mut c_uint
)
glGetUniformIndices
program
class: programuniformNames
len: COMPSIZE(uniformCount)uniformIndices
len: COMPSIZE(uniformCount)
pub unsafe fn GetUniformLocation(
&self,
program: c_uint,
name: *const u8
) -> c_int
[src]
&self,
program: c_uint,
name: *const u8
) -> c_int
glGetUniformLocation
program
class: program
pub unsafe fn GetUniformfv(
&self,
program: c_uint,
location: c_int,
params: *mut c_float
)
[src]
&self,
program: c_uint,
location: c_int,
params: *mut c_float
)
glGetUniformfv
program
class: programparams
len: COMPSIZE(program,location)
pub unsafe fn GetUniformiv(
&self,
program: c_uint,
location: c_int,
params: *mut c_int
)
[src]
&self,
program: c_uint,
location: c_int,
params: *mut c_int
)
glGetUniformiv
program
class: programparams
len: COMPSIZE(program,location)
pub unsafe fn GetUniformuiv(
&self,
program: c_uint,
location: c_int,
params: *mut c_uint
)
[src]
&self,
program: c_uint,
location: c_int,
params: *mut c_uint
)
glGetUniformuiv
program
class: programparams
len: COMPSIZE(program,location)
pub unsafe fn GetVertexAttribIiv(
&self,
index: c_uint,
pname: VertexAttribEnum,
params: *mut c_int
)
[src]
&self,
index: c_uint,
pname: VertexAttribEnum,
params: *mut c_int
)
glGetVertexAttribIiv
pname
group: VertexAttribEnum
pub unsafe fn GetVertexAttribIuiv(
&self,
index: c_uint,
pname: VertexAttribEnum,
params: *mut c_uint
)
[src]
&self,
index: c_uint,
pname: VertexAttribEnum,
params: *mut c_uint
)
glGetVertexAttribIuiv
pname
group: VertexAttribEnum
pub unsafe fn GetVertexAttribPointerv(
&self,
index: c_uint,
pname: VertexAttribPointerPropertyARB,
pointer: *mut *mut c_void
)
[src]
&self,
index: c_uint,
pname: VertexAttribPointerPropertyARB,
pointer: *mut *mut c_void
)
glGetVertexAttribPointerv
pname
group: VertexAttribPointerPropertyARB
pub unsafe fn GetVertexAttribdv(
&self,
index: c_uint,
pname: VertexAttribPropertyARB,
params: *mut [c_double; 4]
)
[src]
&self,
index: c_uint,
pname: VertexAttribPropertyARB,
params: *mut [c_double; 4]
)
glGetVertexAttribdv
pname
group: VertexAttribPropertyARB
pub unsafe fn GetVertexAttribfv(
&self,
index: c_uint,
pname: VertexAttribPropertyARB,
params: *mut [c_float; 4]
)
[src]
&self,
index: c_uint,
pname: VertexAttribPropertyARB,
params: *mut [c_float; 4]
)
glGetVertexAttribfv
pname
group: VertexAttribPropertyARB
pub unsafe fn GetVertexAttribiv(
&self,
index: c_uint,
pname: VertexAttribPropertyARB,
params: *mut [c_int; 4]
)
[src]
&self,
index: c_uint,
pname: VertexAttribPropertyARB,
params: *mut [c_int; 4]
)
glGetVertexAttribiv
pname
group: VertexAttribPropertyARB
pub unsafe fn Hint(&self, target: HintTarget, mode: HintMode)
[src]
glHint
target
group: HintTargetmode
group: HintMode
pub unsafe fn IsBuffer(&self, buffer: c_uint) -> c_uchar
[src]
glIsBuffer
buffer
class: buffer
pub unsafe fn IsEnabled(&self, cap: EnableCap) -> c_uchar
[src]
glIsEnabled
cap
group: EnableCap
pub unsafe fn IsEnabledi(&self, target: EnableCap, index: c_uint) -> c_uchar
[src]
glIsEnabledi
target
group: EnableCap
pub unsafe fn IsFramebuffer(&self, framebuffer: c_uint) -> c_uchar
[src]
glIsFramebuffer
framebuffer
class: framebuffer
pub unsafe fn IsProgram(&self, program: c_uint) -> c_uchar
[src]
glIsProgram
program
class: program
pub unsafe fn IsQuery(&self, id: c_uint) -> c_uchar
[src]
glIsQuery
id
class: query
pub unsafe fn IsRenderbuffer(&self, renderbuffer: c_uint) -> c_uchar
[src]
glIsRenderbuffer
renderbuffer
class: renderbuffer
pub unsafe fn IsSampler(&self, sampler: c_uint) -> c_uchar
[src]
glIsSampler
sampler
class: sampler
pub unsafe fn IsShader(&self, shader: c_uint) -> c_uchar
[src]
glIsShader
shader
class: shader
pub unsafe fn IsSync(&self, sync: GLsync) -> c_uchar
[src]
glIsSync
sync
group: syncsync
class: sync
pub unsafe fn IsTexture(&self, texture: c_uint) -> c_uchar
[src]
glIsTexture
texture
group: Texturetexture
class: texture
pub unsafe fn IsVertexArray(&self, array: c_uint) -> c_uchar
[src]
glIsVertexArray
array
class: vertex array
pub unsafe fn LineWidth(&self, width: c_float)
[src]
glLineWidth
width
group: CheckedFloat32
pub fn LinkProgram(&self, program: c_uint)
[src]
Performs linking on a program object. The link status of the program will
be stored in its object state, you can check it with glGetProgram
and/or glGetProgramInfoLog
.
program
the name of the program to link
pub unsafe fn LogicOp(&self, opcode: LogicOp)
[src]
glLogicOp
opcode
group: LogicOp
pub unsafe fn MapBuffer(
&self,
target: BufferTargetARB,
access: BufferAccessARB
) -> *mut c_void
[src]
&self,
target: BufferTargetARB,
access: BufferAccessARB
) -> *mut c_void
glMapBuffer
target
group: BufferTargetARBaccess
group: BufferAccessARB
pub unsafe fn MapBufferRange(
&self,
target: BufferTargetARB,
offset: isize,
length: isize,
access: GLbitfield
) -> *mut c_void
[src]
&self,
target: BufferTargetARB,
offset: isize,
length: isize,
access: GLbitfield
) -> *mut c_void
glMapBufferRange
target
group: BufferTargetARBoffset
group: BufferOffsetlength
group: BufferSizeaccess
group: MapBufferAccessMask
pub unsafe fn MultiDrawArrays(
&self,
mode: PrimitiveType,
first: *const c_int,
count: *const c_int,
drawcount: c_int
)
[src]
&self,
mode: PrimitiveType,
first: *const c_int,
count: *const c_int,
drawcount: c_int
)
glMultiDrawArrays
mode
group: PrimitiveTypefirst
len: COMPSIZE(drawcount)count
len: COMPSIZE(drawcount)
pub unsafe fn MultiDrawElements(
&self,
mode: PrimitiveType,
count: *const c_int,
type_: DrawElementsType,
indices: *const *const c_void,
drawcount: c_int
)
[src]
&self,
mode: PrimitiveType,
count: *const c_int,
type_: DrawElementsType,
indices: *const *const c_void,
drawcount: c_int
)
glMultiDrawElements
mode
group: PrimitiveTypecount
len: COMPSIZE(drawcount)type
group: DrawElementsTypeindices
len: COMPSIZE(drawcount)
pub unsafe fn MultiDrawElementsBaseVertex(
&self,
mode: PrimitiveType,
count: *const c_int,
type_: DrawElementsType,
indices: *const *const c_void,
drawcount: c_int,
basevertex: *const c_int
)
[src]
&self,
mode: PrimitiveType,
count: *const c_int,
type_: DrawElementsType,
indices: *const *const c_void,
drawcount: c_int,
basevertex: *const c_int
)
glMultiDrawElementsBaseVertex
mode
group: PrimitiveTypecount
len: COMPSIZE(drawcount)type
group: DrawElementsTypeindices
len: COMPSIZE(drawcount)basevertex
len: COMPSIZE(drawcount)
pub unsafe fn PixelStoref(&self, pname: PixelStoreParameter, param: c_float)
[src]
glPixelStoref
pname
group: PixelStoreParameterparam
group: CheckedFloat32
pub unsafe fn PixelStorei(&self, pname: PixelStoreParameter, param: c_int)
[src]
glPixelStorei
pname
group: PixelStoreParameterparam
group: CheckedInt32
pub unsafe fn PointParameterf(
&self,
pname: PointParameterNameARB,
param: c_float
)
[src]
&self,
pname: PointParameterNameARB,
param: c_float
)
glPointParameterf
pname
group: PointParameterNameARBparam
group: CheckedFloat32
pub unsafe fn PointParameterfv(
&self,
pname: PointParameterNameARB,
params: *const c_float
)
[src]
&self,
pname: PointParameterNameARB,
params: *const c_float
)
glPointParameterfv
pname
group: PointParameterNameARBparams
group: CheckedFloat32params
len: COMPSIZE(pname)
pub unsafe fn PointParameteri(&self, pname: PointParameterNameARB, param: c_int)
[src]
glPointParameteri
pname
group: PointParameterNameARB
pub unsafe fn PointParameteriv(
&self,
pname: PointParameterNameARB,
params: *const c_int
)
[src]
&self,
pname: PointParameterNameARB,
params: *const c_int
)
glPointParameteriv
pname
group: PointParameterNameARBparams
len: COMPSIZE(pname)
pub fn PointSize(&self, size: c_float)
[src]
Sets the diameter of rasterized points if GL_PROGRAM_POINT_SIZE
is
disabled. (Otherwise, this setting is ignored and you must modify
gl_PointSize
from within a shader to change point size.)
The default point size is 1.0, and it cannot be set to less than 0.0.
pub unsafe fn PolygonMode(&self, face: MaterialFace, mode: PolygonMode)
[src]
glPolygonMode
face
group: MaterialFacemode
group: PolygonMode
pub unsafe fn PolygonOffset(&self, factor: c_float, units: c_float)
[src]
glPolygonOffset
pub unsafe fn PrimitiveRestartIndex(&self, index: c_uint)
[src]
glPrimitiveRestartIndex
pub unsafe fn ProvokingVertex(&self, mode: VertexProvokingMode)
[src]
glProvokingVertex
mode
group: VertexProvokingMode
pub unsafe fn QueryCounter(&self, id: c_uint, target: QueryCounterTarget)
[src]
glQueryCounter
id
class: querytarget
group: QueryCounterTarget
pub unsafe fn ReadBuffer(&self, src: ReadBufferMode)
[src]
glReadBuffer
src
group: ReadBufferMode
pub unsafe fn ReadPixels(
&self,
x: c_int,
y: c_int,
width: c_int,
height: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *mut c_void
)
[src]
&self,
x: c_int,
y: c_int,
width: c_int,
height: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *mut c_void
)
glReadPixels
x
group: WinCoordy
group: WinCoordformat
group: PixelFormattype
group: PixelTypepixels
len: COMPSIZE(format,type,width,height)
pub unsafe fn RenderbufferStorage(
&self,
target: RenderbufferTarget,
internalformat: InternalFormat,
width: c_int,
height: c_int
)
[src]
&self,
target: RenderbufferTarget,
internalformat: InternalFormat,
width: c_int,
height: c_int
)
glRenderbufferStorage
target
group: RenderbufferTargetinternalformat
group: InternalFormat
pub unsafe fn RenderbufferStorageMultisample(
&self,
target: RenderbufferTarget,
samples: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int
)
[src]
&self,
target: RenderbufferTarget,
samples: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int
)
glRenderbufferStorageMultisample
target
group: RenderbufferTargetinternalformat
group: InternalFormat
pub unsafe fn SampleCoverage(&self, value: c_float, invert: c_uchar)
[src]
glSampleCoverage
invert
group: Boolean
pub unsafe fn SampleMaski(&self, maskNumber: c_uint, mask: GLbitfield)
[src]
glSampleMaski
pub unsafe fn SamplerParameterIiv(
&self,
sampler: c_uint,
pname: SamplerParameterI,
param: *const c_int
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterI,
param: *const c_int
)
glSamplerParameterIiv
sampler
class: samplerpname
group: SamplerParameterIparam
len: COMPSIZE(pname)
pub unsafe fn SamplerParameterIuiv(
&self,
sampler: c_uint,
pname: SamplerParameterI,
param: *const c_uint
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterI,
param: *const c_uint
)
glSamplerParameterIuiv
sampler
class: samplerpname
group: SamplerParameterIparam
len: COMPSIZE(pname)
pub unsafe fn SamplerParameterf(
&self,
sampler: c_uint,
pname: SamplerParameterF,
param: c_float
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterF,
param: c_float
)
glSamplerParameterf
sampler
class: samplerpname
group: SamplerParameterF
pub unsafe fn SamplerParameterfv(
&self,
sampler: c_uint,
pname: SamplerParameterF,
param: *const c_float
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterF,
param: *const c_float
)
glSamplerParameterfv
sampler
class: samplerpname
group: SamplerParameterFparam
len: COMPSIZE(pname)
pub unsafe fn SamplerParameteri(
&self,
sampler: c_uint,
pname: SamplerParameterI,
param: c_int
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterI,
param: c_int
)
glSamplerParameteri
sampler
class: samplerpname
group: SamplerParameterI
pub unsafe fn SamplerParameteriv(
&self,
sampler: c_uint,
pname: SamplerParameterI,
param: *const c_int
)
[src]
&self,
sampler: c_uint,
pname: SamplerParameterI,
param: *const c_int
)
glSamplerParameteriv
sampler
class: samplerpname
group: SamplerParameterIparam
len: COMPSIZE(pname)
pub unsafe fn Scissor(&self, x: c_int, y: c_int, width: c_int, height: c_int)
[src]
glScissor
x
group: WinCoordy
group: WinCoord
pub unsafe fn ShaderSource(
&self,
shader: c_uint,
count: c_int,
string: *const *const u8,
length: *const c_int
)
[src]
&self,
shader: c_uint,
count: c_int,
string: *const *const u8,
length: *const c_int
)
Sets the source string of the named shader. This replaces any previously set source. OpenGL copies the data into its own memory, so you can free your instance of the source string after the call (if necessary).
shader
the shader ID to attach the source to.count
the length of thestring
andlength
arrays.string
an array of pointers to the start of shader source code strings.length
if non-null, this is an array of lengths for each pointer instring
(or negative if that entry is null-termiated). iflength
is null then all strings instring
must each be null-termianted.
pub unsafe fn StencilFunc(
&self,
func: StencilFunction,
ref_: c_int,
mask: c_uint
)
[src]
&self,
func: StencilFunction,
ref_: c_int,
mask: c_uint
)
glStencilFunc
func
group: StencilFunctionref
group: StencilValuemask
group: MaskedStencilValue
pub unsafe fn StencilFuncSeparate(
&self,
face: StencilFaceDirection,
func: StencilFunction,
ref_: c_int,
mask: c_uint
)
[src]
&self,
face: StencilFaceDirection,
func: StencilFunction,
ref_: c_int,
mask: c_uint
)
glStencilFuncSeparate
face
group: StencilFaceDirectionfunc
group: StencilFunctionref
group: StencilValuemask
group: MaskedStencilValue
pub unsafe fn StencilMask(&self, mask: c_uint)
[src]
glStencilMask
mask
group: MaskedStencilValue
pub unsafe fn StencilMaskSeparate(
&self,
face: StencilFaceDirection,
mask: c_uint
)
[src]
&self,
face: StencilFaceDirection,
mask: c_uint
)
glStencilMaskSeparate
face
group: StencilFaceDirectionmask
group: MaskedStencilValue
pub unsafe fn StencilOp(
&self,
fail: StencilOp,
zfail: StencilOp,
zpass: StencilOp
)
[src]
&self,
fail: StencilOp,
zfail: StencilOp,
zpass: StencilOp
)
glStencilOp
fail
group: StencilOpzfail
group: StencilOpzpass
group: StencilOp
pub unsafe fn StencilOpSeparate(
&self,
face: StencilFaceDirection,
sfail: StencilOp,
dpfail: StencilOp,
dppass: StencilOp
)
[src]
&self,
face: StencilFaceDirection,
sfail: StencilOp,
dpfail: StencilOp,
dppass: StencilOp
)
glStencilOpSeparate
face
group: StencilFaceDirectionsfail
group: StencilOpdpfail
group: StencilOpdppass
group: StencilOp
pub unsafe fn TexBuffer(
&self,
target: TextureTarget,
internalformat: InternalFormat,
buffer: c_uint
)
[src]
&self,
target: TextureTarget,
internalformat: InternalFormat,
buffer: c_uint
)
glTexBuffer
target
group: TextureTargetinternalformat
group: InternalFormatbuffer
class: buffer
pub unsafe fn TexImage1D(
&self,
target: TextureTarget,
level: c_int,
internalformat: c_int,
width: c_int,
border: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
internalformat: c_int,
width: c_int,
border: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
glTexImage1D
target
group: TextureTargetlevel
group: CheckedInt32internalformat
group: InternalFormatborder
group: CheckedInt32format
group: PixelFormattype
group: PixelTypepixels
len: COMPSIZE(format,type,width)
pub unsafe fn TexImage2D(
&self,
target: TextureTarget,
level: c_int,
internalformat: c_int,
width: c_int,
height: c_int,
border: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
internalformat: c_int,
width: c_int,
height: c_int,
border: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
glTexImage2D
target
group: TextureTargetlevel
group: CheckedInt32internalformat
group: InternalFormatborder
group: CheckedInt32format
group: PixelFormattype
group: PixelTypepixels
len: COMPSIZE(format,type,width,height)
pub unsafe fn TexImage2DMultisample(
&self,
target: TextureTarget,
samples: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int,
fixedsamplelocations: c_uchar
)
[src]
&self,
target: TextureTarget,
samples: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int,
fixedsamplelocations: c_uchar
)
glTexImage2DMultisample
target
group: TextureTargetinternalformat
group: InternalFormatfixedsamplelocations
group: Boolean
pub unsafe fn TexImage3D(
&self,
target: TextureTarget,
level: c_int,
internalformat: c_int,
width: c_int,
height: c_int,
depth: c_int,
border: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
internalformat: c_int,
width: c_int,
height: c_int,
depth: c_int,
border: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
glTexImage3D
target
group: TextureTargetlevel
group: CheckedInt32internalformat
group: InternalFormatborder
group: CheckedInt32format
group: PixelFormattype
group: PixelTypepixels
len: COMPSIZE(format,type,width,height,depth)
pub unsafe fn TexImage3DMultisample(
&self,
target: TextureTarget,
samples: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int,
depth: c_int,
fixedsamplelocations: c_uchar
)
[src]
&self,
target: TextureTarget,
samples: c_int,
internalformat: InternalFormat,
width: c_int,
height: c_int,
depth: c_int,
fixedsamplelocations: c_uchar
)
glTexImage3DMultisample
target
group: TextureTargetinternalformat
group: InternalFormatfixedsamplelocations
group: Boolean
pub unsafe fn TexParameterIiv(
&self,
target: TextureTarget,
pname: TextureParameterName,
params: *const c_int
)
[src]
&self,
target: TextureTarget,
pname: TextureParameterName,
params: *const c_int
)
glTexParameterIiv
target
group: TextureTargetpname
group: TextureParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn TexParameterIuiv(
&self,
target: TextureTarget,
pname: TextureParameterName,
params: *const c_uint
)
[src]
&self,
target: TextureTarget,
pname: TextureParameterName,
params: *const c_uint
)
glTexParameterIuiv
target
group: TextureTargetpname
group: TextureParameterNameparams
len: COMPSIZE(pname)
pub unsafe fn TexParameterf(
&self,
target: TextureTarget,
pname: TextureParameterName,
param: c_float
)
[src]
&self,
target: TextureTarget,
pname: TextureParameterName,
param: c_float
)
glTexParameterf
target
group: TextureTargetpname
group: TextureParameterNameparam
group: CheckedFloat32
pub unsafe fn TexParameterfv(
&self,
target: TextureTarget,
pname: TextureParameterName,
params: *const c_float
)
[src]
&self,
target: TextureTarget,
pname: TextureParameterName,
params: *const c_float
)
glTexParameterfv
target
group: TextureTargetpname
group: TextureParameterNameparams
group: CheckedFloat32params
len: COMPSIZE(pname)
pub unsafe fn TexParameteri(
&self,
target: TextureTarget,
pname: TextureParameterName,
param: c_int
)
[src]
&self,
target: TextureTarget,
pname: TextureParameterName,
param: c_int
)
glTexParameteri
target
group: TextureTargetpname
group: TextureParameterNameparam
group: CheckedInt32
pub unsafe fn TexParameteriv(
&self,
target: TextureTarget,
pname: TextureParameterName,
params: *const c_int
)
[src]
&self,
target: TextureTarget,
pname: TextureParameterName,
params: *const c_int
)
glTexParameteriv
target
group: TextureTargetpname
group: TextureParameterNameparams
group: CheckedInt32params
len: COMPSIZE(pname)
pub unsafe fn TexSubImage1D(
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
width: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
width: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
glTexSubImage1D
target
group: TextureTargetlevel
group: CheckedInt32xoffset
group: CheckedInt32format
group: PixelFormattype
group: PixelTypepixels
len: COMPSIZE(format,type,width)
pub unsafe fn TexSubImage2D(
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
width: c_int,
height: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
width: c_int,
height: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
glTexSubImage2D
target
group: TextureTargetlevel
group: CheckedInt32xoffset
group: CheckedInt32yoffset
group: CheckedInt32format
group: PixelFormattype
group: PixelTypepixels
len: COMPSIZE(format,type,width,height)
pub unsafe fn TexSubImage3D(
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
zoffset: c_int,
width: c_int,
height: c_int,
depth: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
[src]
&self,
target: TextureTarget,
level: c_int,
xoffset: c_int,
yoffset: c_int,
zoffset: c_int,
width: c_int,
height: c_int,
depth: c_int,
format: PixelFormat,
type_: PixelType,
pixels: *const c_void
)
glTexSubImage3D
target
group: TextureTargetlevel
group: CheckedInt32xoffset
group: CheckedInt32yoffset
group: CheckedInt32zoffset
group: CheckedInt32format
group: PixelFormattype
group: PixelTypepixels
len: COMPSIZE(format,type,width,height,depth)
pub unsafe fn TransformFeedbackVaryings(
&self,
program: c_uint,
count: c_int,
varyings: *const *const u8,
bufferMode: TransformFeedbackBufferMode
)
[src]
&self,
program: c_uint,
count: c_int,
varyings: *const *const u8,
bufferMode: TransformFeedbackBufferMode
)
glTransformFeedbackVaryings
program
class: programvaryings
len: countbufferMode
group: TransformFeedbackBufferMode
pub unsafe fn Uniform1f(&self, location: c_int, v0: c_float)
[src]
glUniform1f
pub unsafe fn Uniform1fv(
&self,
location: c_int,
count: c_int,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_float
)
glUniform1fv
value
len: count*1
pub unsafe fn Uniform1i(&self, location: c_int, v0: c_int)
[src]
glUniform1i
pub unsafe fn Uniform1iv(
&self,
location: c_int,
count: c_int,
value: *const c_int
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_int
)
glUniform1iv
value
len: count*1
pub unsafe fn Uniform1ui(&self, location: c_int, v0: c_uint)
[src]
glUniform1ui
pub unsafe fn Uniform1uiv(
&self,
location: c_int,
count: c_int,
value: *const c_uint
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_uint
)
glUniform1uiv
value
len: count*1
pub unsafe fn Uniform2f(&self, location: c_int, v0: c_float, v1: c_float)
[src]
glUniform2f
pub unsafe fn Uniform2fv(
&self,
location: c_int,
count: c_int,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_float
)
glUniform2fv
value
len: count*2
pub unsafe fn Uniform2i(&self, location: c_int, v0: c_int, v1: c_int)
[src]
glUniform2i
pub unsafe fn Uniform2iv(
&self,
location: c_int,
count: c_int,
value: *const c_int
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_int
)
glUniform2iv
value
len: count*2
pub unsafe fn Uniform2ui(&self, location: c_int, v0: c_uint, v1: c_uint)
[src]
glUniform2ui
pub unsafe fn Uniform2uiv(
&self,
location: c_int,
count: c_int,
value: *const c_uint
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_uint
)
glUniform2uiv
value
len: count*2
pub unsafe fn Uniform3f(
&self,
location: c_int,
v0: c_float,
v1: c_float,
v2: c_float
)
[src]
&self,
location: c_int,
v0: c_float,
v1: c_float,
v2: c_float
)
glUniform3f
pub unsafe fn Uniform3fv(
&self,
location: c_int,
count: c_int,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_float
)
glUniform3fv
value
len: count*3
pub unsafe fn Uniform3i(&self, location: c_int, v0: c_int, v1: c_int, v2: c_int)
[src]
glUniform3i
pub unsafe fn Uniform3iv(
&self,
location: c_int,
count: c_int,
value: *const c_int
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_int
)
glUniform3iv
value
len: count*3
pub unsafe fn Uniform3ui(
&self,
location: c_int,
v0: c_uint,
v1: c_uint,
v2: c_uint
)
[src]
&self,
location: c_int,
v0: c_uint,
v1: c_uint,
v2: c_uint
)
glUniform3ui
pub unsafe fn Uniform3uiv(
&self,
location: c_int,
count: c_int,
value: *const c_uint
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_uint
)
glUniform3uiv
value
len: count*3
pub unsafe fn Uniform4f(
&self,
location: c_int,
v0: c_float,
v1: c_float,
v2: c_float,
v3: c_float
)
[src]
&self,
location: c_int,
v0: c_float,
v1: c_float,
v2: c_float,
v3: c_float
)
glUniform4f
pub unsafe fn Uniform4fv(
&self,
location: c_int,
count: c_int,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_float
)
glUniform4fv
value
len: count*4
pub unsafe fn Uniform4i(
&self,
location: c_int,
v0: c_int,
v1: c_int,
v2: c_int,
v3: c_int
)
[src]
&self,
location: c_int,
v0: c_int,
v1: c_int,
v2: c_int,
v3: c_int
)
glUniform4i
pub unsafe fn Uniform4iv(
&self,
location: c_int,
count: c_int,
value: *const c_int
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_int
)
glUniform4iv
value
len: count*4
pub unsafe fn Uniform4ui(
&self,
location: c_int,
v0: c_uint,
v1: c_uint,
v2: c_uint,
v3: c_uint
)
[src]
&self,
location: c_int,
v0: c_uint,
v1: c_uint,
v2: c_uint,
v3: c_uint
)
glUniform4ui
pub unsafe fn Uniform4uiv(
&self,
location: c_int,
count: c_int,
value: *const c_uint
)
[src]
&self,
location: c_int,
count: c_int,
value: *const c_uint
)
glUniform4uiv
value
len: count*4
pub unsafe fn UniformBlockBinding(
&self,
program: c_uint,
uniformBlockIndex: c_uint,
uniformBlockBinding: c_uint
)
[src]
&self,
program: c_uint,
uniformBlockIndex: c_uint,
uniformBlockBinding: c_uint
)
glUniformBlockBinding
program
class: program
pub unsafe fn UniformMatrix2fv(
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
glUniformMatrix2fv
transpose
group: Booleanvalue
len: count*4
pub unsafe fn UniformMatrix2x3fv(
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
glUniformMatrix2x3fv
transpose
group: Booleanvalue
len: count*6
pub unsafe fn UniformMatrix2x4fv(
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
glUniformMatrix2x4fv
transpose
group: Booleanvalue
len: count*8
pub unsafe fn UniformMatrix3fv(
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
glUniformMatrix3fv
transpose
group: Booleanvalue
len: count*9
pub unsafe fn UniformMatrix3x2fv(
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
glUniformMatrix3x2fv
transpose
group: Booleanvalue
len: count*6
pub unsafe fn UniformMatrix3x4fv(
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
glUniformMatrix3x4fv
transpose
group: Booleanvalue
len: count*12
pub unsafe fn UniformMatrix4fv(
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
glUniformMatrix4fv
transpose
group: Booleanvalue
len: count*16
pub unsafe fn UniformMatrix4x2fv(
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
glUniformMatrix4x2fv
transpose
group: Booleanvalue
len: count*8
pub unsafe fn UniformMatrix4x3fv(
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
[src]
&self,
location: c_int,
count: c_int,
transpose: c_uchar,
value: *const c_float
)
glUniformMatrix4x3fv
transpose
group: Booleanvalue
len: count*12
pub unsafe fn UnmapBuffer(&self, target: BufferTargetARB) -> c_uchar
[src]
glUnmapBuffer
target
group: BufferTargetARB
pub fn UseProgram(&self, program: c_uint)
[src]
Sets a given shader program for use during rendering.
Setting 0 as the program object makes the output of all rendering actions undefined, but this is not an error.
program
names the program to set for use.
pub unsafe fn ValidateProgram(&self, program: c_uint)
[src]
glValidateProgram
program
class: program
pub unsafe fn VertexAttrib1d(&self, index: c_uint, x: c_double)
[src]
glVertexAttrib1d
pub unsafe fn VertexAttrib1dv(&self, index: c_uint, v: *const c_double)
[src]
glVertexAttrib1dv
pub unsafe fn VertexAttrib1f(&self, index: c_uint, x: c_float)
[src]
glVertexAttrib1f
pub unsafe fn VertexAttrib1fv(&self, index: c_uint, v: *const c_float)
[src]
glVertexAttrib1fv
pub unsafe fn VertexAttrib1s(&self, index: c_uint, x: i16)
[src]
glVertexAttrib1s
pub unsafe fn VertexAttrib1sv(&self, index: c_uint, v: *const i16)
[src]
glVertexAttrib1sv
pub unsafe fn VertexAttrib2d(&self, index: c_uint, x: c_double, y: c_double)
[src]
glVertexAttrib2d
pub unsafe fn VertexAttrib2dv(&self, index: c_uint, v: *const [c_double; 2])
[src]
glVertexAttrib2dv
pub unsafe fn VertexAttrib2f(&self, index: c_uint, x: c_float, y: c_float)
[src]
glVertexAttrib2f
pub unsafe fn VertexAttrib2fv(&self, index: c_uint, v: *const [c_float; 2])
[src]
glVertexAttrib2fv
pub unsafe fn VertexAttrib2s(&self, index: c_uint, x: i16, y: i16)
[src]
glVertexAttrib2s
pub unsafe fn VertexAttrib2sv(&self, index: c_uint, v: *const [i16; 2])
[src]
glVertexAttrib2sv
pub unsafe fn VertexAttrib3d(
&self,
index: c_uint,
x: c_double,
y: c_double,
z: c_double
)
[src]
&self,
index: c_uint,
x: c_double,
y: c_double,
z: c_double
)
glVertexAttrib3d
pub unsafe fn VertexAttrib3dv(&self, index: c_uint, v: *const [c_double; 3])
[src]
glVertexAttrib3dv
pub unsafe fn VertexAttrib3f(
&self,
index: c_uint,
x: c_float,
y: c_float,
z: c_float
)
[src]
&self,
index: c_uint,
x: c_float,
y: c_float,
z: c_float
)
glVertexAttrib3f
pub unsafe fn VertexAttrib3fv(&self, index: c_uint, v: *const [c_float; 3])
[src]
glVertexAttrib3fv
pub unsafe fn VertexAttrib3s(&self, index: c_uint, x: i16, y: i16, z: i16)
[src]
glVertexAttrib3s
pub unsafe fn VertexAttrib3sv(&self, index: c_uint, v: *const [i16; 3])
[src]
glVertexAttrib3sv
pub unsafe fn VertexAttrib4Nbv(&self, index: c_uint, v: *const [i8; 4])
[src]
glVertexAttrib4Nbv
pub unsafe fn VertexAttrib4Niv(&self, index: c_uint, v: *const [c_int; 4])
[src]
glVertexAttrib4Niv
pub unsafe fn VertexAttrib4Nsv(&self, index: c_uint, v: *const [i16; 4])
[src]
glVertexAttrib4Nsv
pub unsafe fn VertexAttrib4Nub(&self, index: c_uint, x: u8, y: u8, z: u8, w: u8)
[src]
glVertexAttrib4Nub
pub unsafe fn VertexAttrib4Nubv(&self, index: c_uint, v: *const [u8; 4])
[src]
glVertexAttrib4Nubv
pub unsafe fn VertexAttrib4Nuiv(&self, index: c_uint, v: *const [c_uint; 4])
[src]
glVertexAttrib4Nuiv
pub unsafe fn VertexAttrib4Nusv(&self, index: c_uint, v: *const [u16; 4])
[src]
glVertexAttrib4Nusv
pub unsafe fn VertexAttrib4bv(&self, index: c_uint, v: *const [i8; 4])
[src]
glVertexAttrib4bv
pub unsafe fn VertexAttrib4d(
&self,
index: c_uint,
x: c_double,
y: c_double,
z: c_double,
w: c_double
)
[src]
&self,
index: c_uint,
x: c_double,
y: c_double,
z: c_double,
w: c_double
)
glVertexAttrib4d
pub unsafe fn VertexAttrib4dv(&self, index: c_uint, v: *const [c_double; 4])
[src]
glVertexAttrib4dv
pub unsafe fn VertexAttrib4f(
&self,
index: c_uint,
x: c_float,
y: c_float,
z: c_float,
w: c_float
)
[src]
&self,
index: c_uint,
x: c_float,
y: c_float,
z: c_float,
w: c_float
)
glVertexAttrib4f
pub unsafe fn VertexAttrib4fv(&self, index: c_uint, v: *const [c_float; 4])
[src]
glVertexAttrib4fv
pub unsafe fn VertexAttrib4iv(&self, index: c_uint, v: *const [c_int; 4])
[src]
glVertexAttrib4iv
pub unsafe fn VertexAttrib4s(
&self,
index: c_uint,
x: i16,
y: i16,
z: i16,
w: i16
)
[src]
&self,
index: c_uint,
x: i16,
y: i16,
z: i16,
w: i16
)
glVertexAttrib4s
pub unsafe fn VertexAttrib4sv(&self, index: c_uint, v: *const [i16; 4])
[src]
glVertexAttrib4sv
pub unsafe fn VertexAttrib4ubv(&self, index: c_uint, v: *const [u8; 4])
[src]
glVertexAttrib4ubv
pub unsafe fn VertexAttrib4uiv(&self, index: c_uint, v: *const [c_uint; 4])
[src]
glVertexAttrib4uiv
pub unsafe fn VertexAttrib4usv(&self, index: c_uint, v: *const [u16; 4])
[src]
glVertexAttrib4usv
pub unsafe fn VertexAttribDivisor(&self, index: c_uint, divisor: c_uint)
[src]
glVertexAttribDivisor
pub unsafe fn VertexAttribI1i(&self, index: c_uint, x: c_int)
[src]
glVertexAttribI1i
pub unsafe fn VertexAttribI1iv(&self, index: c_uint, v: *const c_int)
[src]
glVertexAttribI1iv
pub unsafe fn VertexAttribI1ui(&self, index: c_uint, x: c_uint)
[src]
glVertexAttribI1ui
pub unsafe fn VertexAttribI1uiv(&self, index: c_uint, v: *const c_uint)
[src]
glVertexAttribI1uiv
pub unsafe fn VertexAttribI2i(&self, index: c_uint, x: c_int, y: c_int)
[src]
glVertexAttribI2i
pub unsafe fn VertexAttribI2iv(&self, index: c_uint, v: *const [c_int; 2])
[src]
glVertexAttribI2iv
pub unsafe fn VertexAttribI2ui(&self, index: c_uint, x: c_uint, y: c_uint)
[src]
glVertexAttribI2ui
pub unsafe fn VertexAttribI2uiv(&self, index: c_uint, v: *const [c_uint; 2])
[src]
glVertexAttribI2uiv
pub unsafe fn VertexAttribI3i(
&self,
index: c_uint,
x: c_int,
y: c_int,
z: c_int
)
[src]
&self,
index: c_uint,
x: c_int,
y: c_int,
z: c_int
)
glVertexAttribI3i
pub unsafe fn VertexAttribI3iv(&self, index: c_uint, v: *const [c_int; 3])
[src]
glVertexAttribI3iv
pub unsafe fn VertexAttribI3ui(
&self,
index: c_uint,
x: c_uint,
y: c_uint,
z: c_uint
)
[src]
&self,
index: c_uint,
x: c_uint,
y: c_uint,
z: c_uint
)
glVertexAttribI3ui
pub unsafe fn VertexAttribI3uiv(&self, index: c_uint, v: *const [c_uint; 3])
[src]
glVertexAttribI3uiv
pub unsafe fn VertexAttribI4bv(&self, index: c_uint, v: *const [i8; 4])
[src]
glVertexAttribI4bv
pub unsafe fn VertexAttribI4i(
&self,
index: c_uint,
x: c_int,
y: c_int,
z: c_int,
w: c_int
)
[src]
&self,
index: c_uint,
x: c_int,
y: c_int,
z: c_int,
w: c_int
)
glVertexAttribI4i
pub unsafe fn VertexAttribI4iv(&self, index: c_uint, v: *const [c_int; 4])
[src]
glVertexAttribI4iv
pub unsafe fn VertexAttribI4sv(&self, index: c_uint, v: *const [i16; 4])
[src]
glVertexAttribI4sv
pub unsafe fn VertexAttribI4ubv(&self, index: c_uint, v: *const [u8; 4])
[src]
glVertexAttribI4ubv
pub unsafe fn VertexAttribI4ui(
&self,
index: c_uint,
x: c_uint,
y: c_uint,
z: c_uint,
w: c_uint
)
[src]
&self,
index: c_uint,
x: c_uint,
y: c_uint,
z: c_uint,
w: c_uint
)
glVertexAttribI4ui
pub unsafe fn VertexAttribI4uiv(&self, index: c_uint, v: *const [c_uint; 4])
[src]
glVertexAttribI4uiv
pub unsafe fn VertexAttribI4usv(&self, index: c_uint, v: *const [u16; 4])
[src]
glVertexAttribI4usv
pub unsafe fn VertexAttribIPointer(
&self,
index: c_uint,
size: c_int,
type_: VertexAttribIType,
stride: c_int,
pointer: *const c_void
)
[src]
&self,
index: c_uint,
size: c_int,
type_: VertexAttribIType,
stride: c_int,
pointer: *const c_void
)
glVertexAttribIPointer
type
group: VertexAttribITypepointer
len: COMPSIZE(size,type,stride)
pub unsafe fn VertexAttribP1ui(
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: c_uint
)
[src]
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: c_uint
)
glVertexAttribP1ui
type
group: VertexAttribPointerTypenormalized
group: Boolean
pub unsafe fn VertexAttribP1uiv(
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: *const c_uint
)
[src]
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: *const c_uint
)
glVertexAttribP1uiv
type
group: VertexAttribPointerTypenormalized
group: Boolean
pub unsafe fn VertexAttribP2ui(
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: c_uint
)
[src]
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: c_uint
)
glVertexAttribP2ui
type
group: VertexAttribPointerTypenormalized
group: Boolean
pub unsafe fn VertexAttribP2uiv(
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: *const c_uint
)
[src]
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: *const c_uint
)
glVertexAttribP2uiv
type
group: VertexAttribPointerTypenormalized
group: Boolean
pub unsafe fn VertexAttribP3ui(
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: c_uint
)
[src]
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: c_uint
)
glVertexAttribP3ui
type
group: VertexAttribPointerTypenormalized
group: Boolean
pub unsafe fn VertexAttribP3uiv(
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: *const c_uint
)
[src]
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: *const c_uint
)
glVertexAttribP3uiv
type
group: VertexAttribPointerTypenormalized
group: Boolean
pub unsafe fn VertexAttribP4ui(
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: c_uint
)
[src]
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: c_uint
)
glVertexAttribP4ui
type
group: VertexAttribPointerTypenormalized
group: Boolean
pub unsafe fn VertexAttribP4uiv(
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: *const c_uint
)
[src]
&self,
index: c_uint,
type_: VertexAttribPointerType,
normalized: c_uchar,
value: *const c_uint
)
glVertexAttribP4uiv
type
group: VertexAttribPointerTypenormalized
group: Boolean
pub unsafe fn VertexAttribPointer(
&self,
index: c_uint,
size: c_int,
type_: VertexAttribPointerType,
normalized: c_uchar,
stride: c_int,
pointer: *const c_void
)
[src]
&self,
index: c_uint,
size: c_int,
type_: VertexAttribPointerType,
normalized: c_uchar,
stride: c_int,
pointer: *const c_void
)
glVertexAttribPointer
type
group: VertexAttribPointerTypenormalized
group: Booleanpointer
len: COMPSIZE(size,type,stride)
pub unsafe fn Viewport(&self, x: c_int, y: c_int, width: c_int, height: c_int)
[src]
glViewport
x
group: WinCoordy
group: WinCoord
pub unsafe fn WaitSync(&self, sync: GLsync, flags: GLbitfield, timeout: u64)
[src]
glWaitSync
sync
group: syncsync
class: syncflags
group: SyncBehaviorFlags
pub unsafe fn DebugMessageCallback(
&self,
callback: GLDEBUGPROC,
userParam: *const c_void
)
[src]
&self,
callback: GLDEBUGPROC,
userParam: *const c_void
)
glDebugMessageCallback
pub unsafe fn DebugMessageControl(
&self,
source: DebugSource,
type_: DebugType,
severity: DebugSeverity,
count: c_int,
ids: *const c_uint,
enabled: c_uchar
)
[src]
&self,
source: DebugSource,
type_: DebugType,
severity: DebugSeverity,
count: c_int,
ids: *const c_uint,
enabled: c_uchar
)
glDebugMessageControl
source
group: DebugSourcetype
group: DebugTypeseverity
group: DebugSeverityids
len: countenabled
group: Boolean
pub unsafe fn DebugMessageInsert(
&self,
source: DebugSource,
type_: DebugType,
id: c_uint,
severity: DebugSeverity,
length: c_int,
buf: *const u8
)
[src]
&self,
source: DebugSource,
type_: DebugType,
id: c_uint,
severity: DebugSeverity,
length: c_int,
buf: *const u8
)
glDebugMessageInsert
source
group: DebugSourcetype
group: DebugTypeseverity
group: DebugSeveritybuf
len: COMPSIZE(buf,length)
pub unsafe fn GetDebugMessageLog(
&self,
count: c_uint,
bufSize: c_int,
sources: *mut DebugSource,
types: *mut DebugType,
ids: *mut c_uint,
severities: *mut DebugSeverity,
lengths: *mut c_int,
messageLog: *mut u8
) -> c_uint
[src]
&self,
count: c_uint,
bufSize: c_int,
sources: *mut DebugSource,
types: *mut DebugType,
ids: *mut c_uint,
severities: *mut DebugSeverity,
lengths: *mut c_int,
messageLog: *mut u8
) -> c_uint
glGetDebugMessageLog
sources
group: DebugSourcesources
len: counttypes
group: DebugTypetypes
len: countids
len: countseverities
group: DebugSeverityseverities
len: countlengths
len: countmessageLog
len: bufSize
pub unsafe fn GetObjectLabel(
&self,
identifier: ObjectIdentifier,
name: c_uint,
bufSize: c_int,
length: *mut c_int,
label: *mut u8
)
[src]
&self,
identifier: ObjectIdentifier,
name: c_uint,
bufSize: c_int,
length: *mut c_int,
label: *mut u8
)
glGetObjectLabel
identifier
group: ObjectIdentifierlabel
len: bufSize
pub unsafe fn GetObjectPtrLabel(
&self,
ptr: *const c_void,
bufSize: c_int,
length: *mut c_int,
label: *mut u8
)
[src]
&self,
ptr: *const c_void,
bufSize: c_int,
length: *mut c_int,
label: *mut u8
)
glGetObjectPtrLabel
label
len: bufSize
pub unsafe fn GetPointerv(
&self,
pname: GetPointervPName,
params: *mut *mut c_void
)
[src]
&self,
pname: GetPointervPName,
params: *mut *mut c_void
)
glGetPointerv
pname
group: GetPointervPName
pub unsafe fn ObjectLabel(
&self,
identifier: ObjectIdentifier,
name: c_uint,
length: c_int,
label: *const u8
)
[src]
&self,
identifier: ObjectIdentifier,
name: c_uint,
length: c_int,
label: *const u8
)
glObjectLabel
identifier
group: ObjectIdentifierlabel
len: COMPSIZE(label,length)
pub unsafe fn ObjectPtrLabel(
&self,
ptr: *const c_void,
length: c_int,
label: *const u8
)
[src]
&self,
ptr: *const c_void,
length: c_int,
label: *const u8
)
glObjectPtrLabel
label
len: COMPSIZE(label,length)
pub unsafe fn PopDebugGroup(&self)
[src]
glPopDebugGroup
pub unsafe fn PushDebugGroup(
&self,
source: DebugSource,
id: c_uint,
length: c_int,
message: *const u8
)
[src]
&self,
source: DebugSource,
id: c_uint,
length: c_int,
message: *const u8
)
glPushDebugGroup
source
group: DebugSourcemessage
len: COMPSIZE(message,length)
Auto Trait Implementations
impl RefUnwindSafe for GlFns
impl Send for GlFns
impl Sync for GlFns
impl Unpin for GlFns
impl UnwindSafe for GlFns
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,