Struct gl33::GlFns[][src]

#[repr(C)]pub struct GlFns { /* fields omitted */ }

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]

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]

glAttachShader

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]

glBeginConditionalRender

  • mode group: ConditionalRenderMode

pub unsafe fn BeginQuery(&self, target: QueryTarget, id: c_uint)[src]

glBeginQuery

  • target group: QueryTarget
  • id 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]

glBindAttribLocation

  • program class: program

pub unsafe fn BindBuffer(&self, target: BufferTargetARB, buffer: c_uint)[src]

glBindBuffer

  • target group: BufferTargetARB
  • buffer class: buffer

pub unsafe fn BindBufferBase(
    &self,
    target: BufferTargetARB,
    index: c_uint,
    buffer: c_uint
)
[src]

glBindBufferBase

  • target group: BufferTargetARB
  • buffer class: buffer

pub unsafe fn BindBufferRange(
    &self,
    target: BufferTargetARB,
    index: c_uint,
    buffer: c_uint,
    offset: isize,
    size: isize
)
[src]

glBindBufferRange

  • target group: BufferTargetARB
  • buffer class: buffer
  • offset group: BufferOffset
  • size group: BufferSize

pub unsafe fn BindFragDataLocation(
    &self,
    program: c_uint,
    color: c_uint,
    name: *const u8
)
[src]

glBindFragDataLocation

  • program class: program
  • name len: COMPSIZE(name)

pub unsafe fn BindFragDataLocationIndexed(
    &self,
    program: c_uint,
    colorNumber: c_uint,
    index: c_uint,
    name: *const u8
)
[src]

glBindFragDataLocationIndexed

  • program class: program

pub unsafe fn BindFramebuffer(
    &self,
    target: FramebufferTarget,
    framebuffer: c_uint
)
[src]

glBindFramebuffer

  • target group: FramebufferTarget
  • framebuffer class: framebuffer

pub unsafe fn BindRenderbuffer(
    &self,
    target: RenderbufferTarget,
    renderbuffer: c_uint
)
[src]

glBindRenderbuffer

  • target group: RenderbufferTarget
  • renderbuffer 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: TextureTarget
  • texture group: Texture
  • texture class: texture

pub fn BindVertexArray(&self, array: c_uint)[src]

glBindVertexArray

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]

glBlendColor

  • red group: ColorF
  • green group: ColorF
  • blue group: ColorF
  • alpha group: ColorF

pub unsafe fn BlendEquation(&self, mode: BlendEquationModeEXT)[src]

glBlendEquation

  • mode group: BlendEquationModeEXT

pub unsafe fn BlendEquationSeparate(
    &self,
    modeRGB: BlendEquationModeEXT,
    modeAlpha: BlendEquationModeEXT
)
[src]

glBlendEquationSeparate

  • modeRGB group: BlendEquationModeEXT
  • modeAlpha group: BlendEquationModeEXT

pub unsafe fn BlendFunc(&self, sfactor: BlendingFactor, dfactor: BlendingFactor)[src]

glBlendFunc

  • sfactor group: BlendingFactor
  • dfactor group: BlendingFactor

pub unsafe fn BlendFuncSeparate(
    &self,
    sfactorRGB: BlendingFactor,
    dfactorRGB: BlendingFactor,
    sfactorAlpha: BlendingFactor,
    dfactorAlpha: BlendingFactor
)
[src]

glBlendFuncSeparate

  • sfactorRGB group: BlendingFactor
  • dfactorRGB group: BlendingFactor
  • sfactorAlpha group: BlendingFactor
  • dfactorAlpha 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]

glBlitFramebuffer

  • mask group: ClearBufferMask
  • filter group: BlitFramebufferFilter

pub unsafe fn BufferData(
    &self,
    target: BufferTargetARB,
    size: isize,
    data: *const c_void,
    usage: BufferUsageARB
)
[src]

glBufferData

  • target group: BufferTargetARB
  • size group: BufferSize
  • data len: size
  • usage group: BufferUsageARB

pub unsafe fn BufferSubData(
    &self,
    target: BufferTargetARB,
    offset: isize,
    size: isize,
    data: *const c_void
)
[src]

glBufferSubData

  • target group: BufferTargetARB
  • offset group: BufferOffset
  • size group: BufferSize
  • data len: size

pub unsafe fn CheckFramebufferStatus(
    &self,
    target: FramebufferTarget
) -> FramebufferStatus
[src]

glCheckFramebufferStatus

  • target group: FramebufferTarget

pub unsafe fn ClampColor(
    &self,
    target: ClampColorTargetARB,
    clamp: ClampColorModeARB
)
[src]

glClampColor

  • target group: ClampColorTargetARB
  • clamp 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]

glClearBufferfi

  • buffer group: Buffer
  • drawbuffer group: DrawBufferName

pub unsafe fn ClearBufferfv(
    &self,
    buffer: Buffer,
    drawbuffer: c_int,
    value: *const c_float
)
[src]

glClearBufferfv

Clears a specified buffer of the currently bound draw framebuffer object to a specified value.

  • If buffer is GL_COLOR, a particular draw buffer GL_DRAW_BUFFERi is specified by passing i as drawbuffer (eg: to affect GL_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 of GL_DRAW_BUFFERi is GL_NONE, the command has no effect. Otherwise, the value of GL_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 for glClearColor.
  • If buffer is GL_DEPTH, drawbuffer must be zero, and value 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 for glClearDepth.

Errors

  • GL_INVALID_ENUM is generated if buffer is not GL_COLOR or GL_DEPTH.

pub unsafe fn ClearBufferiv(
    &self,
    buffer: Buffer,
    drawbuffer: c_int,
    value: *const c_int
)
[src]

glClearBufferiv

  • buffer group: Buffer
  • drawbuffer group: DrawBufferName
  • value len: COMPSIZE(buffer)

pub unsafe fn ClearBufferuiv(
    &self,
    buffer: Buffer,
    drawbuffer: c_int,
    value: *const c_uint
)
[src]

glClearBufferuiv

  • buffer group: Buffer
  • drawbuffer group: DrawBufferName
  • value len: COMPSIZE(buffer)

pub unsafe fn ClearColor(
    &self,
    red: c_float,
    green: c_float,
    blue: c_float,
    alpha: c_float
)
[src]

glClearColor

  • red group: ColorF
  • green group: ColorF
  • blue group: ColorF
  • alpha 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]

