Struct GlFns

Source
#[repr(C)]
pub struct GlFns { /* private fields */ }
Expand description

This holds the many, many function pointers for GL.

It’s typically quite large (hundreds of pointers), depending on what API level and extensions you selected during the generation.

Implementations§

Source§

impl GlFns

Source

pub unsafe fn load_with<F>(get_proc_address: F) -> Self

Constructs a new struct with all pointers loaded by the get_proc_address given.

Source

pub unsafe fn ActiveTexture(&self, texture: GLenum)

glActiveTexture(texture)

  • texture group: TextureUnit
Source

pub unsafe fn AttachShader(&self, program: GLuint, shader: GLuint)

glAttachShader(program, shader)

Source

pub unsafe fn BeginQuery(&self, target: GLenum, id: GLuint)

glBeginQuery(target, id)

  • target group: QueryTarget
Source

pub unsafe fn BeginTransformFeedback(&self, primitiveMode: GLenum)

glBeginTransformFeedback(primitiveMode)

  • primitiveMode group: PrimitiveType
Source

pub unsafe fn BindAttribLocation( &self, program: GLuint, index: GLuint, name: *const GLchar, )

glBindAttribLocation(program, index, name)

Source

pub unsafe fn BindBuffer(&self, target: GLenum, buffer: GLuint)

glBindBuffer(target, buffer)

  • target group: BufferTargetARB
Source

pub unsafe fn BindBufferBase( &self, target: GLenum, index: GLuint, buffer: GLuint, )

glBindBufferBase(target, index, buffer)

  • target group: BufferTargetARB
Source

pub unsafe fn BindBufferRange( &self, target: GLenum, index: GLuint, buffer: GLuint, offset: GLintptr, size: GLsizeiptr, )

glBindBufferRange(target, index, buffer, offset, size)

  • target group: BufferTargetARB
  • offset group: BufferOffset
  • size group: BufferSize
Source

pub unsafe fn BindFramebuffer(&self, target: GLenum, framebuffer: GLuint)

glBindFramebuffer(target, framebuffer)

  • target group: FramebufferTarget
Source

pub unsafe fn BindRenderbuffer(&self, target: GLenum, renderbuffer: GLuint)

glBindRenderbuffer(target, renderbuffer)

  • target group: RenderbufferTarget
Source

pub unsafe fn BindSampler(&self, unit: GLuint, sampler: GLuint)

glBindSampler(unit, sampler)

Source

pub unsafe fn BindTexture(&self, target: GLenum, texture: GLuint)

glBindTexture(target, texture)

  • target group: TextureTarget
  • texture group: Texture
Source

pub unsafe fn BindTransformFeedback(&self, target: GLenum, id: GLuint)

glBindTransformFeedback(target, id)

  • target group: BindTransformFeedbackTarget
Source

pub unsafe fn BindVertexArray(&self, array: GLuint)

Source

pub unsafe fn BlendColor( &self, red: GLfloat, green: GLfloat, blue: GLfloat, alpha: GLfloat, )

glBlendColor(red, green, blue, alpha)

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

pub unsafe fn BlendEquation(&self, mode: GLenum)

glBlendEquation(mode)

  • mode group: BlendEquationModeEXT
Source

pub unsafe fn BlendEquationSeparate(&self, modeRGB: GLenum, modeAlpha: GLenum)

glBlendEquationSeparate(modeRGB, modeAlpha)

  • modeRGB group: BlendEquationModeEXT
  • modeAlpha group: BlendEquationModeEXT
Source

pub unsafe fn BlendFunc(&self, sfactor: GLenum, dfactor: GLenum)

glBlendFunc(sfactor, dfactor)

  • sfactor group: BlendingFactor
  • dfactor group: BlendingFactor
Source

pub unsafe fn BlendFuncSeparate( &self, sfactorRGB: GLenum, dfactorRGB: GLenum, sfactorAlpha: GLenum, dfactorAlpha: GLenum, )

glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha)

  • sfactorRGB group: BlendingFactor
  • dfactorRGB group: BlendingFactor
  • sfactorAlpha group: BlendingFactor
  • dfactorAlpha group: BlendingFactor
Source

pub unsafe fn BlitFramebuffer( &self, srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum, )

glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter)

  • mask group: ClearBufferMask
  • filter group: BlitFramebufferFilter
Source

pub unsafe fn BufferData( &self, target: GLenum, size: GLsizeiptr, data: *const c_void, usage: GLenum, )

glBufferData(target, size, data, usage)

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

pub unsafe fn BufferSubData( &self, target: GLenum, offset: GLintptr, size: GLsizeiptr, data: *const c_void, )

glBufferSubData(target, offset, size, data)

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

pub unsafe fn CheckFramebufferStatus(&self, target: GLenum) -> GLenum

glCheckFramebufferStatus(target)

  • target group: FramebufferTarget
  • return value group: FramebufferStatus
Source

pub unsafe fn Clear(&self, mask: GLbitfield)

glClear(mask)

  • mask group: ClearBufferMask
Source

pub unsafe fn ClearBufferfi( &self, buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint, )

glClearBufferfi(buffer, drawbuffer, depth, stencil)

  • buffer group: Buffer
  • drawbuffer group: DrawBufferName
Source

pub unsafe fn ClearBufferfv( &self, buffer: GLenum, drawbuffer: GLint, value: *const GLfloat, )

glClearBufferfv(buffer, drawbuffer, value)

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

pub unsafe fn ClearBufferiv( &self, buffer: GLenum, drawbuffer: GLint, value: *const GLint, )

glClearBufferiv(buffer, drawbuffer, value)

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

pub unsafe fn ClearBufferuiv( &self, buffer: GLenum, drawbuffer: GLint, value: *const GLuint, )

glClearBufferuiv(buffer, drawbuffer, value)

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

pub unsafe fn ClearColor( &self, red: GLfloat, green: GLfloat, blue: GLfloat, alpha: GLfloat, )

glClearColor(red, green, blue, alpha)

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

pub unsafe fn ClearDepthf(&self, d: GLfloat)

Source

pub unsafe fn ClearStencil(&self, s: GLint)

glClearStencil(s)

  • s group: StencilValue
Source

pub unsafe fn ClientWaitSync( &self, sync: GLsync, flags: GLbitfield, timeout: GLuint64, ) -> GLenum

