mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
27 lines
519 B
C++
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
|