| 1 | // Copyright 2014 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | //go:build (darwin || linux || openbsd || windows) && !gldebug |
| 6 | |
| 7 | package glscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/ |
| 8 | |
| 9 | import "fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/" |
| 10 | |
| 11 | // Enum is equivalent to GLenum, and is normally used with one of the |
| 12 | // constants defined in this package. |
| 13 | type Enumscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Enum# uint32 |
| 14 | |
| 15 | // Types are defined a structs so that in debug mode they can carry |
| 16 | // extra information, such as a string name. See typesdebug.go. |
| 17 | |
| 18 | // Attrib identifies the location of a specific attribute variable. |
| 19 | type Attribscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Attrib# struct { |
| 20 | Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Attrib#Value. uint |
| 21 | } |
| 22 | |
| 23 | // Program identifies a compiled shader program. |
| 24 | type Programscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program# struct { |
| 25 | // Init is set by CreateProgram, as some GL drivers (in particular, |
| 26 | // ANGLE) return true for glIsProgram(0). |
| 27 | Initscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program#Init. bool |
| 28 | Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program#Value. uint32 |
| 29 | } |
| 30 | |
| 31 | // Shader identifies a GLSL shader. |
| 32 | type Shaderscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Shader# struct { |
| 33 | Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Shader#Value. uint32 |
| 34 | } |
| 35 | |
| 36 | // Buffer identifies a GL buffer object. |
| 37 | type Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Buffer# struct { |
| 38 | Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Buffer#Value. uint32 |
| 39 | } |
| 40 | |
| 41 | // Framebuffer identifies a GL framebuffer. |
| 42 | type Framebufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Framebuffer# struct { |
| 43 | Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Framebuffer#Value. uint32 |
| 44 | } |
| 45 | |
| 46 | // A Renderbuffer is a GL object that holds an image in an internal format. |
| 47 | type Renderbufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Renderbuffer# struct { |
| 48 | Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Renderbuffer#Value. uint32 |
| 49 | } |
| 50 | |
| 51 | // A Texture identifies a GL texture unit. |
| 52 | type Texturescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Texture# struct { |
| 53 | Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Texture#Value. uint32 |
| 54 | } |
| 55 | |
| 56 | // Uniform identifies the location of a specific uniform variable. |
| 57 | type Uniformscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Uniform# struct { |
| 58 | Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Uniform#Value. int32 |
| 59 | } |
| 60 | |
| 61 | // A VertexArray is a GL object that holds vertices in an internal format. |
| 62 | type VertexArrayscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/VertexArray# struct { |
| 63 | Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/VertexArray#Value. uint32 |
| 64 | } |
| 65 | |
| 66 | func (v Attribscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Attrib#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Attrib#c().() uintptr { return uintptr(v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Attrib#Value.) } |
| 67 | func (v Enumscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Enum#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Enum#c().() uintptr { return uintptr(v) } |
| 68 | func (v Programscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program#c().() uintptr { |
| 69 | if !v.Initscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program#Init. { |
| 70 | ret := uintptr(0) |
| 71 | ret-- |
| 72 | return ret |
| 73 | } |
| 74 | return uintptr(v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program#Value.) |
| 75 | } |
| 76 | func (v Shaderscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Shader#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Shader#c().() uintptr { return uintptr(v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Shader#Value.) } |
| 77 | func (v Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Buffer#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Buffer#c().() uintptr { return uintptr(v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Buffer#Value.) } |
| 78 | func (v Framebufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Framebuffer#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Framebuffer#c().() uintptr { return uintptr(v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Framebuffer#Value.) } |
| 79 | func (v Renderbufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Renderbuffer#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Renderbuffer#c().() uintptr { return uintptr(v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Renderbuffer#Value.) } |
| 80 | func (v Texturescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Texture#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Texture#c().() uintptr { return uintptr(v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Texture#Value.) } |
| 81 | func (v Uniformscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Uniform#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Uniform#c().() uintptr { return uintptr(v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Uniform#Value.) } |
| 82 | func (v VertexArrayscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/VertexArray#) cscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/VertexArray#c().() uintptr { return uintptr(v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/VertexArray#Value.) } |
| 83 | |
| 84 | func (v Attribscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Attrib#) Stringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Attrib#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Sprintf().("Attrib(%d)", v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Attrib#Value.) } |
| 85 | func (v Programscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program#) Stringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Sprintf().("Program(%d)", v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Program#Value.) } |
| 86 | func (v Shaderscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Shader#) Stringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Shader#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Sprintf().("Shader(%d)", v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Shader#Value.) } |
| 87 | func (v Bufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Buffer#) Stringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Buffer#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Sprintf().("Buffer(%d)", v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Buffer#Value.) } |
| 88 | func (v Framebufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Framebuffer#) Stringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Framebuffer#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Sprintf().("Framebuffer(%d)", v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Framebuffer#Value.) } |
| 89 | func (v Renderbufferscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Renderbuffer#) Stringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Renderbuffer#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Sprintf().("Renderbuffer(%d)", v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Renderbuffer#Value.) } |
| 90 | func (v Texturescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Texture#) Stringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Texture#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Sprintf().("Texture(%d)", v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Texture#Value.) } |
| 91 | func (v Uniformscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Uniform#) Stringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Uniform#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Sprintf().("Uniform(%d)", v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/Uniform#Value.) } |
| 92 | func (v VertexArrayscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/VertexArray#) Stringscip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/VertexArray#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.0 fmt/Sprintf().("VertexArray(%d)", v.Valuescip-go gomod golang.org/x/mobile . `golang.org/x/mobile/gl`/VertexArray#Value.) } |