mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
93ec2c6cca
The plan is to have Steam screenshots always be 2x, but in the VVVVVV screenshots directory (for F6 keybind) save both 1x and 2x. Again, just for now, the 2x screenshot is being saved to a temporary location for testing and will get proper timestamps later.
20 lines
570 B
C
20 lines
570 B
C
#ifndef GRAPHICSUTIL_H
|
|
#define GRAPHICSUTIL_H
|
|
|
|
#include <SDL.h>
|
|
|
|
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);
|
|
|
|
SDL_Color ReadPixel(const SDL_Surface* surface, int x, int y);
|
|
|
|
void UpdateFilter(void);
|
|
void ApplyFilter(SDL_Surface** src, SDL_Surface** dest);
|
|
|
|
bool TakeScreenshot(SDL_Surface** surface);
|
|
bool UpscaleScreenshot2x(SDL_Surface* src, SDL_Surface** dest);
|
|
|
|
#endif /* GRAPHICSUTIL_H */
|