30 #ifndef __INTERN_VIDEO_H__
31 #define __INTERN_VIDEO_H__
68 begin(begin), end(end)
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:409
void LazilyMakeColorCyclingTextures(CGraphic *g, std::vector< ColorIndexRange > ranges)
Make OpenGL textures for color cycling.
Definition: graphic.cpp:1217
int ClipX1
Profile, frames out of sync.
Definition: video.cpp:171
int ClipY1
current clipping top left
Definition: video.cpp:172
unsigned int end
Definition: intern_video.h:72
void MakeColorCyclingTextures(CGraphic *g, int count)
Definition: graphic.cpp:1235
int ClipX2
current clipping top left
Definition: video.cpp:173
Definition: intern_video.h:64
unsigned int begin
Definition: intern_video.h:71
ColorIndexRange(unsigned int begin, unsigned int end)
Definition: intern_video.h:67
int ClipY2
current clipping bottom right
Definition: video.cpp:174