include/SDL_render.h
changeset 6414 df50b0d6c1c3
parent 6320 6077a1310907
child 6493 6801ced90deb
     1.1 --- a/include/SDL_render.h	Sun Sep 02 19:37:36 2012 -0400
     1.2 +++ b/include/SDL_render.h	Mon Sep 03 11:16:12 2012 -0300
     1.3 @@ -672,6 +672,28 @@
     1.4  extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer * renderer);
     1.5  
     1.6  
     1.7 +/**
     1.8 + *  \brief Bind the texture to the current OpenGL/ES/ES2 context for use with
     1.9 + *         OpenGL instructions.
    1.10 + *
    1.11 + *  \param texture  The SDL texture to bind
    1.12 + *  \param texw     A pointer to a float that will be filled with the texture width
    1.13 + *  \param texh     A pointer to a float that will be filled with the texture height
    1.14 + *
    1.15 + *  \return 0 on success, or -1 if the operation is not supported
    1.16 + */
    1.17 +extern DECLSPEC int SDLCALL SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh);
    1.18 +
    1.19 +/**
    1.20 + *  \brief Unbind a texture from the current OpenGL/ES/ES2 context.
    1.21 + *
    1.22 + *  \param texture  The SDL texture to unbind
    1.23 + *
    1.24 + *  \return 0 on success, or -1 if the operation is not supported
    1.25 + */
    1.26 +extern DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture);
    1.27 +
    1.28 +
    1.29  /* Ends C function definitions when using C++ */
    1.30  #ifdef __cplusplus
    1.31  /* *INDENT-OFF* */