1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-17 10:08:29 +02:00
VVVVVV/desktop_version/src/GraphicsUtil.h

21 lines
570 B
C
Raw Normal View History

2020-01-01 21:29:24 +01:00
#ifndef GRAPHICSUTIL_H
#define GRAPHICSUTIL_H
#include <SDL.h>
2020-01-01 21:29:24 +01:00
void setRect(SDL_Rect& _r, int x, int y, int w, int h);
SDL_Surface* GetSubSurface( SDL_Surface* metaSurface, int x, int y, int width, int height );
void DrawPixel(SDL_Surface* surface, int x, int y, SDL_Color color);
2020-01-01 21:29:24 +01:00
SDL_Color ReadPixel(const SDL_Surface* surface, int x, int y);
2020-01-01 21:29:24 +01:00
void UpdateFilter(void);
void ApplyFilter(SDL_Surface** src, SDL_Surface** dest);
2020-01-01 21:29:24 +01:00
bool TakeScreenshot(SDL_Surface** surface);
bool UpscaleScreenshot2x(SDL_Surface* src, SDL_Surface** dest);
2020-01-01 21:29:24 +01:00
#endif /* GRAPHICSUTIL_H */