[][src]Function fermium::renderer::SDL_GL_BindTexture

pub unsafe extern "C" fn SDL_GL_BindTexture(
    texture: *mut SDL_Texture,
    texw: *mut f32,
    texh: *mut f32
) -> c_int

Bind the texture to the current OpenGL/ES/ES2 context for use with OpenGL instructions.

  • texture The SDL texture to bind.
  • texw A pointer to a float that will be filled with the texture width.
  • texh A pointer to a float that will be filled with the texture height.

Returns: 0 on success, or -1 if the operation is not supported