_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
30 #ifndef __INTERN_VIDEO_H__
31 #define __INTERN_VIDEO_H__
112 #define CLIP_RECTANGLE(x, y, width, height) do { \
122 if ((x + width) > ClipX2 + 1) { \
126 width = ClipX2 - x + 1; \
136 if ((y + height) > ClipY2 + 1) { \
140 height = ClipY2 - y + 1; \
167 #define CLIP_RECTANGLE_OFS(x, y, width, height, ofsx, ofsy, endx) do { \
170 if (height <= ofsy) { \
178 if ((y + height) > ClipY2 + 1) { \
182 height = ClipY2 - y + 1; \
186 if (width <= ofsx) { \
194 if ((x + width) > ClipX2 + 1) { \
198 endx = (x + width) - (ClipX2 + 1); \
199 width = ClipX2 - x + 1; \
213 #endif // !__INTERN_VIDEO_H__
void ColorCycleSurface(SDL_Surface &surface)
Definition: video.cpp:502
int ClipY2
current clipping bottom right
Definition: video.cpp:167
ColorIndexRange(unsigned int begin, unsigned int end)
Definition: intern_video.h:67
void LazilyMakeColorCyclingTextures(CGraphic *g, std::vector< ColorIndexRange > ranges)
Make OpenGL textures for color cycling.
int ClipX1
Profile, frames out of sync.
Definition: video.cpp:164
int ClipY1
current clipping top left
Definition: video.cpp:165
void MakeColorCyclingTextures(CGraphic *g, int count)
unsigned int begin
Definition: intern_video.h:71
unsigned int end
Definition: intern_video.h:72
int ClipX2
current clipping top left
Definition: video.cpp:166
Definition: intern_video.h:64
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.