31 #include "render/graphics.h"
33 #ifdef __native_client__
64 SDL_SWSURFACE, w, h, 24,
65 0xff0000, 0x00ff00, 0x0000ff, 0x000000);
73 const size_t lineSize = 3 * w;
74 GLubyte *
const buf =
new GLubyte[lineSize];
83 for (
int i = 0; i < h2; i++)
85 GLubyte *
const top =
static_cast<GLubyte*
>(
87 GLubyte *
const bot =
static_cast<GLubyte*
>(
90 memcpy(buf,
top, lineSize);
91 memcpy(
top, bot, lineSize);
92 memcpy(bot, buf, lineSize);
bool getBoolValue(const std::string &key) const
static void deleteFBO(FBOInfo *const fbo)
static void createFBO(const int width, const int height, FBOInfo *const fbo)
SDL_Surface * getScreenshot()
~OpenGLScreenshotHelper()
#define MSDL_CreateRGBSurface(flags, w, h, d, r, g, b, a)
const Image *restrict const top
GraphicsManager graphicsManager
#define mglReadPixels(...)
#define mglGetIntegerv(...)
#define mglPixelStorei(...)
bool screenshot(InputEvent &event)