glClientWaitSync(sync, flags, timeout)

  • sync group: sync
  • flags group: SyncObjectMask
  • return value group: SyncStatus
Source

pub unsafe fn ColorMask( &self, red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean, )

glColorMask(red, green, blue, alpha)

Source

pub unsafe fn CompileShader(&self, shader: GLuint)

Source

pub unsafe fn CompressedTexImage2D( &self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, data: *const c_void, )

glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data)

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • border group: CheckedInt32
  • data group: CompressedTextureARB
  • data len: imageSize
Source

pub unsafe fn CompressedTexImage3D( &self, target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, data: *const c_void, )

glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data)

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • border group: CheckedInt32
  • data group: CompressedTextureARB
  • data len: imageSize
Source

pub unsafe fn CompressedTexSubImage2D( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, data: *const c_void, )

glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data)

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

pub unsafe fn CompressedTexSubImage3D( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, data: *const c_void, )

glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data)

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

pub unsafe fn CopyBufferSubData( &self, readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr, )

glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size)

  • readTarget group: CopyBufferSubDataTarget
  • writeTarget group: CopyBufferSubDataTarget
  • readOffset group: BufferOffset
  • writeOffset group: BufferOffset
  • size group: BufferSize
Source

pub unsafe fn CopyTexImage2D( &self, target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint, )

glCopyTexImage2D(target, level, internalformat, x, y, width, height, border)

  • target group: TextureTarget
  • level group: CheckedInt32
  • internalformat group: InternalFormat
  • x group: WinCoord
  • y group: WinCoord
  • border group: CheckedInt32
Source

pub unsafe fn CopyTexSubImage2D( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei, )

glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)

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

pub unsafe fn CopyTexSubImage3D( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei, )

glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height)

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

pub unsafe fn CreateProgram(&self) -> GLuint

Source

pub unsafe fn CreateShader(&self, type_: GLenum) -> GLuint

glCreateShader(type_)

  • type_ group: ShaderType
Source

pub unsafe fn CullFace(&self, mode: GLenum)

glCullFace(mode)

  • mode group: CullFaceMode
Source

pub unsafe fn DebugMessageCallbackKHR( &self, callback: GLDEBUGPROCKHR, userParam: *const c_void, )

Available on crate feature GL_KHR_debug only.

glDebugMessageCallbackKHR(callback, userParam)

  • alias of: [glDebugMessageCallback]
Source

pub unsafe fn DebugMessageControlKHR( &self, source: GLenum, type_: GLenum, severity: GLenum, count: GLsizei, ids: *const GLuint, enabled: GLboolean, )

Available on crate feature GL_KHR_debug only.

glDebugMessageControlKHR(source, type_, severity, count, ids, enabled)

  • source group: DebugSource
  • type_ group: DebugType
  • severity group: DebugSeverity
  • alias of: [glDebugMessageControl]
Source

pub unsafe fn DebugMessageInsertKHR( &self, source: GLenum, type_: GLenum, id: GLuint, severity: GLenum, length: GLsizei, buf: *const GLchar, )

Available on crate feature GL_KHR_debug only.

glDebugMessageInsertKHR(source, type_, id, severity, length, buf)

  • source group: DebugSource
  • type_ group: DebugType
  • severity group: DebugSeverity
  • alias of: [glDebugMessageInsert]
Source

pub unsafe fn DeleteBuffers(&self, n: GLsizei, buffers: *const GLuint)

glDeleteBuffers(n, buffers)

  • buffers len: n
Source

pub unsafe fn DeleteFramebuffers(&self, n: GLsizei, framebuffers: *const GLuint)

glDeleteFramebuffers(n, framebuffers)

  • framebuffers len: n
Source

pub unsafe fn DeleteProgram(&self, program: GLuint)

glDeleteProgram(program)

Source

pub unsafe fn DeleteQueries(&self, n: GLsizei, ids: *const GLuint)

glDeleteQueries(n, ids)

  • ids len: n
Source

pub unsafe fn DeleteRenderbuffers( &self, n: GLsizei, renderbuffers: *const GLuint, )

glDeleteRenderbuffers(n, renderbuffers)

  • renderbuffers len: n
Source

pub unsafe fn DeleteSamplers(&self, count: GLsizei, samplers: *const GLuint)

glDeleteSamplers(count, samplers)

  • samplers len: count
Source

pub unsafe fn DeleteShader(&self, shader: GLuint)

Source

pub unsafe fn DeleteSync(&self, sync: GLsync)

glDeleteSync(sync)

  • sync group: sync
Source

pub unsafe fn DeleteTextures(&self, n: GLsizei, textures: *const GLuint)

glDeleteTextures(n, textures)

  • textures group: Texture
  • textures len: n
Source

pub unsafe fn DeleteTransformFeedbacks(&self, n: GLsizei, ids: *const GLuint)

glDeleteTransformFeedbacks(n, ids)

  • ids len: n
Source

pub unsafe fn DeleteVertexArrays(&self, n: GLsizei, arrays: *const GLuint)

glDeleteVertexArrays(n, arrays)

  • arrays len: n
Source

pub unsafe fn DepthFunc(&self, func: GLenum)

glDepthFunc(func)

  • func group: DepthFunction
Source

pub unsafe fn DepthMask(&self, flag: GLboolean)

Source

pub unsafe fn DepthRangef(&self, n: GLfloat, f: GLfloat)

Source

pub unsafe fn DetachShader(&self, program: GLuint, shader: GLuint)

glDetachShader(program, shader)

Source

pub unsafe fn Disable(&self, cap: GLenum)

glDisable(cap)

  • cap group: EnableCap
Source

pub unsafe fn DisableVertexAttribArray(&self, index: GLuint)

Source

pub unsafe fn DrawArrays(&self, mode: GLenum, first: GLint, count: GLsizei)

glDrawArrays(mode, first, count)

  • mode group: PrimitiveType
Source

pub unsafe fn DrawArraysInstanced( &self, mode: GLenum, first: GLint, count: GLsizei, instancecount: GLsizei, )

glDrawArraysInstanced(mode, first, count, instancecount)

  • mode group: PrimitiveType
Source

pub unsafe fn DrawBuffers(&self, n: GLsizei, bufs: *const GLenum)