glClientWaitSync

  • sync group: sync
  • sync class: sync
  • flags group: SyncObjectMask

pub unsafe fn ColorMask(
    &self,
    red: c_uchar,
    green: c_uchar,
    blue: c_uchar,
    alpha: c_uchar
)
[src]

glColorMask

  • red group: Boolean
  • green group: Boolean
  • blue group: Boolean
  • alpha group: Boolean

pub unsafe fn ColorMaski(
    &self,
    index: c_uint,
    r: c_uchar,
    g: c_uchar,
    b: c_uchar,
    a: c_uchar
)
[src]

glColorMaski

  • r group: Boolean
  • g group: Boolean
  • b group: Boolean
  • a group: Boolean

pub fn CompileShader(&self, shader: c_uint)[src]

glCompileShader

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]

glCompressedTexImage1D

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • border group: CheckedInt32
  • data group: CompressedTextureARB
  • data 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]

glCompressedTexImage2D

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • border group: CheckedInt32
  • data group: CompressedTextureARB
  • data 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]

glCompressedTexImage3D

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • border group: CheckedInt32
  • data group: CompressedTextureARB
  • data 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]

glCompressedTexSubImage1D

  • target group: TextureTarget
  • level group: CheckedInt32
  • xoffset group: CheckedInt32
  • format group: PixelFormat
  • data group: CompressedTextureARB
  • data 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]

glCompressedTexSubImage2D

  • target group: TextureTarget
  • level group: CheckedInt32
  • xoffset group: CheckedInt32
  • yoffset group: CheckedInt32
  • format group: PixelFormat
  • data group: CompressedTextureARB
  • data 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]

glCompressedTexSubImage3D

  • target group: TextureTarget
  • level group: CheckedInt32
  • xoffset group: CheckedInt32
  • yoffset group: CheckedInt32
  • zoffset group: CheckedInt32
  • format group: PixelFormat
  • data group: CompressedTextureARB
  • data len: imageSize

pub unsafe fn CopyBufferSubData(
    &self,
    readTarget: CopyBufferSubDataTarget,
    writeTarget: CopyBufferSubDataTarget,
    readOffset: isize,
    writeOffset: isize,
    size: isize
)
[src]

glCopyBufferSubData

  • readTarget group: CopyBufferSubDataTarget
  • writeTarget group: CopyBufferSubDataTarget
  • readOffset group: BufferOffset
  • writeOffset group: BufferOffset
  • size 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]

glCopyTexImage1D

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • x group: WinCoord
  • y group: WinCoord
  • border 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]

glCopyTexImage2D

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • x group: WinCoord
  • y group: WinCoord
  • border 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]

glCopyTexSubImage1D

  • target group: TextureTarget
  • level group: CheckedInt32
  • xoffset group: CheckedInt32
  • x group: WinCoord
  • y 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]

glCopyTexSubImage2D

  • target group: TextureTarget
  • level group: CheckedInt32
  • xoffset group: CheckedInt32
  • yoffset group: CheckedInt32
  • x group: WinCoord
  • y 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]

glCopyTexSubImage3D

  • target group: TextureTarget
  • level group: CheckedInt32
  • xoffset group: CheckedInt32
  • yoffset group: CheckedInt32
  • zoffset group: CheckedInt32
  • x group: WinCoord
  • y group: WinCoord

pub fn CreateProgram(&self) -> c_uint[src]

glCreateProgram

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]

glCreateShader

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: buffer
  • buffers len: n

pub unsafe fn DeleteFramebuffers(&self, n: c_int, framebuffers: *const c_uint)[src]

glDeleteFramebuffers

  • framebuffers class: framebuffer
  • framebuffers len: n

pub fn DeleteProgram(&self, program: c_uint)[src]

glDeleteProgram

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: query
  • ids len: n

pub unsafe fn DeleteRenderbuffers(&self, n: c_int, renderbuffers: *const c_uint)[src]

glDeleteRenderbuffers

  • renderbuffers class: renderbuffer
  • renderbuffers len: n

pub unsafe fn DeleteSamplers(&self, count: c_int, samplers: *const c_uint)[src]

glDeleteSamplers

  • samplers class: sampler
  • samplers len: count

pub fn DeleteShader(&self, shader: c_uint)[src]

glDeleteShader

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: sync
  • sync class: sync

pub unsafe fn DeleteTextures(&self, n: c_int, textures: *const c_uint)[src]

glDeleteTextures

  • textures group: Texture
  • textures class: texture
  • textures len: n

pub unsafe fn DeleteVertexArrays(&self, n: c_int, arrays: *const c_uint)[src]

glDeleteVertexArrays

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 list
  • arrays 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: program
  • shader 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]

glDrawArrays

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]

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: DrawBufferMode
  • bufs len: n

pub unsafe fn DrawElements(
    &self,
    mode: PrimitiveType,
    count: c_int,
    type_: DrawElementsType,
    indices: *const c_void
)
[src]

glDrawElements

  • mode group: PrimitiveType
  • type group: DrawElementsType
  • indices len: COMPSIZE(count,type)

pub unsafe fn DrawElementsBaseVertex(
    &self,
    mode: PrimitiveType,
    count: c_int,
    type_: DrawElementsType,
    indices: *const c_void,
    basevertex: c_int
)
[src]

glDrawElementsBaseVertex

  • mode group: PrimitiveType
  • type group: DrawElementsType
  • indices len: COMPSIZE(count,type)

pub unsafe fn DrawElementsInstanced(
    &self,
    mode: PrimitiveType,
    count: c_int,
    type_: DrawElementsType,
    indices: *const c_void,
    instancecount: c_int
)
[src]

glDrawElementsInstanced

  • mode group: PrimitiveType
  • type group: DrawElementsType
  • indices 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]

glDrawElementsInstancedBaseVertex

  • mode group: PrimitiveType
  • type group: DrawElementsType
  • indices 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]

glDrawRangeElements

  • mode group: PrimitiveType
  • type group: DrawElementsType
  • indices 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]

glDrawRangeElementsBaseVertex

  • mode group: PrimitiveType
  • type group: DrawElementsType
  • indices 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]

glFenceSync

  • condition group: SyncCondition
  • flags 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]

