[−][src]Function sdl2_sys::SDL_CreateTexture
pub unsafe extern "C" fn SDL_CreateTexture(
renderer: *mut SDL_Renderer,
format: Uint32,
access: c_int,
w: c_int,
h: c_int
) -> *mut SDL_Texture
\brief Create a texture for a rendering context.
\param renderer The renderer. \param format The format of the texture. \param access One of the enumerated values in ::SDL_TextureAccess. \param w The width of the texture in pixels. \param h The height of the texture in pixels.
\return 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.
\note The contents of the texture are not defined at creation.
\sa SDL_QueryTexture() \sa SDL_UpdateTexture() \sa SDL_DestroyTexture()