glDrawBuffers(n, bufs)

  • bufs group: DrawBufferMode
  • bufs len: n
Source

pub unsafe fn DrawElements( &self, mode: GLenum, count: GLsizei, type_: GLenum, indices: *const c_void, )

glDrawElements(mode, count, type_, indices)

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

pub unsafe fn DrawElementsInstanced( &self, mode: GLenum, count: GLsizei, type_: GLenum, indices: *const c_void, instancecount: GLsizei, )

glDrawElementsInstanced(mode, count, type_, indices, instancecount)

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

pub unsafe fn DrawRangeElements( &self, mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type_: GLenum, indices: *const c_void, )

glDrawRangeElements(mode, start, end, count, type_, indices)

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

pub unsafe fn Enable(&self, cap: GLenum)

glEnable(cap)

  • cap group: EnableCap
Source

pub unsafe fn EnableVertexAttribArray(&self, index: GLuint)

Source

pub unsafe fn EndQuery(&self, target: GLenum)

glEndQuery(target)

  • target group: QueryTarget
Source

pub unsafe fn EndTransformFeedback(&self)

Source

pub unsafe fn FenceSync(&self, condition: GLenum, flags: GLbitfield) -> GLsync

glFenceSync(condition, flags)

  • condition group: SyncCondition
  • return value group: sync
Source

pub unsafe fn Finish(&self)

Source

pub unsafe fn Flush(&self)

Source

pub unsafe fn FlushMappedBufferRange( &self, target: GLenum, offset: GLintptr, length: GLsizeiptr, )

glFlushMappedBufferRange(target, offset, length)

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

pub unsafe fn FramebufferRenderbuffer( &self, target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: GLuint, )

glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • renderbuffertarget group: RenderbufferTarget
Source

pub unsafe fn FramebufferTexture2D( &self, target: GLenum, attachment: GLenum, textarget: GLenum, texture: GLuint, level: GLint, )

glFramebufferTexture2D(target, attachment, textarget, texture, level)

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • textarget group: TextureTarget
Source

pub unsafe fn FramebufferTextureLayer( &self, target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint, )

glFramebufferTextureLayer(target, attachment, texture, level, layer)

  • target group: FramebufferTarget
  • attachment group: FramebufferAttachment
  • texture group: Texture
  • level group: CheckedInt32
  • layer group: CheckedInt32
Source

pub unsafe fn FrontFace(&self, mode: GLenum)

glFrontFace(mode)

  • mode group: FrontFaceDirection
Source

pub unsafe fn GenBuffers(&self, n: GLsizei, buffers: *mut GLuint)

glGenBuffers(n, buffers)

  • buffers len: n
Source

pub unsafe fn GenFramebuffers(&self, n: GLsizei, framebuffers: *mut GLuint)

glGenFramebuffers(n, framebuffers)

  • framebuffers len: n
Source

pub unsafe fn GenQueries(&self, n: GLsizei, ids: *mut GLuint)

glGenQueries(n, ids)

  • ids len: n
Source

pub unsafe fn GenRenderbuffers(&self, n: GLsizei, renderbuffers: *mut GLuint)

glGenRenderbuffers(n, renderbuffers)

  • renderbuffers len: n
Source

pub unsafe fn GenSamplers(&self, count: GLsizei, samplers: *mut GLuint)

glGenSamplers(count, samplers)

  • samplers len: count
Source

pub unsafe fn GenTextures(&self, n: GLsizei, textures: *mut GLuint)

glGenTextures(n, textures)

  • textures group: Texture
  • textures len: n
Source

pub unsafe fn GenTransformFeedbacks(&self, n: GLsizei, ids: *mut GLuint)

glGenTransformFeedbacks(n, ids)

  • ids len: n
Source

pub unsafe fn GenVertexArrays(&self, n: GLsizei, arrays: *mut GLuint)

glGenVertexArrays(n, arrays)

  • arrays len: n
Source

pub unsafe fn GenerateMipmap(&self, target: GLenum)

glGenerateMipmap(target)

  • target group: TextureTarget
Source

pub unsafe fn GetActiveAttrib( &self, program: GLuint, index: GLuint, bufSize: GLsizei, length: *mut GLsizei, size: *mut GLint, type_: *mut GLenum, name: *mut GLchar, )

glGetActiveAttrib(program, index, bufSize, length, size, type_, name)

  • length len: 1
  • size len: 1
  • type_ group: AttributeType
  • type_ len: 1
  • name len: bufSize
Source

pub unsafe fn GetActiveUniform( &self, program: GLuint, index: GLuint, bufSize: GLsizei, length: *mut GLsizei, size: *mut GLint, type_: *mut GLenum, name: *mut GLchar, )

glGetActiveUniform(program, index, bufSize, length, size, type_, name)

  • length len: 1
  • size len: 1
  • type_ group: UniformType
  • type_ len: 1
  • name len: bufSize
Source

pub unsafe fn GetActiveUniformBlockName( &self, program: GLuint, uniformBlockIndex: GLuint, bufSize: GLsizei, length: *mut GLsizei, uniformBlockName: *mut GLchar, )

glGetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName)

  • length len: 1
  • uniformBlockName len: bufSize
Source

pub unsafe fn GetActiveUniformBlockiv( &self, program: GLuint, uniformBlockIndex: GLuint, pname: GLenum, params: *mut GLint, )

glGetActiveUniformBlockiv(program, uniformBlockIndex, pname, params)

  • pname group: UniformBlockPName
  • params len: COMPSIZE(program,uniformBlockIndex,pname)
Source

pub unsafe fn GetActiveUniformsiv( &self, program: GLuint, uniformCount: GLsizei, uniformIndices: *const GLuint, pname: GLenum, params: *mut GLint, )

glGetActiveUniformsiv(program, uniformCount, uniformIndices, pname, params)

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

pub unsafe fn GetAttachedShaders( &self, program: GLuint, maxCount: GLsizei, count: *mut GLsizei, shaders: *mut GLuint, )

glGetAttachedShaders(program, maxCount, count, shaders)

  • count len: 1
  • shaders len: maxCount
Source

pub unsafe fn GetAttribLocation( &self, program: GLuint, name: *const GLchar, ) -> GLint

glGetAttribLocation(program, name)