glFlushMappedBufferRange

  • target group: BufferTargetARB
  • offset group: BufferOffset
  • length group: BufferSize

pub unsafe fn FramebufferRenderbuffer(
    &self,
    target: FramebufferTarget,
    attachment: FramebufferAttachment,
    renderbuffertarget: RenderbufferTarget,
    renderbuffer: c_uint
)
[src]

glFramebufferRenderbuffer

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • renderbuffertarget group: RenderbufferTarget
  • renderbuffer class: renderbuffer

pub unsafe fn FramebufferTexture(
    &self,
    target: FramebufferTarget,
    attachment: FramebufferAttachment,
    texture: c_uint,
    level: c_int
)
[src]

glFramebufferTexture

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • texture class: texture

pub unsafe fn FramebufferTexture1D(
    &self,
    target: FramebufferTarget,
    attachment: FramebufferAttachment,
    textarget: TextureTarget,
    texture: c_uint,
    level: c_int
)
[src]

glFramebufferTexture1D

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • textarget group: TextureTarget
  • texture class: texture

pub unsafe fn FramebufferTexture2D(
    &self,
    target: FramebufferTarget,
    attachment: FramebufferAttachment,
    textarget: TextureTarget,
    texture: c_uint,
    level: c_int
)
[src]

glFramebufferTexture2D

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • textarget group: TextureTarget
  • texture class: texture

pub unsafe fn FramebufferTexture3D(
    &self,
    target: FramebufferTarget,
    attachment: FramebufferAttachment,
    textarget: TextureTarget,
    texture: c_uint,
    level: c_int,
    zoffset: c_int
)
[src]

glFramebufferTexture3D

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • textarget group: TextureTarget
  • texture class: texture

pub unsafe fn FramebufferTextureLayer(
    &self,
    target: FramebufferTarget,
    attachment: FramebufferAttachment,
    texture: c_uint,
    level: c_int,
    layer: c_int
)
[src]

glFramebufferTextureLayer

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • texture group: Texture
  • texture class: texture
  • level group: CheckedInt32
  • layer 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: buffer
  • buffers len: n

pub unsafe fn GenFramebuffers(&self, n: c_int, framebuffers: *mut c_uint)[src]

glGenFramebuffers

  • framebuffers class: framebuffer
  • framebuffers len: n

pub unsafe fn GenQueries(&self, n: c_int, ids: *mut c_uint)[src]

glGenQueries

  • ids class: query
  • ids len: n

pub unsafe fn GenRenderbuffers(&self, n: c_int, renderbuffers: *mut c_uint)[src]

glGenRenderbuffers

  • renderbuffers class: renderbuffer
  • renderbuffers len: n

pub unsafe fn GenSamplers(&self, count: c_int, samplers: *mut c_uint)[src]

glGenSamplers

  • samplers class: sampler
  • samplers len: count

pub unsafe fn GenTextures(&self, n: c_int, textures: *mut c_uint)[src]

glGenTextures

  • textures group: Texture
  • textures class: texture
  • textures len: n

pub unsafe fn GenVertexArrays(&self, n: c_int, arrays: *mut c_uint)[src]

glGenVertexArrays

  • arrays class: vertex array
  • arrays 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]

glGetActiveAttrib

  • program class: program
  • type group: AttributeType
  • name 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]

glGetActiveUniform

  • program class: program
  • type group: UniformType
  • name len: bufSize

pub unsafe fn GetActiveUniformBlockName(
    &self,
    program: c_uint,
    uniformBlockIndex: c_uint,
    bufSize: c_int,
    length: *mut c_int,
    uniformBlockName: *mut u8
)
[src]

glGetActiveUniformBlockName

  • program class: program
  • uniformBlockName len: bufSize

pub unsafe fn GetActiveUniformBlockiv(
    &self,
    program: c_uint,
    uniformBlockIndex: c_uint,
    pname: UniformBlockPName,
    params: *mut c_int
)
[src]

glGetActiveUniformBlockiv

  • program class: program
  • pname group: UniformBlockPName
  • params 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]

glGetActiveUniformName

  • program class: program
  • uniformName len: bufSize

pub unsafe fn GetActiveUniformsiv(
    &self,
    program: c_uint,
    uniformCount: c_int,
    uniformIndices: *const c_uint,
    pname: UniformPName,
    params: *mut c_int
)
[src]

glGetActiveUniformsiv

  • program class: program
  • uniformIndices len: uniformCount
  • pname group: UniformPName
  • params len: COMPSIZE(uniformCount,pname)

pub unsafe fn GetAttachedShaders(
    &self,
    program: c_uint,
    maxCount: c_int,
    count: *mut c_int,
    shaders: *mut c_uint
)
[src]

glGetAttachedShaders

  • program class: program
  • shaders class: shader
  • shaders len: maxCount

pub unsafe fn GetAttribLocation(
    &self,
    program: c_uint,
    name: *const u8
) -> c_int
[src]

glGetAttribLocation

  • program class: program

pub unsafe fn GetBooleani_v(
    &self,
    target: BufferTargetARB,
    index: c_uint,
    data: *mut c_uchar
)
[src]

glGetBooleani_v

  • target group: BufferTargetARB
  • data group: Boolean
  • data len: COMPSIZE(target)

pub unsafe fn GetBooleanv(&self, pname: GetPName, data: *mut c_uchar)[src]

glGetBooleanv

  • pname group: GetPName
  • data group: Boolean
  • data len: COMPSIZE(pname)

pub unsafe fn GetBufferParameteri64v(
    &self,
    target: BufferTargetARB,
    pname: BufferPNameARB,
    params: *mut i64
)
[src]

glGetBufferParameteri64v

  • target group: BufferTargetARB
  • pname group: BufferPNameARB
  • params len: COMPSIZE(pname)

pub unsafe fn GetBufferParameteriv(
    &self,
    target: BufferTargetARB,
    pname: BufferPNameARB,
    params: *mut c_int
)
[src]

glGetBufferParameteriv

  • target group: BufferTargetARB
  • pname group: BufferPNameARB
  • params len: COMPSIZE(pname)

pub unsafe fn GetBufferPointerv(
    &self,
    target: BufferTargetARB,
    pname: BufferPointerNameARB,
    params: *mut *mut c_void
)
[src]

glGetBufferPointerv

  • target group: BufferTargetARB
  • pname group: BufferPointerNameARB

