Versions in this module Expand all Collapse all v0 v0.0.1 Jun 4, 2024 Changes in this version + const ActiveAttributeMaxLength + const ActiveUniformMaxLength + const ArrayBuffer + const AttachedShaders + const Blend + const ClampToEdge + const ColorBufferBit + const CompileStatus + const ConstantAlpha + const DepthBufferBit + const DepthTest + const DynamicDraw + const False + const Float + const FragmentShader + const Front + const InfoLogLength + const Linear + const LinkStatus + const Nearest + const One + const OneMinusConstantAlpha + const OneMinusSrcAlpha + const RED + const RGBA + const ScissorTest + const ShaderSourceLength + const SrcAlpha + const StaticDraw + const Texture0 + const Texture2D + const TextureMagFilter + const TextureMinFilter + const TextureWrapS + const TextureWrapT + const TriangleStrip + const Triangles + const True + const UnsignedByte + const VertexShader + var LibD3DCompiler = syscall.NewLazyDLL("d3dcompiler_47.dll") — windows/amd64 + var LibEGL = syscall.NewLazyDLL("libegl.dll") — windows/amd64 + var LibGLESv2 = syscall.NewLazyDLL("libglesv2.dll") — windows/amd64 + func NewContext() (Context, Worker) + func Version() string — darwin/amd64, js/wasm, linux/amd64 + type Attrib struct — darwin/amd64, linux/amd64, windows/amd64 + Value uint + func (v Attrib) String() string + type Buffer struct — darwin/amd64, linux/amd64, windows/amd64 + Value uint32 + func (v Buffer) String() string + type Context interface + ActiveTexture func(texture Enum) + AttachShader func(p Program, s Shader) + BindBuffer func(target Enum, b Buffer) + BindTexture func(target Enum, t Texture) + BindVertexArray func(rb VertexArray) + BlendColor func(red, green, blue, alpha float32) + BlendFunc func(sfactor, dfactor Enum) + BufferData func(target Enum, src []byte, usage Enum) + Clear func(mask Enum) + ClearColor func(red, green, blue, alpha float32) + CompileShader func(s Shader) + CreateBuffer func() Buffer + CreateProgram func() Program + CreateShader func(ty Enum) Shader + CreateTexture func() Texture + CreateVertexArray func() VertexArray + DeleteBuffer func(v Buffer) + DeleteTexture func(v Texture) + Disable func(cap Enum) + DrawArrays func(mode Enum, first, count int) + Enable func(cap Enum) + EnableVertexAttribArray func(a Attrib) + Flush func() + GetAttribLocation func(p Program, name string) Attrib + GetError func() Enum + GetProgramInfoLog func(p Program) string + GetProgrami func(p Program, pname Enum) int + GetShaderInfoLog func(s Shader) string + GetShaderi func(s Shader, pname Enum) int + GetUniformLocation func(p Program, name string) Uniform + LinkProgram func(p Program) + ReadPixels func(dst []byte, x, y, width, height int, format, ty Enum) + Scissor func(x, y, width, height int32) + ShaderSource func(s Shader, src string) + TexImage2D func(target Enum, level int, internalFormat int, width, height int, format Enum, ...) + TexParameteri func(target, pname Enum, param int) + Uniform1f func(dst Uniform, v float32) + Uniform2f func(dst Uniform, v0, v1 float32) + Uniform4f func(dst Uniform, v0, v1, v2, v3 float32) + Uniform4fv func(dst Uniform, src []float32) + UseProgram func(p Program) + VertexAttribPointer func(dst Attrib, size int, ty Enum, normalized bool, stride, offset int) + Viewport func(x, y, width, height int) + type Enum uint32 — darwin/amd64, linux/amd64, windows/amd64 + type Framebuffer struct — darwin/amd64, linux/amd64, windows/amd64 + Value uint32 + func (v Framebuffer) String() string + type Program struct — darwin/amd64, linux/amd64, windows/amd64 + Init bool + Value uint32 + func (v Program) String() string + type Renderbuffer struct — darwin/amd64, linux/amd64, windows/amd64 + Value uint32 + func (v Renderbuffer) String() string + type Shader struct — darwin/amd64, linux/amd64, windows/amd64 + Value uint32 + func (v Shader) String() string + type Texture struct — darwin/amd64, linux/amd64, windows/amd64 + Value uint32 + func (v Texture) String() string + type Uniform struct — darwin/amd64, linux/amd64, windows/amd64 + Value int32 + func (v Uniform) String() string + type VertexArray struct — darwin/amd64, linux/amd64, windows/amd64 + Value uint32 + func (v VertexArray) String() string + type Worker interface + DoWork func() + WorkAvailable func() <-chan struct{}