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