File: glbase.go

package info (click to toggle)
ciborium 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,928 kB
  • sloc: cpp: 2,199; sh: 75; makefile: 20
file content (33 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package glbase

// A Context represents an OpenGL context that may be rendered on by the
// version-specific APIs under this package.
type Context struct {
	// This is just a marker at the moment, as the GL.API functions will
	// initialize their GL context from the current context in the
	// renderer thread. The design supports proper expansion and fixes for
	// upstream changes that break that model, though.
	private struct{}
}

// Contexter is implemented by values that have an assigned OpenGL context.
type Contexter interface {
	GLContext() *Context
}

type (
	Bitfield uint32
	Enum     uint32
	Sync     uintptr
	Clampf   float32
	Clampd   float64

	Uniform      int32
	Attrib       int32
	Texture      uint32
	Program      uint32
	Shader       uint32
	Buffer       uint32
	Framebuffer  uint32
	Renderbuffer uint32
)