pub unsafe fn GetBufferSubData(
    &self,
    target: BufferTargetARB,
    offset: isize,
    size: isize,
    data: *mut c_void
)
[src]

glGetBufferSubData

  • target group: BufferTargetARB
  • offset group: BufferOffset
  • size group: BufferSize
  • data len: size

pub unsafe fn GetCompressedTexImage(
    &self,
    target: TextureTarget,
    level: c_int,
    img: *mut c_void
)
[src]

glGetCompressedTexImage

  • target group: TextureTarget
  • level group: CheckedInt32
  • img group: CompressedTextureARB
  • img len: COMPSIZE(target,level)

pub unsafe fn GetDoublev(&self, pname: GetPName, data: *mut c_double)[src]

glGetDoublev

  • pname group: GetPName
  • data 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: GetPName
  • data 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]

glGetFragDataLocation

  • program class: program
  • name len: COMPSIZE(name)

pub unsafe fn GetFramebufferAttachmentParameteriv(
    &self,
    target: FramebufferTarget,
    attachment: FramebufferAttachment,
    pname: FramebufferAttachmentParameterName,
    params: *mut c_int
)
[src]

glGetFramebufferAttachmentParameteriv

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • pname group: FramebufferAttachmentParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn GetInteger64i_v(
    &self,
    target: GetPName,
    index: c_uint,
    data: *mut i64
)
[src]

glGetInteger64i_v

  • target group: GetPName
  • data len: COMPSIZE(target)

pub unsafe fn GetInteger64v(&self, pname: GetPName, data: *mut i64)[src]

glGetInteger64v

  • pname group: GetPName
  • data len: COMPSIZE(pname)

pub unsafe fn GetIntegeri_v(
    &self,
    target: GetPName,
    index: c_uint,
    data: *mut c_int
)
[src]

glGetIntegeri_v

  • target group: GetPName
  • data len: COMPSIZE(target)

pub unsafe fn GetIntegerv(&self, pname: GetPName, data: *mut c_int)[src]

glGetIntegerv

  • pname group: GetPName
  • data len: COMPSIZE(pname)

pub unsafe fn GetMultisamplefv(
    &self,
    pname: GetMultisamplePNameNV,
    index: c_uint,
    val: *mut c_float
)
[src]

glGetMultisamplefv

  • pname group: GetMultisamplePNameNV
  • val len: COMPSIZE(pname)

pub unsafe fn GetProgramInfoLog(
    &self,
    program: c_uint,
    bufSize: c_int,
    length: *mut c_int,
    infoLog: *mut u8
)
[src]

glGetProgramInfoLog

  • program class: program
  • infoLog len: bufSize

pub unsafe fn GetProgramiv(
    &self,
    program: c_uint,
    pname: ProgramPropertyARB,
    params: *mut c_int
)
[src]

glGetProgramiv

  • program class: program
  • pname group: ProgramPropertyARB
  • params len: COMPSIZE(pname)

pub unsafe fn GetQueryObjecti64v(
    &self,
    id: c_uint,
    pname: QueryObjectParameterName,
    params: *mut i64
)
[src]

glGetQueryObjecti64v

  • id class: query
  • pname group: QueryObjectParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn GetQueryObjectiv(
    &self,
    id: c_uint,
    pname: QueryObjectParameterName,
    params: *mut c_int
)
[src]

glGetQueryObjectiv

  • id class: query
  • pname group: QueryObjectParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn GetQueryObjectui64v(
    &self,
    id: c_uint,
    pname: QueryObjectParameterName,
    params: *mut u64
)
[src]

glGetQueryObjectui64v

  • id class: query
  • pname group: QueryObjectParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn GetQueryObjectuiv(
    &self,
    id: c_uint,
    pname: QueryObjectParameterName,
    params: *mut c_uint
)
[src]

glGetQueryObjectuiv

  • id class: query
  • pname group: QueryObjectParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn GetQueryiv(
    &self,
    target: QueryTarget,
    pname: QueryParameterName,
    params: *mut c_int
)
[src]

glGetQueryiv

  • target group: QueryTarget
  • pname group: QueryParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn GetRenderbufferParameteriv(
    &self,
    target: RenderbufferTarget,
    pname: RenderbufferParameterName,
    params: *mut c_int
)
[src]

glGetRenderbufferParameteriv

  • target group: RenderbufferTarget
  • pname group: RenderbufferParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn GetSamplerParameterIiv(
    &self,
    sampler: c_uint,
    pname: SamplerParameterI,
    params: *mut c_int
)
[src]

glGetSamplerParameterIiv

  • sampler class: sampler
  • pname group: SamplerParameterI
  • params len: COMPSIZE(pname)

pub unsafe fn GetSamplerParameterIuiv(
    &self,
    sampler: c_uint,
    pname: SamplerParameterI,
    params: *mut c_uint
)
[src]

glGetSamplerParameterIuiv

  • sampler class: sampler
  • pname group: SamplerParameterI
  • params len: COMPSIZE(pname)

pub unsafe fn GetSamplerParameterfv(
    &self,
    sampler: c_uint,
    pname: SamplerParameterF,
    params: *mut c_float
)
[src]

glGetSamplerParameterfv

  • sampler class: sampler
  • pname group: SamplerParameterF
  • params len: COMPSIZE(pname)

pub unsafe fn GetSamplerParameteriv(
    &self,
    sampler: c_uint,
    pname: SamplerParameterI,
    params: *mut c_int
)
[src]

glGetSamplerParameteriv

  • sampler class: sampler
  • pname group: SamplerParameterI
  • params len: COMPSIZE(pname)

pub unsafe fn GetShaderInfoLog(
    &self,
    shader: c_uint,
    bufSize: c_int,
    length: *mut c_int,
    infoLog: *mut u8
)
[src]

glGetShaderInfoLog

  • shader class: shader
  • infoLog len: bufSize

pub unsafe fn GetShaderSource(
    &self,
    shader: c_uint,
    bufSize: c_int,
    length: *mut c_int,
    source: *mut u8
)
[src]

glGetShaderSource

  • shader class: shader
  • source len: bufSize

pub unsafe fn GetShaderiv(
    &self,
    shader: c_uint,
    pname: ShaderParameterName,
    params: *mut c_int
)
[src]

glGetShaderiv

  • shader class: shader
  • pname group: ShaderParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn GetString(&self, name: StringName) -> *const u8[src]

glGetString

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]

glGetStringi

Gets indexed string info about the GL implementation.

  • name: One of:
    • GL_EXTENSIONS: Returns the name of the extension specified by index. Extensions are indexed in the range 0 .. GL_NUM_EXTENSIONS. Use glGetIntegerv 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]

glGetSynciv

  • sync group: sync
  • sync class: sync
  • pname group: SyncParameterName
  • values len: count

pub unsafe fn GetTexImage(
    &self,
    target: TextureTarget,
    level: c_int,
    format: PixelFormat,
    type_: PixelType,
    pixels: *mut c_void
)
[src]

glGetTexImage

  • target group: TextureTarget
  • level group: CheckedInt32
  • format group: PixelFormat
  • type group: PixelType
  • pixels len: COMPSIZE(target,level,format,type)

pub unsafe fn GetTexLevelParameterfv(
    &self,
    target: TextureTarget,
    level: c_int,
    pname: GetTextureParameter,
    params: *mut c_float
)
[src]

glGetTexLevelParameterfv

  • target group: TextureTarget
  • level group: CheckedInt32
  • pname group: GetTextureParameter
  • params len: COMPSIZE(pname)

pub unsafe fn GetTexLevelParameteriv(
    &self,
    target: TextureTarget,
    level: c_int,
    pname: GetTextureParameter,
    params: *mut c_int
)
[src]

glGetTexLevelParameteriv

  • target group: TextureTarget
  • level group: CheckedInt32
  • pname group: GetTextureParameter
  • params len: COMPSIZE(pname)

pub unsafe fn GetTexParameterIiv(
    &self,
    target: TextureTarget,
    pname: GetTextureParameter,
    params: *mut c_int
)
[src]

glGetTexParameterIiv

  • target group: TextureTarget
  • pname group: GetTextureParameter
  • params len: COMPSIZE(pname)

pub unsafe fn GetTexParameterIuiv(
    &self,
    target: TextureTarget,
    pname: GetTextureParameter,
    params: *mut c_uint
)
[src]

glGetTexParameterIuiv

  • target group: TextureTarget
  • pname group: GetTextureParameter
  • params len: COMPSIZE(pname)

pub unsafe fn GetTexParameterfv(
    &self,
    target: TextureTarget,
    pname: GetTextureParameter,
    params: *mut c_float
)
[src]

glGetTexParameterfv

  • target group: TextureTarget
  • pname group: GetTextureParameter
  • params len: COMPSIZE(pname)

pub unsafe fn GetTexParameteriv(
    &self,
    target: TextureTarget,
    pname: GetTextureParameter,
    params: *mut c_int
)
[src]

glGetTexParameteriv

  • target group: TextureTarget
  • pname group: GetTextureParameter
  • params 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]

glGetTransformFeedbackVarying

  • program class: program
  • type group: AttributeType
  • name len: bufSize

pub unsafe fn GetUniformBlockIndex(
    &self,
    program: c_uint,
    uniformBlockName: *const u8
) -> c_uint
[src]

glGetUniformBlockIndex

  • program class: program
  • uniformBlockName len: COMPSIZE()

pub unsafe fn GetUniformIndices(
    &self,
    program: c_uint,
    uniformCount: c_int,
    uniformNames: *const *const u8,
    uniformIndices: *mut c_uint
)
[src]

glGetUniformIndices

  • program class: program
  • uniformNames len: COMPSIZE(uniformCount)
  • uniformIndices len: COMPSIZE(uniformCount)

pub unsafe fn GetUniformLocation(
    &self,
    program: c_uint,
    name: *const u8
) -> c_int
[src]

glGetUniformLocation

  • program class: program

pub unsafe fn GetUniformfv(
    &self,
    program: c_uint,
    location: c_int,
    params: *mut c_float
)
[src]

glGetUniformfv

  • program class: program
  • params len: COMPSIZE(program,location)

pub unsafe fn GetUniformiv(
    &self,
    program: c_uint,
    location: c_int,
    params: *mut c_int
)
[src]

glGetUniformiv

  • program class: program
  • params len: COMPSIZE(program,location)

pub unsafe fn GetUniformuiv(
    &self,
    program: c_uint,
    location: c_int,
    params: *mut c_uint
)
[src]

glGetUniformuiv

  • program class: program
  • params len: COMPSIZE(program,location)

pub unsafe fn GetVertexAttribIiv(
    &self,
    index: c_uint,
    pname: VertexAttribEnum,
    params: *mut c_int
)
[src]

glGetVertexAttribIiv

  • pname group: VertexAttribEnum

pub unsafe fn GetVertexAttribIuiv(
    &self,
    index: c_uint,
    pname: VertexAttribEnum,
    params: *mut c_uint
)
[src]

glGetVertexAttribIuiv

  • pname group: VertexAttribEnum

pub unsafe fn GetVertexAttribPointerv(
    &self,
    index: c_uint,
    pname: VertexAttribPointerPropertyARB,
    pointer: *mut *mut c_void
)
[src]

glGetVertexAttribPointerv

  • pname group: VertexAttribPointerPropertyARB

pub unsafe fn GetVertexAttribdv(
    &self,
    index: c_uint,
    pname: VertexAttribPropertyARB,
    params: *mut [c_double; 4]
)
[src]

glGetVertexAttribdv

  • pname group: VertexAttribPropertyARB

pub unsafe fn GetVertexAttribfv(
    &self,
    index: c_uint,
    pname: VertexAttribPropertyARB,
    params: *mut [c_float; 4]
)
[src]

glGetVertexAttribfv

  • pname group: VertexAttribPropertyARB

pub unsafe fn GetVertexAttribiv(
    &self,
    index: c_uint,
    pname: VertexAttribPropertyARB,
    params: *mut [c_int; 4]
)
[src]

glGetVertexAttribiv

  • pname group: VertexAttribPropertyARB

pub unsafe fn Hint(&self, target: HintTarget, mode: HintMode)[src]

glHint

  • target group: HintTarget
  • mode 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: sync
  • sync class: sync

pub unsafe fn IsTexture(&self, texture: c_uint) -> c_uchar[src]

glIsTexture

  • texture group: Texture
  • texture 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]

