webgl.mx raw
1 //go:build !wasm
2
3 package webgl
4
5 func CreateContext(canvasID int32) Context { panic("webgl: not wasm") }
6 func CreateContextFromHandle(el int32) Context { panic("webgl: not wasm") }
7 func DeleteContext(ctx Context) { panic("webgl: not wasm") }
8 func Enable(ctx Context, cap int32) { panic("webgl: not wasm") }
9 func Disable(ctx Context, cap int32) { panic("webgl: not wasm") }
10 func Viewport(ctx Context, x, y, w, h int32) { panic("webgl: not wasm") }
11 func Scissor(ctx Context, x, y, w, h int32) { panic("webgl: not wasm") }
12 func BlendFunc(ctx Context, src, dst int32) { panic("webgl: not wasm") }
13 func BlendFuncSeparate(ctx Context, srcRGB, dstRGB, srcA, dstA int32) { panic("webgl: not wasm") }
14 func BlendEquation(ctx Context, mode int32) { panic("webgl: not wasm") }
15 func DepthFunc(ctx Context, fn int32) { panic("webgl: not wasm") }
16 func DepthMask(ctx Context, flag int32) { panic("webgl: not wasm") }
17 func ClearColor(ctx Context, r, g, b, a float32) { panic("webgl: not wasm") }
18 func ClearDepth(ctx Context, d float32) { panic("webgl: not wasm") }
19 func Clear(ctx Context, mask int32) { panic("webgl: not wasm") }
20 func Flush(ctx Context) { panic("webgl: not wasm") }
21 func Finish(ctx Context) { panic("webgl: not wasm") }
22 func GetError(ctx Context) int32 { panic("webgl: not wasm") }
23 func GetInteger(ctx Context, pname int32) int32 { panic("webgl: not wasm") }
24 func IsEnabled(ctx Context, cap int32) int32 { panic("webgl: not wasm") }
25 func PixelStorei(ctx Context, pname, param int32) { panic("webgl: not wasm") }
26 func ReadPixels(ctx Context, x, y, w, h, format, typ int32, bufPtr *byte, bufLen int32) { panic("webgl: not wasm") }
27
28 func CreateBuffer(ctx Context) Buffer { panic("webgl: not wasm") }
29 func DeleteBuffer(ctx Context, buf Buffer) { panic("webgl: not wasm") }
30 func BindBuffer(ctx Context, target int32, buf Buffer) { panic("webgl: not wasm") }
31 func BufferData(ctx Context, target int32, dataPtr *byte, dataLen int32, usage int32) { panic("webgl: not wasm") }
32 func BufferSubData(ctx Context, target int32, offset int32, dataPtr *byte, dataLen int32) { panic("webgl: not wasm") }
33
34 func CreateTexture(ctx Context) Texture { panic("webgl: not wasm") }
35 func DeleteTexture(ctx Context, tex Texture) { panic("webgl: not wasm") }
36 func BindTexture(ctx Context, target int32, tex Texture) { panic("webgl: not wasm") }
37 func ActiveTexture(ctx Context, unit int32) { panic("webgl: not wasm") }
38 func TexParameteri(ctx Context, target, pname, param int32) { panic("webgl: not wasm") }
39 func TexImage2D(ctx Context, target, level, internalformat, width, height, border, format, typ int32, dataPtr *byte, dataLen int32) { panic("webgl: not wasm") }
40 func TexStorage2D(ctx Context, target, levels, internalformat, width, height int32) { panic("webgl: not wasm") }
41 func TexSubImage2D(ctx Context, target, level, xoff, yoff, width, height, format, typ int32, dataPtr *byte, dataLen int32) { panic("webgl: not wasm") }
42 func CopyTexSubImage2D(ctx Context, target, level, xoff, yoff, x, y, w, h int32) { panic("webgl: not wasm") }
43 func GenerateMipmap(ctx Context, target int32) { panic("webgl: not wasm") }
44
45 func CreateFramebuffer(ctx Context) Framebuffer { panic("webgl: not wasm") }
46 func DeleteFramebuffer(ctx Context, fbo Framebuffer) { panic("webgl: not wasm") }
47 func BindFramebuffer(ctx Context, target int32, fbo Framebuffer) { panic("webgl: not wasm") }
48 func FramebufferTexture2D(ctx Context, target, attachment, textarget int32, tex Texture, level int32) { panic("webgl: not wasm") }
49 func CheckFramebufferStatus(ctx Context, target int32) int32 { panic("webgl: not wasm") }
50 func InvalidateFramebuffer(ctx Context, target, attachment int32) { panic("webgl: not wasm") }
51
52 func CreateRenderbuffer(ctx Context) Renderbuffer { panic("webgl: not wasm") }
53 func DeleteRenderbuffer(ctx Context, rbo Renderbuffer) { panic("webgl: not wasm") }
54 func BindRenderbuffer(ctx Context, target int32, rbo Renderbuffer) { panic("webgl: not wasm") }
55 func RenderbufferStorage(ctx Context, target, internalformat, width, height int32) { panic("webgl: not wasm") }
56 func FramebufferRenderbuffer(ctx Context, target, attachment, renderbuffertarget int32, rbo Renderbuffer) { panic("webgl: not wasm") }
57
58 func CreateShader(ctx Context, typ int32) Shader { panic("webgl: not wasm") }
59 func DeleteShader(ctx Context, shader Shader) { panic("webgl: not wasm") }
60 func ShaderSource(ctx Context, shader Shader, srcPtr *byte, srcLen int32) { panic("webgl: not wasm") }
61 func CompileShader(ctx Context, shader Shader) { panic("webgl: not wasm") }
62 func GetShaderParameter(ctx Context, shader Shader, pname int32) int32 { panic("webgl: not wasm") }
63 func GetShaderInfoLog(ctx Context, shader Shader, bufPtr *byte, bufLen int32) int32 { panic("webgl: not wasm") }
64
65 func CreateProgram(ctx Context) Program { panic("webgl: not wasm") }
66 func DeleteProgram(ctx Context, prog Program) { panic("webgl: not wasm") }
67 func AttachShader(ctx Context, prog Program, shader Shader) { panic("webgl: not wasm") }
68 func LinkProgram(ctx Context, prog Program) { panic("webgl: not wasm") }
69 func UseProgram(ctx Context, prog Program) { panic("webgl: not wasm") }
70 func GetProgramParameter(ctx Context, prog Program, pname int32) int32 { panic("webgl: not wasm") }
71 func GetProgramInfoLog(ctx Context, prog Program, bufPtr *byte, bufLen int32) int32 { panic("webgl: not wasm") }
72 func BindAttribLocation(ctx Context, prog Program, index int32, namePtr *byte, nameLen int32) { panic("webgl: not wasm") }
73 func GetUniformLocation(ctx Context, prog Program, namePtr *byte, nameLen int32) UniformLocation { panic("webgl: not wasm") }
74
75 func Uniform1f(ctx Context, loc UniformLocation, v0 float32) { panic("webgl: not wasm") }
76 func Uniform2f(ctx Context, loc UniformLocation, v0, v1 float32) { panic("webgl: not wasm") }
77 func Uniform3f(ctx Context, loc UniformLocation, v0, v1, v2 float32) { panic("webgl: not wasm") }
78 func Uniform4f(ctx Context, loc UniformLocation, v0, v1, v2, v3 float32) { panic("webgl: not wasm") }
79 func Uniform1i(ctx Context, loc UniformLocation, v0 int32) { panic("webgl: not wasm") }
80
81 func EnableVertexAttribArray(ctx Context, index int32) { panic("webgl: not wasm") }
82 func DisableVertexAttribArray(ctx Context, index int32) { panic("webgl: not wasm") }
83 func VertexAttribPointer(ctx Context, index, size, typ, normalized, stride, offset int32) { panic("webgl: not wasm") }
84
85 func DrawArrays(ctx Context, mode, first, count int32) { panic("webgl: not wasm") }
86 func DrawElements(ctx Context, mode, count, typ, offset int32) { panic("webgl: not wasm") }
87