Versions in this module Expand all Collapse all v0 v0.0.1 Jan 21, 2024 Changes in this version + const ACTIVE_TEXTURE + const ALL_BARRIER_BITS + const ARRAY_BUFFER + const ARRAY_BUFFER_BINDING + const BACK + const BLEND + const BLEND_DST_ALPHA + const BLEND_DST_RGB + const BLEND_SRC_ALPHA + const BLEND_SRC_RGB + const CLAMP_TO_EDGE + const COLOR_ATTACHMENT0 + const COLOR_BUFFER_BIT + const COLOR_CLEAR_VALUE + const COMPILE_STATUS + const COMPUTE_SHADER + const CURRENT_PROGRAM + const DEPTH_ATTACHMENT + const DEPTH_BUFFER_BIT + const DEPTH_CLEAR_VALUE + const DEPTH_COMPONENT16 + const DEPTH_COMPONENT24 + const DEPTH_COMPONENT32F + const DEPTH_FUNC + const DEPTH_TEST + const DEPTH_WRITEMASK + const DRAW_FRAMEBUFFER + const DST_COLOR + const DYNAMIC_DRAW + const DYNAMIC_READ + const ELEMENT_ARRAY_BUFFER + const ELEMENT_ARRAY_BUFFER_BINDING + const EXTENSIONS + const FALSE + const FLOAT + const FRAGMENT_SHADER + const FRAMEBUFFER + const FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING + const FRAMEBUFFER_BINDING + const FRAMEBUFFER_COMPLETE + const FRAMEBUFFER_SRGB + const GEQUAL + const GPU_DISJOINT_EXT + const GREATER + const HALF_FLOAT + const HALF_FLOAT_OES + const INFO_LOG_LENGTH + const INVALID_INDEX + const LINEAR + const LINEAR_MIPMAP_LINEAR + const LINK_STATUS + const LUMINANCE + const MAP_READ_BIT + const MAX_TEXTURE_SIZE + const NEAREST + const NO_ERROR + const NUM_EXTENSIONS + const ONE + const ONE_MINUS_SRC_ALPHA + const PACK_ROW_LENGTH + const PROGRAM_BINARY_LENGTH + const QUERY_RESULT + const QUERY_RESULT_AVAILABLE + const R16F + const R8 + const READ_FRAMEBUFFER + const READ_FRAMEBUFFER_BINDING + const READ_ONLY + const READ_WRITE + const RED + const RENDERBUFFER + const RENDERBUFFER_BINDING + const RENDERBUFFER_HEIGHT + const RENDERBUFFER_WIDTH + const RENDERER + const RGB + const RGBA + const RGBA8 + const SHADER_STORAGE_BUFFER + const SHADER_STORAGE_BUFFER_BINDING + const SHORT + const SRGB + const SRGB8 + const SRGB8_ALPHA8 + const SRGB_ALPHA_EXT + const STATIC_DRAW + const STENCIL_BUFFER_BIT + const TEXTURE0 + const TEXTURE1 + const TEXTURE_2D + const TEXTURE_BINDING_2D + const TEXTURE_MAG_FILTER + const TEXTURE_MIN_FILTER + const TEXTURE_WRAP_S + const TEXTURE_WRAP_T + const TIME_ELAPSED_EXT + const TRIANGLES + const TRIANGLE_STRIP + const TRUE + const UNIFORM_BUFFER + const UNIFORM_BUFFER_BINDING + const UNPACK_ALIGNMENT + const UNPACK_ROW_LENGTH + const UNSIGNED_BYTE + const UNSIGNED_SHORT + const VERSION + const VERTEX_ARRAY_BINDING + const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING + const VERTEX_ATTRIB_ARRAY_ENABLED + const VERTEX_ATTRIB_ARRAY_NORMALIZED + const VERTEX_ATTRIB_ARRAY_POINTER + const VERTEX_ATTRIB_ARRAY_SIZE + const VERTEX_ATTRIB_ARRAY_STRIDE + const VERTEX_ATTRIB_ARRAY_TYPE + const VERTEX_SHADER + const VIEWPORT + const WRITE_ONLY + const ZERO + var LibGLESv2 = windows.NewLazyDLL("libGLESv2.dll") — windows/amd64 + func ParseGLVersion(glVer string) (version [2]int, gles bool, err error) + type Attrib uint + type Buffer Object + func (b Buffer) Equal(b2 Buffer) bool + func (b Buffer) Valid() bool + type Context interface — darwin/amd64, linux/amd64, windows/amd64 + type Context js.Value — js/wasm + type Enum uint + type Framebuffer Object + func (f Framebuffer) Equal(f2 Framebuffer) bool + func (f Framebuffer) Valid() bool + func (u Framebuffer) Valid() bool + type Functions struct — darwin/amd64, linux/amd64, windows/amd64 + func NewFunctions(ctx Context, forceES bool) (*Functions, error) + func (c *Functions) ActiveTexture(t Enum) + func (c *Functions) AttachShader(p Program, s Shader) + func (c *Functions) BindAttribLocation(p Program, a Attrib, name string) + func (c *Functions) BindBuffer(target Enum, b Buffer) + func (c *Functions) BindBufferBase(target Enum, index int, b Buffer) + func (c *Functions) BindFramebuffer(target Enum, fb Framebuffer) + func (c *Functions) BindRenderbuffer(target Enum, rb Renderbuffer) + func (c *Functions) BindTexture(target Enum, t Texture) + func (c *Functions) BindVertexArray(a VertexArray) + func (c *Functions) BlendEquation(mode Enum) + func (c *Functions) BlendFuncSeparate(srcRGB, dstRGB, srcA, dstA Enum) + func (c *Functions) BufferData(target Enum, size int, usage Enum, data []byte) + func (c *Functions) CheckFramebufferStatus(target Enum) Enum + func (c *Functions) Clear(mask Enum) + func (c *Functions) ClearColor(red, green, blue, alpha float32) + func (c *Functions) ClearDepthf(d float32) + func (c *Functions) CompileShader(s Shader) + func (c *Functions) CreateBuffer() Buffer + func (c *Functions) CreateFramebuffer() Framebuffer + func (c *Functions) CreateProgram() Program + func (c *Functions) CreateRenderbuffer() Renderbuffer + func (c *Functions) CreateShader(ty Enum) Shader + func (c *Functions) CreateTexture() Texture + func (c *Functions) CreateVertexArray() VertexArray + func (c *Functions) DeleteBuffer(v Buffer) + func (c *Functions) DeleteFramebuffer(v Framebuffer) + func (c *Functions) DeleteProgram(p Program) + func (c *Functions) DeleteRenderbuffer(v Renderbuffer) + func (c *Functions) DeleteShader(s Shader) + func (c *Functions) DeleteTexture(v Texture) + func (c *Functions) DepthFunc(f Enum) + func (c *Functions) DepthMask(mask bool) + func (c *Functions) Disable(cap Enum) + func (c *Functions) DisableVertexAttribArray(a Attrib) + func (c *Functions) DrawArrays(mode Enum, first, count int) + func (c *Functions) DrawElements(mode Enum, count int, ty Enum, offset int) + func (c *Functions) Enable(cap Enum) + func (c *Functions) EnableVertexAttribArray(a Attrib) + func (c *Functions) Finish() + func (c *Functions) Flush() + func (c *Functions) FramebufferRenderbuffer(target, attachment, renderbuffertarget Enum, renderbuffer Renderbuffer) + func (c *Functions) FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) + func (c *Functions) GetBinding(pname Enum) Object + func (c *Functions) GetBindingi(pname Enum, idx int) Object + func (c *Functions) GetError() Enum + func (c *Functions) GetFloat(pname Enum) float32 + func (c *Functions) GetFloat4(pname Enum) [4]float32 + func (c *Functions) GetFramebufferAttachmentParameteri(target, attachment, pname Enum) int + func (c *Functions) GetInteger(pname Enum) int + func (c *Functions) GetInteger4(pname Enum) [4]int + func (c *Functions) GetIntegeri(pname Enum, idx int) int + func (c *Functions) GetProgramInfoLog(p Program) string + func (c *Functions) GetProgrami(p Program, pname Enum) int + func (c *Functions) GetQueryObjectuiv(query Query, pname Enum) uint + func (c *Functions) GetRenderbufferParameteri(target, pname Enum) int + func (c *Functions) GetShaderInfoLog(s Shader) string + func (c *Functions) GetShaderi(s Shader, pname Enum) int + func (c *Functions) GetString(pname Enum) string + func (c *Functions) GetUniformLocation(p Program, name string) Uniform + func (c *Functions) GetVertexAttrib(index int, pname Enum) int + func (c *Functions) GetVertexAttribBinding(index int, pname Enum) Object + func (c *Functions) GetVertexAttribPointer(index int, pname Enum) uintptr + func (c *Functions) InvalidateFramebuffer(target, attachment Enum) + func (c *Functions) LinkProgram(p Program) + func (c *Functions) PixelStorei(pname Enum, param int) + func (c *Functions) RenderbufferStorage(target, internalformat Enum, width, height int) + func (c *Functions) Scissor(x, y, width, height int32) + func (c *Functions) ShaderSource(s Shader, src string) + func (c *Functions) TexParameteri(target, pname Enum, param int) + func (c *Functions) TexSubImage2D(target Enum, level int, x, y, width, height int, format, ty Enum, data []byte) + func (c *Functions) Uniform1f(dst Uniform, v float32) + func (c *Functions) Uniform1i(dst Uniform, v int) + func (c *Functions) Uniform2f(dst Uniform, v0, v1 float32) + func (c *Functions) Uniform3f(dst Uniform, v0, v1, v2 float32) + func (c *Functions) Uniform4f(dst Uniform, v0, v1, v2, v3 float32) + func (c *Functions) UseProgram(p Program) + func (c *Functions) VertexAttribPointer(dst Attrib, size int, ty Enum, normalized bool, stride, offset int) + func (c *Functions) Viewport(x, y, width, height int) + func (f *Functions) ActiveTexture(texture Enum) + func (f *Functions) AttachShader(p Program, s Shader) + func (f *Functions) BeginQuery(target Enum, query Query) + func (f *Functions) BindAttribLocation(p Program, a Attrib, name string) + func (f *Functions) BindBuffer(target Enum, b Buffer) + func (f *Functions) BindBufferBase(target Enum, index int, b Buffer) + func (f *Functions) BindFramebuffer(target Enum, fb Framebuffer) + func (f *Functions) BindImageTexture(unit int, t Texture, level int, layered bool, layer int, access, format Enum) + func (f *Functions) BindRenderbuffer(target Enum, fb Renderbuffer) + func (f *Functions) BindTexture(target Enum, t Texture) + func (f *Functions) BindVertexArray(a VertexArray) + func (f *Functions) BlendEquation(mode Enum) + func (f *Functions) BlendFuncSeparate(srcRGB, dstRGB, srcA, dstA Enum) + func (f *Functions) BlitFramebuffer(sx0, sy0, sx1, sy1, dx0, dy0, dx1, dy1 int, mask Enum, filter Enum) + func (f *Functions) BufferData(target Enum, size int, usage Enum, data []byte) + func (f *Functions) CheckFramebufferStatus(target Enum) Enum + func (f *Functions) Clear(mask Enum) + func (f *Functions) ClearColor(red float32, green float32, blue float32, alpha float32) + func (f *Functions) ClearDepthf(d float32) + func (f *Functions) CompileShader(s Shader) + func (f *Functions) CopyTexSubImage2D(target Enum, level, xoffset, yoffset, x, y, width, height int) + func (f *Functions) CreateBuffer() Buffer + func (f *Functions) CreateProgram() Program + func (f *Functions) CreateRenderbuffer() Renderbuffer + func (f *Functions) CreateShader(ty Enum) Shader + func (f *Functions) CreateVertexArray() VertexArray + func (f *Functions) DeleteBuffer(v Buffer) + func (f *Functions) DeleteFramebuffer(v Framebuffer) + func (f *Functions) DeleteProgram(p Program) + func (f *Functions) DeleteQuery(query Query) + func (f *Functions) DeleteRenderbuffer(v Renderbuffer) + func (f *Functions) DeleteShader(s Shader) + func (f *Functions) DeleteTexture(v Texture) + func (f *Functions) DeleteVertexArray(array VertexArray) + func (f *Functions) DepthFunc(v Enum) + func (f *Functions) DepthMask(mask bool) + func (f *Functions) DisableVertexAttribArray(a Attrib) + func (f *Functions) DrawArrays(mode Enum, first int, count int) + func (f *Functions) DrawElements(mode Enum, count int, ty Enum, offset int) + func (f *Functions) Enable(cap Enum) + func (f *Functions) EnableVertexAttribArray(a Attrib) + func (f *Functions) EndQuery(target Enum) + func (f *Functions) Finish() + func (f *Functions) Flush() + func (f *Functions) FramebufferRenderbuffer(target, attachment, renderbuffertarget Enum, renderbuffer Renderbuffer) + func (f *Functions) FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) + func (f *Functions) GetFloat(pname Enum) float32 + func (f *Functions) GetFloat4(pname Enum) [4]float32 + func (f *Functions) GetFramebufferAttachmentParameteri(target, attachment, pname Enum) int + func (f *Functions) GetInteger(pname Enum) int + func (f *Functions) GetInteger4(pname Enum) [4]int + func (f *Functions) GetIntegeri(pname Enum, idx int) int + func (f *Functions) GetProgramBinary(p Program) []byte + func (f *Functions) GetProgramInfoLog(p Program) string + func (f *Functions) GetProgrami(p Program, pname Enum) int + func (f *Functions) GetQueryObjectuiv(query Query, pname Enum) uint + func (f *Functions) GetRenderbufferParameteri(target, pname Enum) int + func (f *Functions) GetShaderInfoLog(s Shader) string + func (f *Functions) GetString(pname Enum) string + func (f *Functions) GetUniformBlockIndex(p Program, name string) uint + func (f *Functions) GetUniformLocation(p Program, name string) Uniform + func (f *Functions) GetVertexAttrib(index int, pname Enum) int + func (f *Functions) GetVertexAttribBinding(index int, pname Enum) Object + func (f *Functions) GetVertexAttribPointer(index int, pname Enum) uintptr + func (f *Functions) InvalidateFramebuffer(target, attachment Enum) + func (f *Functions) IsEnabled(cap Enum) bool + func (f *Functions) MapBufferRange(target Enum, offset, length int, access Enum) []byte + func (f *Functions) MemoryBarrier(barriers Enum) + func (f *Functions) PixelStorei(pname Enum, param int) + func (f *Functions) ReadPixels(x, y, width, height int, format, ty Enum, data []byte) + func (f *Functions) RenderbufferStorage(target, internalformat Enum, width, height int) + func (f *Functions) Scissor(x, y, width, height int32) + func (f *Functions) ShaderSource(s Shader, src string) + func (f *Functions) TexImage2D(target Enum, level int, internalFormat Enum, width int, height int, ...) + func (f *Functions) TexParameteri(target, pname Enum, param int) + func (f *Functions) TexStorage2D(target Enum, levels int, internalFormat Enum, width, height int) + func (f *Functions) TexSubImage2D(target Enum, level int, x int, y int, width int, height int, format Enum, ...) + func (f *Functions) Uniform1f(dst Uniform, v float32) + func (f *Functions) Uniform1i(dst Uniform, v int) + func (f *Functions) Uniform2f(dst Uniform, v0 float32, v1 float32) + func (f *Functions) Uniform3f(dst Uniform, v0 float32, v1 float32, v2 float32) + func (f *Functions) Uniform4f(dst Uniform, v0 float32, v1 float32, v2 float32, v3 float32) + func (f *Functions) UniformBlockBinding(p Program, uniformBlockIndex uint, uniformBlockBinding uint) + func (f *Functions) UnmapBuffer(target Enum) bool + func (f *Functions) UseProgram(p Program) + func (f *Functions) VertexAttribPointer(dst Attrib, size int, ty Enum, normalized bool, stride int, offset int) + func (f *Functions) Viewport(x int, y int, width int, height int) + type Functions struct — js/wasm + Ctx js.Value + EXT_disjoint_timer_query js.Value + EXT_disjoint_timer_query_webgl2 js.Value + func (f *Functions) ActiveTexture(t Enum) + func (f *Functions) BindRenderbuffer(target Enum, rb Renderbuffer) + func (f *Functions) BufferSubData(target Enum, offset int, src []byte) + func (f *Functions) ClearColor(red, green, blue, alpha float32) + func (f *Functions) CreateFramebuffer() Framebuffer + func (f *Functions) CreateQuery() Query + func (f *Functions) CreateTexture() Texture + func (f *Functions) DeleteVertexArray(a VertexArray) + func (f *Functions) DepthFunc(fn Enum) + func (f *Functions) Disable(cap Enum) + func (f *Functions) DispatchCompute(x, y, z int) + func (f *Functions) DrawArrays(mode Enum, first, count int) + func (f *Functions) GenerateMipmap(target Enum) + func (f *Functions) GetBinding(pname Enum) Object + func (f *Functions) GetBindingi(pname Enum, idx int) Object + func (f *Functions) GetError() Enum + func (f *Functions) GetShaderi(s Shader, pname Enum) int + func (f *Functions) Init() error + func (f *Functions) LinkProgram(p Program) + func (f *Functions) TexImage2D(target Enum, level int, internalFormat Enum, width, height int, ...) + func (f *Functions) TexSubImage2D(target Enum, level int, x, y, width, height int, format, ty Enum, data []byte) + func (f *Functions) Uniform2f(dst Uniform, v0, v1 float32) + func (f *Functions) Uniform3f(dst Uniform, v0, v1, v2 float32) + func (f *Functions) Uniform4f(dst Uniform, v0, v1, v2, v3 float32) + func (f *Functions) VertexAttribPointer(dst Attrib, size int, ty Enum, normalized bool, stride, offset int) + func (f *Functions) Viewport(x, y, width, height int) + type Object js.Value — js/wasm + type Object struct — darwin/amd64, linux/amd64, windows/amd64 + V uint + type Program Object + func CreateComputeProgram(ctx *Functions, src string) (Program, error) + func CreateProgram(ctx *Functions, vsSrc, fsSrc string, attribs []string) (Program, error) + func (p Program) Equal(p2 Program) bool + func (p Program) Valid() bool + type Query Object + type Renderbuffer Object + func (r Renderbuffer) Equal(r2 Renderbuffer) bool + func (r Renderbuffer) Valid() bool + type Shader Object + func CreateShader(ctx *Functions, typ Enum, src string) (Shader, error) + func (s Shader) Equal(s2 Shader) bool + func (s Shader) Valid() bool + type Texture Object + func (t Texture) Equal(t2 Texture) bool + func (t Texture) Valid() bool + type Uniform Object — js/wasm + type Uniform struct — darwin/amd64, linux/amd64, windows/amd64 + V int + func (u Uniform) Equal(u2 Uniform) bool + func (u Uniform) Valid() bool + type VertexArray Object + func (a VertexArray) Equal(a2 VertexArray) bool + func (a VertexArray) Valid() bool