Source

pub unsafe fn GetBooleanv(&self, pname: GLenum, data: *mut GLboolean)

glGetBooleanv(pname, data)

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

pub unsafe fn GetBufferParameteri64v( &self, target: GLenum, pname: GLenum, params: *mut GLint64, )

glGetBufferParameteri64v(target, pname, params)

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

pub unsafe fn GetBufferParameteriv( &self, target: GLenum, pname: GLenum, params: *mut GLint, )

glGetBufferParameteriv(target, pname, params)

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

pub unsafe fn GetBufferPointerv( &self, target: GLenum, pname: GLenum, params: *mut *mut c_void, )

glGetBufferPointerv(target, pname, params)

  • target group: BufferTargetARB
  • pname group: BufferPointerNameARB
  • params len: 1
Source

pub unsafe fn GetDebugMessageLogKHR( &self, count: GLuint, bufSize: GLsizei, sources: *mut GLenum, types: *mut GLenum, ids: *mut GLuint, severities: *mut GLenum, lengths: *mut GLsizei, messageLog: *mut GLchar, ) -> GLuint

Available on crate feature GL_KHR_debug only.

glGetDebugMessageLogKHR(count, bufSize, sources, types, ids, severities, lengths, messageLog)

  • 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
  • alias of: [glGetDebugMessageLog]
Source

pub unsafe fn GetError(&self) -> GLenum

glGetError()

  • return value group: ErrorCode
Source

pub unsafe fn GetFloatv(&self, pname: GLenum, data: *mut GLfloat)

glGetFloatv(pname, data)

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

pub unsafe fn GetFragDataLocation( &self, program: GLuint, name: *const GLchar, ) -> GLint

glGetFragDataLocation(program, name)

  • name len: COMPSIZE(name)
Source

pub unsafe fn GetFramebufferAttachmentParameteriv( &self, target: GLenum, attachment: GLenum, pname: GLenum, params: *mut GLint, )

glGetFramebufferAttachmentParameteriv(target, attachment, pname, params)

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

pub unsafe fn GetInteger64i_v( &self, target: GLenum, index: GLuint, data: *mut GLint64, )

glGetInteger64i_v(target, index, data)

  • data len: COMPSIZE(target)
Source

pub unsafe fn GetInteger64v(&self, pname: GLenum, data: *mut GLint64)

glGetInteger64v(pname, data)

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

pub unsafe fn GetIntegeri_v( &self, target: GLenum, index: GLuint, data: *mut GLint, )

glGetIntegeri_v(target, index, data)

  • data len: COMPSIZE(target)
Source

pub unsafe fn GetIntegerv(&self, pname: GLenum, data: *mut GLint)

glGetIntegerv(pname, data)

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

pub unsafe fn GetInternalformativ( &self, target: GLenum, internalformat: GLenum, pname: GLenum, count: GLsizei, params: *mut GLint, )

glGetInternalformativ(target, internalformat, pname, count, params)

  • target group: TextureTarget
  • internalformat group: InternalFormat
  • pname group: InternalFormatPName
  • params len: count
Source

pub unsafe fn GetObjectLabelKHR( &self, identifier: GLenum, name: GLuint, bufSize: GLsizei, length: *mut GLsizei, label: *mut GLchar, )

Available on crate feature GL_KHR_debug only.

glGetObjectLabelKHR(identifier, name, bufSize, length, label)

  • label len: bufSize
  • alias of: [glGetObjectLabel]
Source

pub unsafe fn GetObjectPtrLabelKHR( &self, ptr: *const c_void, bufSize: GLsizei, length: *mut GLsizei, label: *mut GLchar, )

Available on crate feature GL_KHR_debug only.

glGetObjectPtrLabelKHR(ptr, bufSize, length, label)

  • length len: 1
  • label len: bufSize
  • alias of: [glGetObjectPtrLabel]
Source

pub unsafe fn GetPointervKHR(&self, pname: GLenum, params: *mut *mut c_void)

Available on crate feature GL_KHR_debug only.

glGetPointervKHR(pname, params)

  • alias of: [glGetPointerv]
Source

pub unsafe fn GetProgramBinary( &self, program: GLuint, bufSize: GLsizei, length: *mut GLsizei, binaryFormat: *mut GLenum, binary: *mut c_void, )

glGetProgramBinary(program, bufSize, length, binaryFormat, binary)

  • length len: 1
  • binaryFormat len: 1
  • binary len: bufSize
Source

pub unsafe fn GetProgramInfoLog( &self, program: GLuint, bufSize: GLsizei, length: *mut GLsizei, infoLog: *mut GLchar, )

glGetProgramInfoLog(program, bufSize, length, infoLog)

  • length len: 1
  • infoLog len: bufSize
Source

pub unsafe fn GetProgramiv( &self, program: GLuint, pname: GLenum, params: *mut GLint, )

glGetProgramiv(program, pname, params)

  • pname group: ProgramPropertyARB
  • params len: COMPSIZE(pname)
Source

pub unsafe fn GetQueryObjectuiv( &self, id: GLuint, pname: GLenum, params: *mut GLuint, )

glGetQueryObjectuiv(id, pname, params)

  • pname group: QueryObjectParameterName
  • params len: COMPSIZE(pname)
Source

pub unsafe fn GetQueryiv( &self, target: GLenum, pname: GLenum, params: *mut GLint, )

glGetQueryiv(target, pname, params)

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

pub unsafe fn GetRenderbufferParameteriv( &self, target: GLenum, pname: GLenum, params: *mut GLint, )

glGetRenderbufferParameteriv(target, pname, params)

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

pub unsafe fn GetSamplerParameterfv( &self, sampler: GLuint, pname: GLenum, params: *mut GLfloat, )

glGetSamplerParameterfv(sampler, pname, params)

  • pname group: SamplerParameterF
  • params len: COMPSIZE(pname)
Source

pub unsafe fn GetSamplerParameteriv( &self, sampler: GLuint, pname: GLenum, params: *mut GLint, )

glGetSamplerParameteriv(sampler, pname, params)

  • pname group: SamplerParameterI
  • params len: COMPSIZE(pname)
Source

pub unsafe fn GetShaderInfoLog( &self, shader: GLuint, bufSize: GLsizei, length: *mut GLsizei, infoLog: *mut GLchar, )

glGetShaderInfoLog(shader, bufSize, length, infoLog)

  • length len: 1
  • infoLog len: bufSize
Source

pub unsafe fn GetShaderPrecisionFormat( &self, shadertype: GLenum, precisiontype: GLenum, range: *mut GLint, precision: *mut GLint, )

glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision)

  • shadertype group: ShaderType
  • precisiontype group: PrecisionType
  • range len: 2
  • precision len: 1
Source

pub unsafe fn GetShaderSource( &self, shader: GLuint, bufSize: GLsizei, length: *mut GLsizei, source: *mut GLchar, )

glGetShaderSource(shader, bufSize, length, source)

  • length len: 1
  • source len: bufSize
Source

pub unsafe fn GetShaderiv( &self, shader: GLuint, pname: GLenum, params: *mut GLint, )

glGetShaderiv(shader, pname, params)

  • pname group: ShaderParameterName
  • params len: COMPSIZE(pname)
Source

pub unsafe fn GetString(&self, name: GLenum) -> *const GLubyte

glGetString(name)

  • name group: StringName
  • return value group: String
Source

pub unsafe fn GetStringi(&self, name: GLenum, index: GLuint) -> *const GLubyte

glGetStringi(name, index)

  • name group: StringName
  • return value group: String
Source

pub unsafe fn GetSynciv( &self, sync: GLsync, pname: GLenum, count: GLsizei, length: *mut GLsizei, values: *mut GLint, )

glGetSynciv(sync, pname, count, length, values)

  • sync group: sync
  • pname group: SyncParameterName
  • length len: 1
  • values len: count
Source

pub unsafe fn GetTexParameterfv( &self, target: GLenum, pname: GLenum, params: *mut GLfloat, )

glGetTexParameterfv(target, pname, params)

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

pub unsafe fn GetTexParameteriv( &self, target: GLenum, pname: GLenum, params: *mut GLint, )

glGetTexParameteriv(target, pname, params)

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

pub unsafe fn GetTransformFeedbackVarying( &self, program: GLuint, index: GLuint, bufSize: GLsizei, length: *mut GLsizei, size: *mut GLsizei, type_: *mut GLenum, name: *mut GLchar, )

glGetTransformFeedbackVarying(program, index, bufSize, length, size, type_, name)

  • length len: 1
  • size len: 1
  • type_ group: AttributeType
  • type_ len: 1
  • name len: bufSize
Source

pub unsafe fn GetUniformBlockIndex( &self, program: GLuint, uniformBlockName: *const GLchar, ) -> GLuint

glGetUniformBlockIndex(program, uniformBlockName)

  • uniformBlockName len: COMPSIZE()
Source

pub unsafe fn GetUniformIndices( &self, program: GLuint, uniformCount: GLsizei, uniformNames: *const *const GLchar, uniformIndices: *mut GLuint, )

glGetUniformIndices(program, uniformCount, uniformNames, uniformIndices)

  • uniformNames len: COMPSIZE(uniformCount)
  • uniformIndices len: COMPSIZE(uniformCount)
Source

pub unsafe fn GetUniformLocation( &self, program: GLuint, name: *const GLchar, ) -> GLint

glGetUniformLocation(program, name)

Source

pub unsafe fn GetUniformfv( &self, program: GLuint, location: GLint, params: *mut GLfloat, )

glGetUniformfv(program, location, params)

  • params len: COMPSIZE(program,location)
Source

pub unsafe fn GetUniformiv( &self, program: GLuint, location: GLint, params: *mut GLint, )

glGetUniformiv(program, location, params)

  • params len: COMPSIZE(program,location)
Source

pub unsafe fn GetUniformuiv( &self, program: GLuint, location: GLint, params: *mut GLuint, )

glGetUniformuiv(program, location, params)

  • params len: COMPSIZE(program,location)
Source

pub unsafe fn GetVertexAttribIiv( &self, index: GLuint, pname: GLenum, params: *mut GLint, )

glGetVertexAttribIiv(index, pname, params)

  • pname group: VertexAttribEnum
  • params len: 1
Source

pub unsafe fn GetVertexAttribIuiv( &self, index: GLuint, pname: GLenum, params: *mut GLuint, )

glGetVertexAttribIuiv(index, pname, params)

  • pname group: VertexAttribEnum
  • params len: 1
Source

pub unsafe fn GetVertexAttribPointerv( &self, index: GLuint, pname: GLenum, pointer: *mut *mut c_void, )

glGetVertexAttribPointerv(index, pname, pointer)

  • pname group: VertexAttribPointerPropertyARB
  • pointer len: 1
Source

pub unsafe fn GetVertexAttribfv( &self, index: GLuint, pname: GLenum, params: *mut GLfloat, )

glGetVertexAttribfv(index, pname, params)

  • pname group: VertexAttribPropertyARB
  • params len: 4
Source

pub unsafe fn GetVertexAttribiv( &self, index: GLuint, pname: GLenum, params: *mut GLint, )

glGetVertexAttribiv(index, pname, params)

  • pname group: VertexAttribPropertyARB
  • params len: 4
Source

pub unsafe fn Hint(&self, target: GLenum, mode: GLenum)

glHint(target, mode)

  • target group: HintTarget
  • mode group: HintMode
Source

pub unsafe fn InvalidateFramebuffer( &self, target: GLenum, numAttachments: GLsizei, attachments: *const GLenum, )

glInvalidateFramebuffer(target, numAttachments, attachments)

  • target group: FramebufferTarget
  • attachments group: InvalidateFramebufferAttachment
  • attachments len: numAttachments
Source

pub unsafe fn InvalidateSubFramebuffer( &self, target: GLenum, numAttachments: GLsizei, attachments: *const GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, )

glInvalidateSubFramebuffer(target, numAttachments, attachments, x, y, width, height)

  • target group: FramebufferTarget
  • attachments group: InvalidateFramebufferAttachment
  • attachments len: numAttachments
Source

pub unsafe fn IsBuffer(&self, buffer: GLuint) -> GLboolean

glIsBuffer(buffer)

Source

pub unsafe fn IsEnabled(&self, cap: GLenum) -> GLboolean

glIsEnabled(cap)

  • cap group: EnableCap
Source

pub unsafe fn IsFramebuffer(&self, framebuffer: GLuint) -> GLboolean

glIsFramebuffer(framebuffer)

Source

pub unsafe fn IsProgram(&self, program: GLuint) -> GLboolean

glIsProgram(program)

Source

pub unsafe fn IsQuery(&self, id: GLuint) -> GLboolean

Source

pub unsafe fn IsRenderbuffer(&self, renderbuffer: GLuint) -> GLboolean

glIsRenderbuffer(renderbuffer)

Source

pub unsafe fn IsSampler(&self, sampler: GLuint) -> GLboolean

glIsSampler(sampler)

Source

pub unsafe fn IsShader(&self, shader: GLuint) -> GLboolean

glIsShader(shader)

Source

pub unsafe fn IsSync(&self, sync: GLsync) -> GLboolean

glIsSync(sync)

  • sync group: sync
Source

pub unsafe fn IsTexture(&self, texture: GLuint) -> GLboolean

glIsTexture(texture)

  • texture group: Texture
Source

pub unsafe fn IsTransformFeedback(&self, id: GLuint) -> GLboolean

Source

pub unsafe fn IsVertexArray(&self, array: GLuint) -> GLboolean

Source

pub unsafe fn LineWidth(&self, width: GLfloat)

glLineWidth(width)

  • width group: CheckedFloat32
Source

pub unsafe fn LinkProgram(&self, program: GLuint)

glLinkProgram(program)

Source

pub unsafe fn MapBufferRange( &self, target: GLenum, offset: GLintptr, length: GLsizeiptr, access: GLbitfield, ) -> *mut c_void

glMapBufferRange(target, offset, length, access)

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

pub unsafe fn ObjectLabelKHR( &self, identifier: GLenum, name: GLuint, length: GLsizei, label: *const GLchar, )

Available on crate feature GL_KHR_debug only.

glObjectLabelKHR(identifier, name, length, label)

  • identifier group: ObjectIdentifier
  • alias of: [glObjectLabel]
Source

pub unsafe fn ObjectPtrLabelKHR( &self, ptr: *const c_void, length: GLsizei, label: *const GLchar, )

Available on crate feature GL_KHR_debug only.

glObjectPtrLabelKHR(ptr, length, label)

  • alias of: [glObjectPtrLabel]
Source

pub unsafe fn PauseTransformFeedback(&self)

Source

pub unsafe fn PixelStorei(&self, pname: GLenum, param: GLint)

glPixelStorei(pname, param)

  • pname group: PixelStoreParameter
  • param group: CheckedInt32
Source

pub unsafe fn PolygonOffset(&self, factor: GLfloat, units: GLfloat)

glPolygonOffset(factor, units)

Source

pub unsafe fn PopDebugGroupKHR(&self)

Available on crate feature GL_KHR_debug only.

glPopDebugGroupKHR()

  • alias of: [glPopDebugGroup]
Source

pub unsafe fn ProgramBinary( &self, program: GLuint, binaryFormat: GLenum, binary: *const c_void, length: GLsizei, )

glProgramBinary(program, binaryFormat, binary, length)

  • binary len: length
Source

pub unsafe fn ProgramParameteri( &self, program: GLuint, pname: GLenum, value: GLint, )

glProgramParameteri(program, pname, value)

  • pname group: ProgramParameterPName
Source

pub unsafe fn PushDebugGroupKHR( &self, source: GLenum, id: GLuint, length: GLsizei, message: *const GLchar, )

Available on crate feature GL_KHR_debug only.

glPushDebugGroupKHR(source, id, length, message)

  • source group: DebugSource
  • alias of: [glPushDebugGroup]
Source

pub unsafe fn ReadBuffer(&self, src: GLenum)

glReadBuffer(src)

  • src group: ReadBufferMode
Source

pub unsafe fn ReadPixels( &self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, pixels: *mut c_void, )

glReadPixels(x, y, width, height, format, type_, pixels)

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

pub unsafe fn ReleaseShaderCompiler(&self)

Source

pub unsafe fn RenderbufferStorage( &self, target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei, )

glRenderbufferStorage(target, internalformat, width, height)

  • target group: RenderbufferTarget
  • internalformat group: InternalFormat
Source

pub unsafe fn RenderbufferStorageMultisample( &self, target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, )

glRenderbufferStorageMultisample(target, samples, internalformat, width, height)

  • target group: RenderbufferTarget
  • internalformat group: InternalFormat
Source

pub unsafe fn ResumeTransformFeedback(&self)

Source

pub unsafe fn SampleCoverage(&self, value: GLfloat, invert: GLboolean)

glSampleCoverage(value, invert)

Source

pub unsafe fn SamplerParameterf( &self, sampler: GLuint, pname: GLenum, param: GLfloat, )

glSamplerParameterf(sampler, pname, param)

  • pname group: SamplerParameterF
Source

pub unsafe fn SamplerParameterfv( &self, sampler: GLuint, pname: GLenum, param: *const GLfloat, )

glSamplerParameterfv(sampler, pname, param)

  • pname group: SamplerParameterF
  • param len: COMPSIZE(pname)
Source

pub unsafe fn SamplerParameteri( &self, sampler: GLuint, pname: GLenum, param: GLint, )

glSamplerParameteri(sampler, pname, param)

  • pname group: SamplerParameterI
Source

pub unsafe fn SamplerParameteriv( &self, sampler: GLuint, pname: GLenum, param: *const GLint, )

glSamplerParameteriv(sampler, pname, param)

  • pname group: SamplerParameterI
  • param len: COMPSIZE(pname)
Source

pub unsafe fn Scissor( &self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, )

glScissor(x, y, width, height)

  • x group: WinCoord
  • y group: WinCoord
Source

pub unsafe fn ShaderBinary( &self, count: GLsizei, shaders: *const GLuint, binaryformat: GLenum, binary: *const c_void, length: GLsizei, )

glShaderBinary(count, shaders, binaryformat, binary, length)

  • shaders len: count
  • binary len: length
Source

pub unsafe fn ShaderSource( &self, shader: GLuint, count: GLsizei, string: *const *const GLchar, length: *const GLint, )

glShaderSource(shader, count, string, length)

  • string len: count
  • length len: count
Source

pub unsafe fn StencilFunc(&self, func: GLenum, ref_: GLint, mask: GLuint)