glLinkProgram

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]

glMapBuffer

  • target group: BufferTargetARB
  • access group: BufferAccessARB

pub unsafe fn MapBufferRange(
    &self,
    target: BufferTargetARB,
    offset: isize,
    length: isize,
    access: GLbitfield
) -> *mut c_void
[src]

glMapBufferRange

  • target group: BufferTargetARB
  • offset group: BufferOffset
  • length group: BufferSize
  • access group: MapBufferAccessMask

pub unsafe fn MultiDrawArrays(
    &self,
    mode: PrimitiveType,
    first: *const c_int,
    count: *const c_int,
    drawcount: c_int
)
[src]

glMultiDrawArrays

  • mode group: PrimitiveType
  • first 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]

glMultiDrawElements

  • mode group: PrimitiveType
  • count len: COMPSIZE(drawcount)
  • type group: DrawElementsType
  • indices 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]

glMultiDrawElementsBaseVertex

  • mode group: PrimitiveType
  • count len: COMPSIZE(drawcount)
  • type group: DrawElementsType
  • indices len: COMPSIZE(drawcount)
  • basevertex len: COMPSIZE(drawcount)

pub unsafe fn PixelStoref(&self, pname: PixelStoreParameter, param: c_float)[src]

glPixelStoref

  • pname group: PixelStoreParameter
  • param group: CheckedFloat32

pub unsafe fn PixelStorei(&self, pname: PixelStoreParameter, param: c_int)[src]

glPixelStorei

  • pname group: PixelStoreParameter
  • param group: CheckedInt32

pub unsafe fn PointParameterf(
    &self,
    pname: PointParameterNameARB,
    param: c_float
)
[src]

glPointParameterf

  • pname group: PointParameterNameARB
  • param group: CheckedFloat32

pub unsafe fn PointParameterfv(
    &self,
    pname: PointParameterNameARB,
    params: *const c_float
)
[src]

glPointParameterfv

  • pname group: PointParameterNameARB
  • params group: CheckedFloat32
  • params 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]

glPointParameteriv

  • pname group: PointParameterNameARB
  • params len: COMPSIZE(pname)

pub fn PointSize(&self, size: c_float)[src]

glPointSize

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: MaterialFace
  • mode 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: query
  • target 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]

glReadPixels

  • x group: WinCoord
  • y group: WinCoord
  • format group: PixelFormat
  • type group: PixelType
  • pixels len: COMPSIZE(format,type,width,height)

pub unsafe fn RenderbufferStorage(
    &self,
    target: RenderbufferTarget,
    internalformat: InternalFormat,
    width: c_int,
    height: c_int
)
[src]

glRenderbufferStorage

  • target group: RenderbufferTarget
  • internalformat group: InternalFormat

pub unsafe fn RenderbufferStorageMultisample(
    &self,
    target: RenderbufferTarget,
    samples: c_int,
    internalformat: InternalFormat,
    width: c_int,
    height: c_int
)
[src]

glRenderbufferStorageMultisample

  • target group: RenderbufferTarget
  • internalformat 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]

glSamplerParameterIiv

  • sampler class: sampler
  • pname group: SamplerParameterI
  • param len: COMPSIZE(pname)

pub unsafe fn SamplerParameterIuiv(
    &self,
    sampler: c_uint,
    pname: SamplerParameterI,
    param: *const c_uint
)
[src]

glSamplerParameterIuiv

  • sampler class: sampler
  • pname group: SamplerParameterI
  • param len: COMPSIZE(pname)

pub unsafe fn SamplerParameterf(
    &self,
    sampler: c_uint,
    pname: SamplerParameterF,
    param: c_float
)
[src]

glSamplerParameterf

  • sampler class: sampler
  • pname group: SamplerParameterF

pub unsafe fn SamplerParameterfv(
    &self,
    sampler: c_uint,
    pname: SamplerParameterF,
    param: *const c_float
)
[src]

glSamplerParameterfv

  • sampler class: sampler
  • pname group: SamplerParameterF
  • param len: COMPSIZE(pname)

pub unsafe fn SamplerParameteri(
    &self,
    sampler: c_uint,
    pname: SamplerParameterI,
    param: c_int
)
[src]

glSamplerParameteri

  • sampler class: sampler
  • pname group: SamplerParameterI

pub unsafe fn SamplerParameteriv(
    &self,
    sampler: c_uint,
    pname: SamplerParameterI,
    param: *const c_int
)
[src]

glSamplerParameteriv

  • sampler class: sampler
  • pname group: SamplerParameterI
  • param len: COMPSIZE(pname)

pub unsafe fn Scissor(&self, x: c_int, y: c_int, width: c_int, height: c_int)[src]

glScissor

  • x group: WinCoord
  • y group: WinCoord

pub unsafe fn ShaderSource(
    &self,
    shader: c_uint,
    count: c_int,
    string: *const *const u8,
    length: *const c_int
)
[src]

glShaderSource

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 the string and length 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 in string (or negative if that entry is null-termiated). if length is null then all strings in string must each be null-termianted.

pub unsafe fn StencilFunc(
    &self,
    func: StencilFunction,
    ref_: c_int,
    mask: c_uint
)
[src]

glStencilFunc

  • func group: StencilFunction
  • ref group: StencilValue
  • mask group: MaskedStencilValue

pub unsafe fn StencilFuncSeparate(
    &self,
    face: StencilFaceDirection,
    func: StencilFunction,
    ref_: c_int,
    mask: c_uint
)
[src]

glStencilFuncSeparate

  • face group: StencilFaceDirection
  • func group: StencilFunction
  • ref group: StencilValue
  • mask 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]

glStencilMaskSeparate

  • face group: StencilFaceDirection
  • mask group: MaskedStencilValue

pub unsafe fn StencilOp(
    &self,
    fail: StencilOp,
    zfail: StencilOp,
    zpass: StencilOp
)
[src]

glStencilOp

  • fail group: StencilOp
  • zfail group: StencilOp
  • zpass group: StencilOp

pub unsafe fn StencilOpSeparate(
    &self,
    face: StencilFaceDirection,
    sfail: StencilOp,
    dpfail: StencilOp,
    dppass: StencilOp
)
[src]

glStencilOpSeparate

  • face group: StencilFaceDirection
  • sfail group: StencilOp
  • dpfail group: StencilOp
  • dppass group: StencilOp

pub unsafe fn TexBuffer(
    &self,
    target: TextureTarget,
    internalformat: InternalFormat,
    buffer: c_uint
)
[src]

glTexBuffer

  • target group: TextureTarget
  • internalformat group: InternalFormat
  • buffer 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]

glTexImage1D

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • border group: CheckedInt32
  • format group: PixelFormat
  • type group: PixelType
  • pixels 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]

glTexImage2D

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • border group: CheckedInt32
  • format group: PixelFormat
  • type group: PixelType
  • pixels 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]

glTexImage2DMultisample

  • target group: TextureTarget
  • internalformat group: InternalFormat
  • fixedsamplelocations 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]

glTexImage3D

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • border group: CheckedInt32
  • format group: PixelFormat
  • type group: PixelType
  • pixels 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]

glTexImage3DMultisample

  • target group: TextureTarget
  • internalformat group: InternalFormat
  • fixedsamplelocations group: Boolean

pub unsafe fn TexParameterIiv(
    &self,
    target: TextureTarget,
    pname: TextureParameterName,
    params: *const c_int
)
[src]

glTexParameterIiv

  • target group: TextureTarget
  • pname group: TextureParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn TexParameterIuiv(
    &self,
    target: TextureTarget,
    pname: TextureParameterName,
    params: *const c_uint
)
[src]

glTexParameterIuiv

  • target group: TextureTarget
  • pname group: TextureParameterName
  • params len: COMPSIZE(pname)

pub unsafe fn TexParameterf(
    &self,
    target: TextureTarget,
    pname: TextureParameterName,
    param: c_float
)
[src]

glTexParameterf

  • target group: TextureTarget
  • pname group: TextureParameterName
  • param group: CheckedFloat32

pub unsafe fn TexParameterfv(
    &self,
    target: TextureTarget,
    pname: TextureParameterName,
    params: *const c_float
)
[src]

glTexParameterfv

  • target group: TextureTarget
  • pname group: TextureParameterName
  • params group: CheckedFloat32
  • params len: COMPSIZE(pname)

pub unsafe fn TexParameteri(
    &self,
    target: TextureTarget,
    pname: TextureParameterName,
    param: c_int
)
[src]

glTexParameteri

  • target group: TextureTarget
  • pname group: TextureParameterName
  • param group: CheckedInt32

pub unsafe fn TexParameteriv(
    &self,
    target: TextureTarget,
    pname: TextureParameterName,
    params: *const c_int
)
[src]

glTexParameteriv

  • target group: TextureTarget
  • pname group: TextureParameterName
  • params group: CheckedInt32
  • params 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]

glTexSubImage1D

  • target group: TextureTarget
  • level group: CheckedInt32
  • xoffset group: CheckedInt32
  • format group: PixelFormat
  • type group: PixelType
  • pixels 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]

glTexSubImage2D

  • target group: TextureTarget
  • level group: CheckedInt32
  • xoffset group: CheckedInt32
  • yoffset group: CheckedInt32
  • format group: PixelFormat
  • type group: PixelType
  • pixels 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]

glTexSubImage3D

  • target group: TextureTarget
  • level group: CheckedInt32
  • xoffset group: CheckedInt32
  • yoffset group: CheckedInt32
  • zoffset group: CheckedInt32
  • format group: PixelFormat
  • type group: PixelType
  • pixels 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]

glTransformFeedbackVaryings

  • program class: program
  • varyings len: count
  • bufferMode 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]

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]

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]

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]

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]

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]

glUniform2uiv

  • value len: count*2

pub unsafe fn Uniform3f(
    &self,
    location: c_int,
    v0: c_float,
    v1: c_float,
    v2: c_float
)
[src]

glUniform3f

pub unsafe fn Uniform3fv(
    &self,
    location: c_int,
    count: c_int,
    value: *const c_float
)
[src]

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]

glUniform3iv

  • value len: count*3

pub unsafe fn Uniform3ui(
    &self,
    location: c_int,
    v0: c_uint,
    v1: c_uint,
    v2: c_uint
)
[src]

glUniform3ui

pub unsafe fn Uniform3uiv(
    &self,
    location: c_int,
    count: c_int,
    value: *const c_uint
)
[src]

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]

glUniform4f

pub unsafe fn Uniform4fv(
    &self,
    location: c_int,
    count: c_int,
    value: *const c_float
)
[src]

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]

glUniform4i

pub unsafe fn Uniform4iv(
    &self,
    location: c_int,
    count: c_int,
    value: *const c_int
)
[src]

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]

glUniform4ui

pub unsafe fn Uniform4uiv(
    &self,
    location: c_int,
    count: c_int,
    value: *const c_uint
)
[src]

glUniform4uiv

  • value len: count*4

pub unsafe fn UniformBlockBinding(
    &self,
    program: c_uint,
    uniformBlockIndex: c_uint,
    uniformBlockBinding: c_uint
)
[src]

glUniformBlockBinding

  • program class: program

pub unsafe fn UniformMatrix2fv(
    &self,
    location: c_int,
    count: c_int,
    transpose: c_uchar,
    value: *const c_float
)
[src]

glUniformMatrix2fv

  • transpose group: Boolean
  • value len: count*4

pub unsafe fn UniformMatrix2x3fv(
    &self,
    location: c_int,
    count: c_int,
    transpose: c_uchar,
    value: *const c_float
)
[src]

glUniformMatrix2x3fv

  • transpose group: Boolean
  • value len: count*6

pub unsafe fn UniformMatrix2x4fv(
    &self,
    location: c_int,
    count: c_int,
    transpose: c_uchar,
    value: *const c_float
)
[src]

glUniformMatrix2x4fv

  • transpose group: Boolean
  • value len: count*8

pub unsafe fn UniformMatrix3fv(
    &self,
    location: c_int,
    count: c_int,
    transpose: c_uchar,
    value: *const c_float
)
[src]

glUniformMatrix3fv

  • transpose group: Boolean
  • value len: count*9

pub unsafe fn UniformMatrix3x2fv(
    &self,
    location: c_int,
    count: c_int,
    transpose: c_uchar,
    value: *const c_float
)
[src]

glUniformMatrix3x2fv

  • transpose group: Boolean
  • value len: count*6

