Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2009-11-24 06:57:23
Size: 1132
Editor: SheenaSmith
Comment: content changed
Revision 4 as of 2009-11-24 06:58:18
Size: 1208
Editor: SheenaSmith
Comment: content added
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
||'''format'''||one of the enumerated values in [[SDL_PixelFormatEnum]]||
||'''access'''||one of the enumerated values in [[SDL_TextureAccess]]||
||'''format'''||one of the enumerated values in [[SDL_PixelFormatEnum]]; see [[#Remarks|Remarks]] for details||
||'''access'''||one of the enumerated values in [[SDL_TextureAccess]]; see [[#Remarks|Remarks]] for details||

SDL_CreateTexture

Use this function to create a texture for the current rendering context.

Syntax

SDL_TextureID SDL_CreateTexture(Uint32 format,
                                int    access, 
                                int    w,
                                int    h)

Function Parameters

format

one of the enumerated values in SDL_PixelFormatEnum; see Remarks for details

access

one of the enumerated values in SDL_TextureAccess; see Remarks for details

w

the width of the texture in pixels

h

the height of the texture in pixels

Return Value

The created texture is returned, or 0 if no rendering context was active, the format was unsupported, or the width or height were out of range; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here

None: SDL_CreateTexture (last edited 2016-04-10 22:54:56 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit