| 8 | ) |
| 9 | |
| 10 | type 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 | |
| 35 | func (l *textShader) Setup(w *ecs.World) error { |
| 36 | var err error |
nothing calls this directly
no outgoing calls
no test coverage detected