Wiki Page Content

Differences between revisions 19 and 20
Revision 19 as of 2009-12-10 08:10:47
Size: 2156
Editor: SheenaSmith
Comment: content added
Revision 20 as of 2009-12-10 08:14:54
Size: 2238
Editor: SheenaSmith
Comment: content added
Deletions are marked like this. Additions are marked like this.
Line 32: Line 32:
<<Anchor(blend_modes)>> '''blend_modes''' <<Anchor(blend_modes)>> '''blend_modes''' may be a mask of any of the following [[SDL_BlendMode]] values OR'd together:
Line 36: Line 36:
<<Anchor(texture_formats)>> '''texture_formats''' is an array of SDL_PixelFormatEnum values representing the available texture formats for the renderer <<Anchor(texture_formats)>> '''texture_formats''' is an array of [[SDL_PixelFormatEnum]] values representing the available texture formats for the renderer

SDL_RendererInfo

A structure that contains information on the capabilities of a render driver or the current render context.

Data Fields

const char*

name

the name of the renderer

Uint32

flags

a mask of supported renderer flags; see Remarks for details

Uint32

mod_modes

a mask of supported channel modulation; see Remarks for details

Uint32

blend_modes

a mask of supported blend modes; see Remarks for details

Uint32

scale_modes

a mask of supported scale modes; see Remarks for details

Uint32

num_texture_formats

the number of available texture formats

Uint32[20]

texture_formats

the available texture formats

int

max_texture_width

the maximimum texture width

int

max_texture_height

the maximimum texture height

Code Examples

You can add your code example here

Remarks

flags may be 0 or a mask of any of the following SDL_RendererFlags values OR'd together:

SDL_RENDERER_SOFTWARE

the renderer is a software fallback

SDL_RENDERER_ACCELERATED

the renderer uses hardware acceleration

SDL_RENDERER_PRESENTVSYNC

present is synchronized with the refresh rate

SDL_RENDERER_TARGETTEXTURE

the renderer supports rendering to texture

Note that providing no flags gives priority to available SDL_RENDERER_ACCELERATED renderers.

mod_modes may be SDL_TEXTUREMODULATE_NONE or a mask of any of the other SDL_TextureModulate values OR'd together:

SDL_TEXTUREMODULATE_NONE

no modulation

SDL_TEXTUREMODULATE_COLOR

srcC = srcC * color

SDL_TEXTUREMODULATE_ALPHA

srcA = srcA * alpha

blend_modes may be a mask of any of the following SDL_BlendMode values OR'd together:

scale_modes

texture_formats is an array of SDL_PixelFormatEnum values representing the available texture formats for the renderer


CategoryStruct

None: SDL_RendererInfo (last edited 2014-02-09 22:23:58 by mattbentley)

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