sdlGlUnbindTexture function

int sdlGlUnbindTexture(
  1. Pointer<SdlTexture> texture
)

Unbind an OpenGL/ES/ES2 texture from the current context.

See SDL_GL_BindTexture() for examples on how to use these functions

\param texture the texture to unbind from the current OpenGL/ES/ES2 context \returns 0 on success, or -1 if the operation is not supported

\since This function is available since SDL 2.0.0.

\sa SDL_GL_BindTexture \sa SDL_GL_MakeCurrent

extern DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture)

Implementation

int sdlGlUnbindTexture(Pointer<SdlTexture> texture) {
  final sdlGlUnbindTextureLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlTexture> texture),
      int Function(Pointer<SdlTexture> texture)>('SDL_GL_UnbindTexture');
  return sdlGlUnbindTextureLookupFunction(texture);
}