gl

package
v3.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VENDOR                 = 0x1F00
	VERSION                = 0x1F02
	RENDERER               = 0x1F01
	ShadingLanguageVersion = 0x8B8C
	Texture2d              = 0x0DE1
	RENDERBUFFER           = 0x8D41
	FRAMEBUFFER            = 0x8D40
	TextureMinFilter       = 0x2801
	TextureMagFilter       = 0x2800
	NEAREST                = 0x2600
	RGBA8                  = 0x8058
	BGRA                   = 0x80E1
	RGB                    = 0x1907
	ColorAttachment0       = 0x8CE0
	Depth24Stencil8        = 0x88F0
	DepthStencilAttachment = 0x821A
	DepthComponent24       = 0x81A6
	DepthAttachment        = 0x8D00
	FramebufferComplete    = 0x8CD5

	UnsignedShort5551  = 0x8034
	UnsignedShort565   = 0x8363
	UnsignedInt8888Rev = 0x8367
)

Variables

This section is empty.

Functions

func BindFramebuffer

func BindFramebuffer(target uint32, framebuffer uint32)

func BindRenderbuffer

func BindRenderbuffer(target uint32, renderbuffer uint32)

func BindTexture

func BindTexture(target uint32, texture uint32)

func CheckFramebufferStatus

func CheckFramebufferStatus(target uint32) uint32

func DeleteFramebuffers

func DeleteFramebuffers(n int32, framebuffers *uint32)

func DeleteRenderbuffers

func DeleteRenderbuffers(n int32, renderbuffers *uint32)

func DeleteTextures

func DeleteTextures(n int32, textures *uint32)

func FramebufferRenderbuffer

func FramebufferRenderbuffer(target uint32, attachment uint32, renderbufferTarget uint32, renderbuffer uint32)

func FramebufferTexture2D

func FramebufferTexture2D(target uint32, attachment uint32, texTarget uint32, texture uint32, level int32)

func GenFramebuffers

func GenFramebuffers(n int32, framebuffers *uint32)

func GenRenderbuffers

func GenRenderbuffers(n int32, renderbuffers *uint32)

func GenTextures

func GenTextures(n int32, textures *uint32)

func GetError

func GetError() uint32

func GetString

func GetString(name uint32) *uint8

func GoStr

func GoStr(str *uint8) string

func InitWithProcAddrFunc

func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error

func ReadPixels

func ReadPixels(x int32, y int32, width int32, height int32, format uint32, xtype uint32, pixels unsafe.Pointer)

func RenderbufferStorage

func RenderbufferStorage(target uint32, internalformat uint32, width int32, height int32)

func TexImage2D

func TexImage2D(target uint32, level int32, internalformat int32, width int32, height int32, border int32, format uint32, xtype uint32, pixels unsafe.Pointer)

func TexParameteri

func TexParameteri(target uint32, name uint32, param int32)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL