spacebox/src/Display.hpp

33 lines
607 B
C++

#ifndef Display_h_
#define Display_h_
#define GLM_ENABLE_EXPERIMENTAL
#include "glm/vec2.hpp"
#define GL_GLEXT_PROTOTYPES
#define GLEW_STATIC
#include "glew/glew.h"
#include <SDL_image.h>
#include "sdl2-gfx/SDL2_gfxPrimitives.h"
#include "sdl2-gfx/SDL2_rotozoom.h"
#include "SDL.h"
#include "Node.hpp"
struct Display : Node
{
const static int bpp = 24;
Display(Node*);
glm::ivec2 get_window_size();
void get_screen_pixels(unsigned char*, int, int, int = 0, int = 0);
SDL_Surface* get_screen_surface();
SDL_Surface* get_screen_surface_from_pixels(unsigned char*);
};
#endif