[][src]Function fermium::renderer::SDL_CreateTexture

pub unsafe extern "C" fn SDL_CreateTexture(
    renderer: *mut SDL_Renderer,
    format: u32,
    access: c_int,
    w: c_int,
    h: c_int
) -> *mut SDL_Texture

Create a texture for a rendering context.

  • renderer The renderer.
  • format The format of the texture.
  • access One of the enumerated values in ::SDL_TextureAccess.
  • w The width of the texture in pixels.
  • h The height of the texture in pixels.

Returns: The created texture is returned, or NULL if no rendering context was active, the format was unsupported, or the width or height were out of range.

The contents of the texture are not defined at creation.

See Also: SDL_QueryTexture, SDL_UpdateTexture, SDL_DestroyTexture