Skip to content

Commit

Permalink
glw: Make OpenGL ES code compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Oct 10, 2012
1 parent 1eb21e2 commit eb9a215
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions src/ui/glw/glw_opengl_es.c
Expand Up @@ -24,7 +24,7 @@
* *
*/ */
void void
glw_wirebox(glw_root_t *gr, glw_rctx_t *rc) glw_wirebox(glw_root_t *gr, const glw_rctx_t *rc)
{ {
// NOT IMPLEMENTED // NOT IMPLEMENTED
} }
Expand All @@ -34,7 +34,7 @@ glw_wirebox(glw_root_t *gr, glw_rctx_t *rc)
* *
*/ */
void void
glw_wirecube(glw_root_t *gr, glw_rctx_t *rc) glw_wirecube(glw_root_t *gr, const glw_rctx_t *rc)
{ {
// NOT IMPLEMENTED // NOT IMPLEMENTED
} }
Expand All @@ -53,7 +53,7 @@ glw_opengl_init_context(glw_root_t *gr)
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_CULL_FACE); glEnable(GL_CULL_FACE);
gbr->gbr_culling = 1; gbr->gbr_frontface = GLW_CCW;


glPixelStorei(GL_UNPACK_ALIGNMENT, 1); // We should try to fix this glPixelStorei(GL_UNPACK_ALIGNMENT, 1); // We should try to fix this


Expand All @@ -69,3 +69,43 @@ glw_opengl_init_context(glw_root_t *gr)


return glw_opengl_shaders_init(gr); return glw_opengl_shaders_init(gr);
} }



/**
*
*/
void
glw_rtt_init(glw_root_t *gr, glw_rtt_t *grtt, int width, int height,
int alpha)
{
}


/**
*
*/
void
glw_rtt_enter(glw_root_t *gr, glw_rtt_t *grtt, glw_rctx_t *rc)
{
}


/**
*
*/
void
glw_rtt_restore(glw_root_t *gr, glw_rtt_t *grtt)
{

}


/**
*
*/
void
glw_rtt_destroy(glw_root_t *gr, glw_rtt_t *grtt)
{
}

0 comments on commit eb9a215

Please sign in to comment.