Files
vimix/Screenshot.h
2020-04-05 10:55:21 +02:00

27 lines
519 B
C++

#ifndef SCREENSHOT_H
#define SCREENSHOT_H
class Screenshot
{
int Width, Height;
unsigned int * Data;
public:
Screenshot();
~Screenshot();
bool IsFull();
void Clear();
void CreateEmpty(int w, int h);
void CreateFromCaptureGL(int x, int y, int w, int h);
void RemoveAlpha();
void FlipVertical();
void SaveFile(const char* filename);
void BlitTo(Screenshot* dst, int src_x, int src_y, int dst_x, int dst_y, int w, int h) const;
};
#endif // SCREENSHOT_H