include/SDL_render.h
changeset 6414 df50b0d6c1c3
parent 6320 6077a1310907
child 6493 6801ced90deb
equal deleted inserted replaced
6413:701a0c0d70d0 6414:df50b0d6c1c3
   670  *  \sa SDL_CreateRenderer()
   670  *  \sa SDL_CreateRenderer()
   671  */
   671  */
   672 extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer * renderer);
   672 extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer * renderer);
   673 
   673 
   674 
   674 
       
   675 /**
       
   676  *  \brief Bind the texture to the current OpenGL/ES/ES2 context for use with
       
   677  *         OpenGL instructions.
       
   678  *
       
   679  *  \param texture  The SDL texture to bind
       
   680  *  \param texw     A pointer to a float that will be filled with the texture width
       
   681  *  \param texh     A pointer to a float that will be filled with the texture height
       
   682  *
       
   683  *  \return 0 on success, or -1 if the operation is not supported
       
   684  */
       
   685 extern DECLSPEC int SDLCALL SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh);
       
   686 
       
   687 /**
       
   688  *  \brief Unbind a texture from the current OpenGL/ES/ES2 context.
       
   689  *
       
   690  *  \param texture  The SDL texture to unbind
       
   691  *
       
   692  *  \return 0 on success, or -1 if the operation is not supported
       
   693  */
       
   694 extern DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture);
       
   695 
       
   696 
   675 /* Ends C function definitions when using C++ */
   697 /* Ends C function definitions when using C++ */
   676 #ifdef __cplusplus
   698 #ifdef __cplusplus
   677 /* *INDENT-OFF* */
   699 /* *INDENT-OFF* */
   678 }
   700 }
   679 /* *INDENT-ON* */
   701 /* *INDENT-ON* */