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:

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

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

Requires sdl2 egg 0.2.0 or higher.