glStencilFunc(func, ref_, mask)

  • func group: StencilFunction
  • ref_ group: StencilValue
  • mask group: MaskedStencilValue
Source

pub unsafe fn StencilFuncSeparate( &self, face: GLenum, func: GLenum, ref_: GLint, mask: GLuint, )

glStencilFuncSeparate(face, func, ref_, mask)

  • face group: StencilFaceDirection
  • func group: StencilFunction
  • ref_ group: StencilValue
  • mask group: MaskedStencilValue
Source

pub unsafe fn StencilMask(&self, mask: GLuint)

glStencilMask(mask)

  • mask group: MaskedStencilValue
Source

pub unsafe fn StencilMaskSeparate(&self, face: GLenum, mask: GLuint)

glStencilMaskSeparate(face, mask)

  • face group: StencilFaceDirection
  • mask group: MaskedStencilValue
Source

pub unsafe fn StencilOp(&self, fail: GLenum, zfail: GLenum, zpass: GLenum)

glStencilOp(fail, zfail, zpass)

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

pub unsafe fn StencilOpSeparate( &self, face: GLenum, sfail: GLenum, dpfail: GLenum, dppass: GLenum, )

glStencilOpSeparate(face, sfail, dpfail, dppass)

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

pub unsafe fn TexImage2D( &self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, pixels: *const c_void, )

glTexImage2D(target, level, internalformat, width, height, border, format, type_, pixels)

  • 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)
Source

pub unsafe fn TexImage3D( &self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type_: GLenum, pixels: *const c_void, )

glTexImage3D(target, level, internalformat, width, height, depth, border, format, type_, pixels)

  • 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)
Source

pub unsafe fn TexParameterf( &self, target: GLenum, pname: GLenum, param: GLfloat, )

glTexParameterf(target, pname, param)

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

pub unsafe fn TexParameterfv( &self, target: GLenum, pname: GLenum, params: *const GLfloat, )

glTexParameterfv(target, pname, params)

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

pub unsafe fn TexParameteri(&self, target: GLenum, pname: GLenum, param: GLint)

glTexParameteri(target, pname, param)

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

pub unsafe fn TexParameteriv( &self, target: GLenum, pname: GLenum, params: *const GLint, )

glTexParameteriv(target, pname, params)

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

pub unsafe fn TexStorage2D( &self, target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, )

glTexStorage2D(target, levels, internalformat, width, height)

  • target group: TextureTarget
  • internalformat group: InternalFormat
Source

pub unsafe fn TexStorage3D( &self, target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, )

glTexStorage3D(target, levels, internalformat, width, height, depth)

  • target group: TextureTarget
  • internalformat group: InternalFormat
Source

pub unsafe fn TexSubImage2D( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, pixels: *const c_void, )

glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type_, pixels)

  • 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)
Source

pub unsafe fn TexSubImage3D( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type_: GLenum, pixels: *const c_void, )

glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type_, pixels)

  • 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)
Source

pub unsafe fn TransformFeedbackVaryings( &self, program: GLuint, count: GLsizei, varyings: *const *const GLchar, bufferMode: GLenum, )

glTransformFeedbackVaryings(program, count, varyings, bufferMode)

  • varyings len: count
  • bufferMode group: TransformFeedbackBufferMode
Source

pub unsafe fn Uniform1f(&self, location: GLint, v0: GLfloat)

glUniform1f(location, v0)

Source

pub unsafe fn Uniform1fv( &self, location: GLint, count: GLsizei, value: *const GLfloat, )

glUniform1fv(location, count, value)

  • value len: count*1
Source

pub unsafe fn Uniform1i(&self, location: GLint, v0: GLint)

glUniform1i(location, v0)

Source

pub unsafe fn Uniform1iv( &self, location: GLint, count: GLsizei, value: *const GLint, )

glUniform1iv(location, count, value)

  • value len: count*1
Source

pub unsafe fn Uniform1ui(&self, location: GLint, v0: GLuint)

glUniform1ui(location, v0)

Source

pub unsafe fn Uniform1uiv( &self, location: GLint, count: GLsizei, value: *const GLuint, )

glUniform1uiv(location, count, value)

  • value len: count*1
Source

pub unsafe fn Uniform2f(&self, location: GLint, v0: GLfloat, v1: GLfloat)

glUniform2f(location, v0, v1)

Source

pub unsafe fn Uniform2fv( &self, location: GLint, count: GLsizei, value: *const GLfloat, )

glUniform2fv(location, count, value)

  • value len: count*2
Source

pub unsafe fn Uniform2i(&self, location: GLint, v0: GLint, v1: GLint)

glUniform2i(location, v0, v1)

Source

pub unsafe fn Uniform2iv( &self, location: GLint, count: GLsizei, value: *const GLint, )

glUniform2iv(location, count, value)

  • value len: count*2
Source

pub unsafe fn Uniform2ui(&self, location: GLint, v0: GLuint, v1: GLuint)

glUniform2ui(location, v0, v1)

Source

pub unsafe fn Uniform2uiv( &self, location: GLint, count: GLsizei, value: *const GLuint, )

glUniform2uiv(location, count, value)

  • value len: count*2
Source

pub unsafe fn Uniform3f( &self, location: GLint, v0: GLfloat, v1: GLfloat, v2: GLfloat, )

glUniform3f(location, v0, v1, v2)

Source

pub unsafe fn Uniform3fv( &self, location: GLint, count: GLsizei, value: *const GLfloat, )

glUniform3fv(location, count, value)

  • value len: count*3
Source

pub unsafe fn Uniform3i(&self, location: GLint, v0: GLint, v1: GLint, v2: GLint)

glUniform3i(location, v0, v1, v2)

Source

pub unsafe fn Uniform3iv( &self, location: GLint, count: GLsizei, value: *const GLint, )

glUniform3iv(location, count, value)

  • value len: count*3
Source

pub unsafe fn Uniform3ui( &self, location: GLint, v0: GLuint, v1: GLuint, v2: GLuint, )

glUniform3ui(location, v0, v1, v2)

Source

pub unsafe fn Uniform3uiv( &self, location: GLint, count: GLsizei, value: *const GLuint, )

glUniform3uiv(location, count, value)

  • value len: count*3
Source

