MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_GL_BindTexture

Function SDL_GL_BindTexture

deps/SDL2/src/render/SDL_render.c:3253–3267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3251}
3252
3253int SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh)
3254{
3255 SDL_Renderer *renderer;
3256
3257 CHECK_TEXTURE_MAGIC(texture, -1);
3258 renderer = texture->renderer;
3259 if (texture->native) {
3260 return SDL_GL_BindTexture(texture->native, texw, texh);
3261 } else if (renderer && renderer->GL_BindTexture) {
3262 FlushRenderCommandsIfTextureNeeded(texture); /* in case the app is going to mess with it. */
3263 return renderer->GL_BindTexture(renderer, texture, texw, texh);
3264 } else {
3265 return SDL_Unsupported();
3266 }
3267}
3268
3269int SDL_GL_UnbindTexture(SDL_Texture *texture)
3270{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected