Versions in this module Expand all Collapse all v0 v0.0.1 Jun 15, 2021 Changes in this version + const ArrayBuffer + const AtomicCounterBuffer + const ComputeShader + const CopyReadBuffer + const CopyWriteBuffer + const DbgSevHigh + const DbgSevLow + const DbgSevMedium + const DbgSevNotification + const DbgSrcApi + const DbgSrcApplication + const DbgSrcOther + const DbgSrcShaderCompiler + const DbgSrcThirdParty + const DbgSrcWindowSystem + const DbgTypDeprecatedBehavior + const DbgTypError + const DbgTypMarker + const DbgTypOther + const DbgTypPerformance + const DbgTypPopGroup + const DbgTypPortability + const DbgTypPushGroup + const DbgTypUndefinedBehavior + const DispatchIndirectBuffer + const DrawIndirectBuffer + const ElementArrayBuffer + const FragmentShader + const GeometryShader + const PixelPackBuffer + const PixelUnpackBuffer + const QueryBuffer + const ShaderStorageBuffer + const TessControlShader + const TessEvaluationShader + const Texture1D + const Texture1DArray + const Texture2D + const Texture2DArray + const Texture2DMultisample + const Texture2DMultisampleArray + const Texture3D + const TextureBuffer + const TextureCubeMap + const TextureCubeMapArray + const TextureCubeMapNegX + const TextureCubeMapNegY + const TextureCubeMapNegZ + const TextureCubeMapPosX + const TextureCubeMapPosY + const TextureCubeMapPosZ + const TextureRectangle + const TransformFeedbackBuffer + const UniformBuffer + const VertexShader + var Color = struct{ ... } + func Disable(cap uint32, fn func()) + func Enable(cap uint32, fn func()) + type Buffer struct + Target BufferTarget + func (b Buffer) Bind() + func (b Buffer) Delete() + func (b Buffer) Init(size int, usage uint32) + func (b Buffer) Unbind() + func (b Buffer) Write(data interface{}, usage uint32) + func (b Buffer) WriteAt(data interface{}, offset int) int + type BufferTarget uint32 + func (b BufferTarget) ID() uint32 + func (b BufferTarget) New() Buffer + func (b BufferTarget) NewWith(data interface{}, usage uint32) Buffer + type DbgSev uint32 + func (v DbgSev) String() string + type DbgSrc uint32 + func (v DbgSrc) String() string + type DbgTyp uint32 + func (v DbgTyp) String() string + type Program struct + func BuildShaderProgram(source map[ShaderType]string) (Program, error) + func NewProgram() Program + func (_ Program) Unuse() + func (p Program) AttachShaders(s ...Shader) + func (p Program) Delete() + func (p Program) GetAttrib(name string) VertexAttrib + func (p Program) GetUniform(name string) Uniform + func (p Program) Getiv(name uint32) (v int32) + func (p Program) InfoLog() string + func (p Program) Link() error + func (p Program) Use() + type Ref uint32 + func Gen(n int, fn func(int32, *uint32), skip int, msg string, args ...interface{}) []Ref + func GenT(target uint32, n int, fn func(uint32, int32, *uint32), skip int, msg string, ...) []Ref + func NewRef(v uint32, skip int, msg string, args ...interface{}) Ref + func (r Ref) ID() uint32 + func (r Ref) SID() int32 + type Shader struct + func (s Shader) Compile(source string) error + func (s Shader) Delete() + func (s Shader) Getiv(name uint32) (v int32) + func (s Shader) InfoLog() string + type ShaderType uint32 + func (s ShaderType) ID() uint32 + func (s ShaderType) New() Shader + type Texture struct + Target TextureTarget + func (t Texture) Bind() + func (t Texture) Delete() + func (t Texture) Unbind() + type TextureTarget uint32 + func (t TextureTarget) ID() uint32 + func (t TextureTarget) Image2D(level, internalformat, width, height, border int32, format, xtype uint32, ...) + func (t TextureTarget) LoadImage2D(img image.Image, level, internalFormat, border int32) + func (t TextureTarget) New() Texture + func (t TextureTarget) Parameteri(name uint32, val int32) + type Uniform struct + func (u Uniform) As1f(a float32) + func (u Uniform) As1fv(v ...float32) + func (u Uniform) As1i(a int32) + func (u Uniform) As1iv(v ...int32) + func (u Uniform) As1ui(a uint32) + func (u Uniform) As1uiv(v ...uint32) + func (u Uniform) As2f(a, b float32) + func (u Uniform) As2fv(v ...mgl32.Vec2) + func (u Uniform) As2i(a, b int32) + func (u Uniform) As2iv(v ...[2]int32) + func (u Uniform) As2ui(a, b uint32) + func (u Uniform) As2uiv(v ...[2]uint32) + func (u Uniform) As3f(a, b, c float32) + func (u Uniform) As3fv(v ...mgl32.Vec3) + func (u Uniform) As3i(a, b, c int32) + func (u Uniform) As3iv(v ...[3]int32) + func (u Uniform) As3ui(a, b, c uint32) + func (u Uniform) As3uiv(v ...[3]uint32) + func (u Uniform) As4f(a, b, c, d float32) + func (u Uniform) As4fv(v ...mgl32.Vec4) + func (u Uniform) As4i(a, b, c, d int32) + func (u Uniform) As4iv(v ...[4]int32) + func (u Uniform) As4ui(a, b, c, d uint32) + func (u Uniform) As4uiv(v ...[4]uint32) + func (u Uniform) AsMatrix2fv(transpose bool, v ...mgl32.Mat2) + func (u Uniform) AsMatrix2x3fv(transpose bool, v ...mgl32.Mat2x3) + func (u Uniform) AsMatrix2x4fv(transpose bool, v ...mgl32.Mat2x4) + func (u Uniform) AsMatrix3fv(transpose bool, v ...mgl32.Mat3) + func (u Uniform) AsMatrix3x2fv(transpose bool, v ...mgl32.Mat3x2) + func (u Uniform) AsMatrix3x4fv(transpose bool, v ...mgl32.Mat3x4) + func (u Uniform) AsMatrix4fv(transpose bool, v ...mgl32.Mat4) + func (u Uniform) AsMatrix4x2fv(transpose bool, v ...mgl32.Mat4x2) + func (u Uniform) AsMatrix4x3fv(transpose bool, v ...mgl32.Mat4x3) + type VertexArray struct + func NewVertexArray() VertexArray + func (_ VertexArray) Unbind() + func (a VertexArray) Bind() + func (a VertexArray) Delete() + func (a VertexArray) Disable(b ...VertexAttrib) + func (a VertexArray) Enable(b ...VertexAttrib) + type VertexAttrib struct + func (a VertexAttrib) As1d(v0 float64) + func (a VertexAttrib) As1dv(v [1]float64) + func (a VertexAttrib) As1f(v0 float32) + func (a VertexAttrib) As1fv(v [1]float32) + func (a VertexAttrib) As1s(v0 int16) + func (a VertexAttrib) As1sv(v [1]int16) + func (a VertexAttrib) As2d(v0, v1 float64) + func (a VertexAttrib) As2dv(v [2]float64) + func (a VertexAttrib) As2f(v0, v1 float32) + func (a VertexAttrib) As2fv(v [2]float32) + func (a VertexAttrib) As2s(v0, v1 int16) + func (a VertexAttrib) As2sv(v [2]int16) + func (a VertexAttrib) As3d(v0, v1, v2 float64) + func (a VertexAttrib) As3dv(v [3]float64) + func (a VertexAttrib) As3f(v0, v1, v2 float32) + func (a VertexAttrib) As3fv(v [3]float32) + func (a VertexAttrib) As3s(v0, v1, v2 int16) + func (a VertexAttrib) As3sv(v [3]int16) + func (a VertexAttrib) As4Nbv(v [4]int8) + func (a VertexAttrib) As4Niv(v [4]int32) + func (a VertexAttrib) As4Nsv(v [4]int16) + func (a VertexAttrib) As4Nub(v0, v1, v2, v3 uint8) + func (a VertexAttrib) As4Nubv(v [4]uint8) + func (a VertexAttrib) As4Nuiv(v [4]uint32) + func (a VertexAttrib) As4Nusv(v [4]uint16) + func (a VertexAttrib) As4bv(v [4]int8) + func (a VertexAttrib) As4d(v0, v1, v2, v3 float64) + func (a VertexAttrib) As4dv(v [4]float64) + func (a VertexAttrib) As4f(v0, v1, v2, v3 float32) + func (a VertexAttrib) As4fv(v [4]float32) + func (a VertexAttrib) As4iv(v [4]int32) + func (a VertexAttrib) As4s(v0, v1, v2, v3 int16) + func (a VertexAttrib) As4sv(v [4]int16) + func (a VertexAttrib) As4ubv(v [4]uint8) + func (a VertexAttrib) As4uiv(v [4]uint32) + func (a VertexAttrib) As4usv(v [4]uint16) + func (a VertexAttrib) AsArray(size int32, xtype uint32, normalized bool, stride int32, ...) + func (a VertexAttrib) AsI1i(v0 int32) + func (a VertexAttrib) AsI1iv(v [1]int32) + func (a VertexAttrib) AsI1ui(v0 uint32) + func (a VertexAttrib) AsI1uiv(v [1]uint32) + func (a VertexAttrib) AsI2i(v0, v1 int32) + func (a VertexAttrib) AsI2iv(v [2]int32) + func (a VertexAttrib) AsI2ui(v0, v1 uint32) + func (a VertexAttrib) AsI2uiv(v [2]uint32) + func (a VertexAttrib) AsI3i(v0, v1, v2 int32) + func (a VertexAttrib) AsI3iv(v [3]int32) + func (a VertexAttrib) AsI3ui(v0, v1, v2 uint32) + func (a VertexAttrib) AsI3uiv(v [3]uint32) + func (a VertexAttrib) AsI4bv(v [4]int8) + func (a VertexAttrib) AsI4i(v0, v1, v2, v3 int32) + func (a VertexAttrib) AsI4iv(v [4]int32) + func (a VertexAttrib) AsI4sv(v [4]int16) + func (a VertexAttrib) AsI4ubv(v [4]uint8) + func (a VertexAttrib) AsI4ui(v0, v1, v2, v3 uint32) + func (a VertexAttrib) AsI4uiv(v [4]uint32) + func (a VertexAttrib) AsI4usv(v [4]uint16) + func (a VertexAttrib) AsL1d(v0 float64) + func (a VertexAttrib) AsL1dv(v [1]float64) + func (a VertexAttrib) AsL2d(v0, v1 float64) + func (a VertexAttrib) AsL2dv(v [2]float64) + func (a VertexAttrib) AsL3d(v0, v1, v2 float64) + func (a VertexAttrib) AsL3dv(v [3]float64) + func (a VertexAttrib) AsL4d(v0, v1, v2, v3 float64) + func (a VertexAttrib) AsL4dv(v [4]float64)