Versions in this module Expand all Collapse all v0 v0.0.0 May 22, 2021 Changes in this version + const ALL_BARRIER_BITS + const ARRAY_BUFFER + const BACK + const BLEND + const CLAMP_TO_EDGE + const COLOR_ATTACHMENT0 + const COLOR_BUFFER_BIT + const COMPILE_STATUS + const COMPUTE_SHADER + const DEPTH_ATTACHMENT + const DEPTH_BUFFER_BIT + const DEPTH_COMPONENT16 + const DEPTH_COMPONENT24 + const DEPTH_COMPONENT32F + const DEPTH_TEST + const DRAW_FRAMEBUFFER + const DST_COLOR + const DYNAMIC_DRAW + const DYNAMIC_READ + const ELEMENT_ARRAY_BUFFER + 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 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 PROGRAM_BINARY_LENGTH + const QUERY_RESULT + const QUERY_RESULT_AVAILABLE + const R16F + const R8 + const READ_FRAMEBUFFER + 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 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_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 UNPACK_ALIGNMENT + const UNSIGNED_BYTE + const UNSIGNED_SHORT + const VERSION + const VERTEX_SHADER + 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 js.Value — js/wasm + type Buffer struct — darwin/amd64, linux/amd64, windows/amd64 + V uint + type Context interface — darwin/amd64, linux/amd64, windows/amd64 + type Context js.Value — js/wasm + type Enum uint + type Framebuffer js.Value — js/wasm + func (f Framebuffer) Valid() bool + type Framebuffer struct — darwin/amd64, linux/amd64, windows/amd64 + V uint + func (u Framebuffer) Valid() bool + type Functions struct + Ctx js.Value + EXT_disjoint_timer_query js.Value + EXT_disjoint_timer_query_webgl2 js.Value + 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) BlendEquation(mode Enum) + func (c *Functions) BlendFunc(sfactor, dfactor Enum) + func (c *Functions) BufferData(target Enum, size int, usage Enum) + 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) 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) 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) GetError() Enum + 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) 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) InvalidateFramebuffer(target, attachment Enum) + func (c *Functions) LinkProgram(p Program) + func (c *Functions) PixelStorei(pname Enum, param int32) + 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(t Enum) + 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) BindRenderbuffer(target Enum, rb Renderbuffer) + func (f *Functions) BindTexture(target Enum, t Texture) + func (f *Functions) BlendEquation(mode Enum) + func (f *Functions) BlendFunc(sfactor, dfactor 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) + func (f *Functions) BufferSubData(target Enum, offset int, src []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) ClearColor(red, green, blue, alpha float32) + func (f *Functions) ClearDepthf(d float32) + func (f *Functions) CompileShader(s Shader) + func (f *Functions) CreateBuffer() Buffer + func (f *Functions) CreateFramebuffer() Framebuffer + func (f *Functions) CreateProgram() Program + func (f *Functions) CreateQuery() Query + func (f *Functions) CreateRenderbuffer() Renderbuffer + func (f *Functions) CreateShader(ty Enum) Shader + func (f *Functions) CreateTexture() Texture + 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) DepthFunc(fn Enum) + func (f *Functions) DepthFunc(v Enum) + func (f *Functions) DepthMask(mask bool) + func (f *Functions) Disable(cap Enum) + func (f *Functions) DisableVertexAttribArray(a Attrib) + func (f *Functions) DispatchCompute(x, y, z int) + func (f *Functions) DrawArrays(mode Enum, first int, count int) + func (f *Functions) DrawArrays(mode Enum, first, 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) FramebufferRenderbuffer(target, attachment, renderbuffertarget Enum, renderbuffer Renderbuffer) + func (f *Functions) FramebufferTexture2D(target, attachment, texTarget Enum, t Texture, level int) + func (f *Functions) GetBinding(pname Enum) Object + func (f *Functions) GetError() Enum + 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) 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) GetShaderi(s Shader, pname Enum) int + 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) Init() error + func (f *Functions) InvalidateFramebuffer(target, attachment Enum) + func (f *Functions) IsEnabled(cap Enum) bool + func (f *Functions) LinkProgram(p Program) + 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 int32) + 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) TexImage2D(target Enum, level int, internalFormat Enum, width, 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) TexSubImage2D(target Enum, level int, x, y, width, height int, format, ty Enum, data []byte) + 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) Uniform2f(dst Uniform, v0, v1 float32) + func (f *Functions) Uniform3f(dst Uniform, v0 float32, v1 float32, v2 float32) + func (f *Functions) Uniform3f(dst Uniform, v0, v1, v2 float32) + func (f *Functions) Uniform4f(dst Uniform, v0 float32, v1 float32, v2 float32, v3 float32) + func (f *Functions) Uniform4f(dst Uniform, v0, v1, v2, 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) VertexAttribPointer(dst Attrib, size int, ty Enum, normalized bool, stride, offset int) + func (f *Functions) Viewport(x int, y int, width int, height 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 js.Value — js/wasm + type Program struct — darwin/amd64, linux/amd64, windows/amd64 + V uint + func CreateComputeProgram(ctx *Functions, src string) (Program, error) + func CreateProgram(ctx *Functions, vsSrc, fsSrc string, attribs []string) (Program, error) + func (p Program) Valid() bool + type Query js.Value — js/wasm + type Query struct — darwin/amd64, linux/amd64, windows/amd64 + V uint + type Renderbuffer js.Value — js/wasm + type Renderbuffer struct — darwin/amd64, linux/amd64, windows/amd64 + V uint + type Shader js.Value — js/wasm + func (s Shader) Valid() bool + type Shader struct — darwin/amd64, linux/amd64, windows/amd64 + V uint + type Texture js.Value — js/wasm + type Texture struct — darwin/amd64, linux/amd64, windows/amd64 + V uint + type Uniform js.Value — js/wasm + func (u Uniform) Valid() bool + type Uniform struct — darwin/amd64, linux/amd64, windows/amd64 + V int