Rename to gfx_ctx_set_projection

This commit is contained in:
Twinaphex 2012-05-27 20:55:11 +02:00
parent 6ff8154d19
commit 1c2c2e1a37
5 changed files with 6 additions and 4 deletions

View File

@ -344,7 +344,7 @@ const char * ps3_get_resolution_label(uint32_t resolution)
}
}
void gfx_ctx_set_rotation(gl_t *gl, bool allow_rotate)
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
{
if(allow_rotate)
{

View File

@ -397,7 +397,7 @@ void gfx_ctx_input_driver(const input_driver_t **input, void **input_data)
*input = NULL;
}
void gfx_ctx_set_rotation(gl_t *gl, bool allow_rotate)
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate)
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();

View File

@ -67,5 +67,7 @@ void gfx_ctx_set_filtering(unsigned index, bool set_smooth);
void gfx_ctx_get_available_resolutions (void);
#endif
void gfx_ctx_set_projection(gl_t *gl, bool allow_rotate);
#endif

View File

@ -425,7 +425,7 @@ static void gl_init_fbo(gl_t *gl, unsigned width, unsigned height)
void gl_set_projection(gl_t *gl, bool allow_rotate)
{
gfx_ctx_set_rotation(gl, allow_rotate);
gfx_ctx_set_projection(gl, allow_rotate);
gl_shader_set_proj_matrix();
}

View File

@ -615,7 +615,7 @@ static void check_window(gl_t *gl)
void gl_set_projection(gl_t *gl, bool allow_rotate)
{
gfx_ctx_set_rotation(gl, allow_rotate);
gfx_ctx_set_projection(gl, allow_rotate);
gl_shader_set_proj_matrix();
}