pub unsafe fn UniformMatrix3x4fv(
    &self,
    location: c_int,
    count: c_int,
    transpose: c_uchar,
    value: *const c_float
)
[src]

glUniformMatrix3x4fv

  • transpose group: Boolean
  • value len: count*12

pub unsafe fn UniformMatrix4fv(
    &self,
    location: c_int,
    count: c_int,
    transpose: c_uchar,
    value: *const c_float
)
[src]

glUniformMatrix4fv

  • transpose group: Boolean
  • value len: count*16

pub unsafe fn UniformMatrix4x2fv(
    &self,
    location: c_int,
    count: c_int,
    transpose: c_uchar,
    value: *const c_float
)
[src]

glUniformMatrix4x2fv

  • transpose group: Boolean
  • value len: count*8

pub unsafe fn UniformMatrix4x3fv(
    &self,
    location: c_int,
    count: c_int,
    transpose: c_uchar,
    value: *const c_float
)
[src]

glUniformMatrix4x3fv

  • transpose group: Boolean
  • value 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]

glUseProgram

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

glVertexAttribIPointer

  • type group: VertexAttribIType
  • pointer len: COMPSIZE(size,type,stride)

pub unsafe fn VertexAttribP1ui(
    &self,
    index: c_uint,
    type_: VertexAttribPointerType,
    normalized: c_uchar,
    value: c_uint
)
[src]

glVertexAttribP1ui

  • type group: VertexAttribPointerType
  • normalized group: Boolean

pub unsafe fn VertexAttribP1uiv(
    &self,
    index: c_uint,
    type_: VertexAttribPointerType,
    normalized: c_uchar,
    value: *const c_uint
)
[src]

glVertexAttribP1uiv

  • type group: VertexAttribPointerType
  • normalized group: Boolean

pub unsafe fn VertexAttribP2ui(
    &self,
    index: c_uint,
    type_: VertexAttribPointerType,
    normalized: c_uchar,
    value: c_uint
)
[src]

glVertexAttribP2ui

  • type group: VertexAttribPointerType
  • normalized group: Boolean

pub unsafe fn VertexAttribP2uiv(
    &self,
    index: c_uint,
    type_: VertexAttribPointerType,
    normalized: c_uchar,
    value: *const c_uint
)
[src]

glVertexAttribP2uiv

  • type group: VertexAttribPointerType
  • normalized group: Boolean

pub unsafe fn VertexAttribP3ui(
    &self,
    index: c_uint,
    type_: VertexAttribPointerType,
    normalized: c_uchar,
    value: c_uint
)
[src]

glVertexAttribP3ui

  • type group: VertexAttribPointerType
  • normalized group: Boolean

pub unsafe fn VertexAttribP3uiv(
    &self,
    index: c_uint,
    type_: VertexAttribPointerType,
    normalized: c_uchar,
    value: *const c_uint
)
[src]

glVertexAttribP3uiv

  • type group: VertexAttribPointerType
  • normalized group: Boolean

pub unsafe fn VertexAttribP4ui(
    &self,
    index: c_uint,
    type_: VertexAttribPointerType,
    normalized: c_uchar,
    value: c_uint
)
[src]

glVertexAttribP4ui

  • type group: VertexAttribPointerType
  • normalized group: Boolean

pub unsafe fn VertexAttribP4uiv(
    &self,
    index: c_uint,
    type_: VertexAttribPointerType,
    normalized: c_uchar,
    value: *const c_uint
)
[src]

glVertexAttribP4uiv

  • type group: VertexAttribPointerType
  • normalized 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]

glVertexAttribPointer

  • type group: VertexAttribPointerType
  • normalized group: Boolean
  • pointer 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: WinCoord
  • y group: WinCoord

pub unsafe fn WaitSync(&self, sync: GLsync, flags: GLbitfield, timeout: u64)[src]

glWaitSync

  • sync group: sync
  • sync class: sync
  • flags group: SyncBehaviorFlags

pub unsafe fn DebugMessageCallback(
    &self,
    callback: GLDEBUGPROC,
    userParam: *const c_void
)
[src]

glDebugMessageCallback

pub unsafe fn DebugMessageControl(
    &self,
    source: DebugSource,
    type_: DebugType,
    severity: DebugSeverity,
    count: c_int,
    ids: *const c_uint,
    enabled: c_uchar
)
[src]

glDebugMessageControl

  • source group: DebugSource
  • type group: DebugType
  • severity group: DebugSeverity
  • ids len: count
  • enabled group: Boolean

pub unsafe fn DebugMessageInsert(
    &self,
    source: DebugSource,
    type_: DebugType,
    id: c_uint,
    severity: DebugSeverity,
    length: c_int,
    buf: *const u8
)
[src]

glDebugMessageInsert

  • source group: DebugSource
  • type group: DebugType
  • severity group: DebugSeverity
  • buf 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]

glGetDebugMessageLog

  • sources group: DebugSource
  • sources len: count
  • types group: DebugType
  • types len: count
  • ids len: count
  • severities group: DebugSeverity
  • severities len: count
  • lengths len: count
  • messageLog len: bufSize

pub unsafe fn GetObjectLabel(
    &self,
    identifier: ObjectIdentifier,
    name: c_uint,
    bufSize: c_int,
    length: *mut c_int,
    label: *mut u8
)
[src]

glGetObjectLabel

  • identifier group: ObjectIdentifier
  • label len: bufSize

pub unsafe fn GetObjectPtrLabel(
    &self,
    ptr: *const c_void,
    bufSize: c_int,
    length: *mut c_int,
    label: *mut u8
)
[src]

glGetObjectPtrLabel

  • label len: bufSize

pub unsafe fn GetPointerv(
    &self,
    pname: GetPointervPName,
    params: *mut *mut c_void
)
[src]

glGetPointerv

  • pname group: GetPointervPName

pub unsafe fn ObjectLabel(
    &self,
    identifier: ObjectIdentifier,
    name: c_uint,
    length: c_int,
    label: *const u8
)
[src]

glObjectLabel

  • identifier group: ObjectIdentifier
  • label len: COMPSIZE(label,length)

pub unsafe fn ObjectPtrLabel(
    &self,
    ptr: *const c_void,
    length: c_int,
    label: *const u8
)
[src]

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]

glPushDebugGroup

  • source group: DebugSource
  • message 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.