pub unsafe fn Uniform4f( &self, location: GLint, v0: GLfloat, v1: GLfloat, v2: GLfloat, v3: GLfloat, )

glUniform4f(location, v0, v1, v2, v3)

Source

pub unsafe fn Uniform4fv( &self, location: GLint, count: GLsizei, value: *const GLfloat, )

glUniform4fv(location, count, value)

  • value len: count*4
Source

pub unsafe fn Uniform4i( &self, location: GLint, v0: GLint, v1: GLint, v2: GLint, v3: GLint, )

glUniform4i(location, v0, v1, v2, v3)

Source

pub unsafe fn Uniform4iv( &self, location: GLint, count: GLsizei, value: *const GLint, )

glUniform4iv(location, count, value)

  • value len: count*4
Source

pub unsafe fn Uniform4ui( &self, location: GLint, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint, )

glUniform4ui(location, v0, v1, v2, v3)

Source

pub unsafe fn Uniform4uiv( &self, location: GLint, count: GLsizei, value: *const GLuint, )

glUniform4uiv(location, count, value)

  • value len: count*4
Source

pub unsafe fn UniformBlockBinding( &self, program: GLuint, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint, )

glUniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding)

Source

pub unsafe fn UniformMatrix2fv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLfloat, )

glUniformMatrix2fv(location, count, transpose, value)

  • value len: count*4
Source

pub unsafe fn UniformMatrix2x3fv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLfloat, )

glUniformMatrix2x3fv(location, count, transpose, value)

  • value len: count*6
Source

pub unsafe fn UniformMatrix2x4fv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLfloat, )

glUniformMatrix2x4fv(location, count, transpose, value)

  • value len: count*8
Source

pub unsafe fn UniformMatrix3fv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLfloat, )

glUniformMatrix3fv(location, count, transpose, value)

  • value len: count*9
Source

pub unsafe fn UniformMatrix3x2fv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLfloat, )

glUniformMatrix3x2fv(location, count, transpose, value)

  • value len: count*6
Source

pub unsafe fn UniformMatrix3x4fv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLfloat, )

glUniformMatrix3x4fv(location, count, transpose, value)

  • value len: count*12
Source

pub unsafe fn UniformMatrix4fv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLfloat, )

glUniformMatrix4fv(location, count, transpose, value)

  • value len: count*16
Source

pub unsafe fn UniformMatrix4x2fv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLfloat, )

glUniformMatrix4x2fv(location, count, transpose, value)

  • value len: count*8
Source

pub unsafe fn UniformMatrix4x3fv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLfloat, )

glUniformMatrix4x3fv(location, count, transpose, value)

  • value len: count*12
Source

pub unsafe fn UnmapBuffer(&self, target: GLenum) -> GLboolean

glUnmapBuffer(target)

  • target group: BufferTargetARB
Source

pub unsafe fn UseProgram(&self, program: GLuint)

glUseProgram(program)

Source

pub unsafe fn ValidateProgram(&self, program: GLuint)

Source

pub unsafe fn VertexAttrib1f(&self, index: GLuint, x: GLfloat)

glVertexAttrib1f(index, x)

Source

pub unsafe fn VertexAttrib1fv(&self, index: GLuint, v: *const GLfloat)

glVertexAttrib1fv(index, v)

  • v len: 1
Source

pub unsafe fn VertexAttrib2f(&self, index: GLuint, x: GLfloat, y: GLfloat)

glVertexAttrib2f(index, x, y)

Source

pub unsafe fn VertexAttrib2fv(&self, index: GLuint, v: *const GLfloat)

glVertexAttrib2fv(index, v)

  • v len: 2
Source

pub unsafe fn VertexAttrib3f( &self, index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, )

glVertexAttrib3f(index, x, y, z)

Source

pub unsafe fn VertexAttrib3fv(&self, index: GLuint, v: *const GLfloat)

glVertexAttrib3fv(index, v)

  • v len: 3
Source

pub unsafe fn VertexAttrib4f( &self, index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat, )

glVertexAttrib4f(index, x, y, z, w)

Source

pub unsafe fn VertexAttrib4fv(&self, index: GLuint, v: *const GLfloat)

glVertexAttrib4fv(index, v)

  • v len: 4
Source

pub unsafe fn VertexAttribDivisor(&self, index: GLuint, divisor: GLuint)

glVertexAttribDivisor(index, divisor)

Source

pub unsafe fn VertexAttribI4i( &self, index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint, )

glVertexAttribI4i(index, x, y, z, w)

Source

pub unsafe fn VertexAttribI4iv(&self, index: GLuint, v: *const GLint)

glVertexAttribI4iv(index, v)

  • v len: 4
Source

pub unsafe fn VertexAttribI4ui( &self, index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint, )

glVertexAttribI4ui(index, x, y, z, w)

Source

pub unsafe fn VertexAttribI4uiv(&self, index: GLuint, v: *const GLuint)

glVertexAttribI4uiv(index, v)

  • v len: 4
Source

pub unsafe fn VertexAttribIPointer( &self, index: GLuint, size: GLint, type_: GLenum, stride: GLsizei, pointer: *const c_void, )

glVertexAttribIPointer(index, size, type_, stride, pointer)

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

pub unsafe fn VertexAttribPointer( &self, index: GLuint, size: GLint, type_: GLenum, normalized: GLboolean, stride: GLsizei, pointer: *const c_void, )

glVertexAttribPointer(index, size, type_, normalized, stride, pointer)

  • type_ group: VertexAttribPointerType
  • pointer len: COMPSIZE(size,type,stride)
Source

pub unsafe fn Viewport( &self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, )

glViewport(x, y, width, height)

  • x group: WinCoord
  • y group: WinCoord
Source

pub unsafe fn WaitSync( &self, sync: GLsync, flags: GLbitfield, timeout: GLuint64, )

glWaitSync(sync, flags, timeout)

  • sync group: sync

Trait Implementations§

Source§

impl Debug for GlFns

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Zeroable for GlFns

Source§

fn zeroed() -> Self

Auto Trait Implementations§

§

impl !Freeze for GlFns

§

impl RefUnwindSafe for GlFns

§

impl Send for GlFns

§

impl Sync for GlFns

§

impl Unpin for GlFns

§

impl UnwindSafe for GlFns

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.