Add internal 2D drawing library that goes through the Ge emulation for portability.

To be used for things like sceUtility* and other overlays like FPS and stats.
This commit is contained in:
Henrik Rydgard 2012-11-18 13:04:49 +01:00
parent a6eb25b58c
commit e37a1fb1d3
39 changed files with 847 additions and 136 deletions

View file

@ -108,7 +108,8 @@ void DisplayDrawer_Init()
glUniformMatrix4fv(draw2dprogram->u_viewproj, 1, GL_FALSE, ortho.getReadPtr());
glsl_unbind();
// And an initial clear.
// And an initial clear. We don't clear per frame as the games are supposed to handle that
// by themselves.
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);