Advertisement

SDL Question

Started by December 15, 2002 04:41 PM
11 comments, last by craphead 21 years, 11 months ago
what does SDL_FillRect do? and aalso what does pSurface do? shuv-it [edited by - craphead on December 15, 2002 5:43:59 PM]
50/50 Robotics and Software
From the SDL documentation (http://sdldoc.csn.ul.ie/):

This function performs a fast fill of the given rectangle with color. If dstrect is NULL, the whole surface will be filled with color.

The color should be a pixel of the format used by the surface, and can be generated by the SDL_MapRGB or SDL_MapRGBA functions. If the color value contains an alpha value then the destination is simply "filled" with that alpha information, no blending takes place.

If there is a clip rectangle set on the destination (set via SDL_SetClipRect) then this function will clip based on the intersection of the clip rectangle and the dstrect rectangle and the dstrect rectangle will be modified to represent the area actually filled.

- Andy Oxfeld
Advertisement
that doesnt really help

shuv-it
50/50 Robotics and Software
i need to know about pSurface

shuv-it
50/50 Robotics and Software
i need to know what header to use for it.

shuv-it
50/50 Robotics and Software
RTFM
Advertisement
RTFM?

shuv-it
50/50 Robotics and Software
RTFM LMAO
WTF?

shuv-it
50/50 Robotics and Software
could someone answer the question?

shuv-it
50/50 Robotics and Software

This topic is closed to new replies.

Advertisement