()
| 81 | |
| 82 | |
| 83 | @Override |
| 84 | protected void begin2D() { |
| 85 | pushProjection(); |
| 86 | ortho(-width/2f, width/2f, -height/2f, height/2f); |
| 87 | pushMatrix(); |
| 88 | |
| 89 | // Set camera for 2D rendering, it simply centers at (width/2, height/2) |
| 90 | float centerX = width/2f; |
| 91 | float centerY = height/2f; |
| 92 | modelview.reset(); |
| 93 | modelview.translate(-centerX, -centerY); |
| 94 | |
| 95 | modelviewInv.set(modelview); |
| 96 | modelviewInv.invert(); |
| 97 | |
| 98 | camera.set(modelview); |
| 99 | cameraInv.set(modelviewInv); |
| 100 | |
| 101 | updateProjmodelview(); |
| 102 | } |
| 103 | |
| 104 | |
| 105 | @Override |
nothing calls this directly
no test coverage detected