MCPcopy
hub / github.com/EngoEngine/engo / textShader

Struct textShader

common/render_shaders_text.go:10–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8)
9
10type textShader struct {
11 program *gl.Program
12
13 indicesRectangles []uint16
14 indicesRectanglesVBO *gl.Buffer
15
16 inPosition int
17 inTexCoords int
18 inColor int
19
20 matrixProjection *gl.UniformLocation
21 matrixView *gl.UniformLocation
22 matrixModel *gl.UniformLocation
23
24 projectionMatrix []float32
25 viewMatrix []float32
26 modelMatrix []float32
27
28 camera *CameraSystem
29 cameraEnabled bool
30
31 lastBuffer *gl.Buffer
32 lastTexture *gl.Texture
33}
34
35func (l *textShader) Setup(w *ecs.World) error {
36 var err error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected