chickadee » sdl2 » gl-bind-texture!

gl-bind-texture! textureprocedure

Bind the given sdl2:texture for use with the current OpenGL context. See SDL_GL_BindTexture.

Returns multiple values:

The bound OpenGL texture's width, as a float (usually 1.0)
The bound OpenGL texture's height, as a float (usually 1.0)

Signals an exception of kind (exn sdl2) if an error occurs.

This procedure is available in sdl2 egg version 0.2.0 and higher.