comparison include/SDL_render.h @ 5167:97423d858a1a

Added an intro to the features and goals of the 2D rendering API.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 03 Feb 2011 10:03:55 -0800
parents b3ccd1947786
children 4d39eeaad00b
comparison
equal deleted inserted replaced
5166:d72793305335 5167:97423d858a1a
22 22
23 /** 23 /**
24 * \file SDL_render.h 24 * \file SDL_render.h
25 * 25 *
26 * Header file for SDL 2D rendering functions. 26 * Header file for SDL 2D rendering functions.
27 *
28 * This API supports the following features:
29 * * single pixel points
30 * * single pixel lines
31 * * filled rectangles
32 * * texture images
33 *
34 * The primitives may be drawn in opaque, blended, or additive modes.
35 *
36 * The texture images may be drawn in opaque, blended, or additive modes.
37 * They can have an additional color tint or alpha modulation applied to
38 * them, and may also be stretched with linear interpolation.
39 *
40 * This API is designed to accelerate simple 2D operations. You may
41 * want more functionality such as rotation and particle effects and
42 * in that case you should use SDL's OpenGL/Direct3D support or one
43 * of the many good 3D engines.
27 */ 44 */
28 45
29 #ifndef _SDL_render_h 46 #ifndef _SDL_render_h
30 #define _SDL_render_h 47 #define _SDL_render_h
31 48
32 #include "SDL_stdinc.h" 49 #include "SDL_stdinc.h"
33 //#include "SDL_pixels.h"
34 #include "SDL_rect.h" 50 #include "SDL_rect.h"
35 #include "SDL_video.h" 51 #include "SDL_video.h"
36 52
37 #include "begin_code.h" 53 #include "begin_code.h"
38 /* Set up for C function definitions, even when using C++ */ 54 /* Set up for C function definitions, even when using C++ */