game/sdlpp/sdlpp_window.hpp

25 lines
581 B
C++
Raw Normal View History

2020-11-21 19:57:40 +00:00
#ifndef SDLPP_HPP_WINDOW
#define SDLPP_HPP_WINDOW
#include "sdlpp_common.hpp"
#include <iostream>
namespace SDLPP {
2020-11-22 22:37:55 +00:00
class SDLPPSCOPE Window {
2020-11-21 19:57:40 +00:00
public:
Window();
Window( const std::string &window_name );
Window( const std::string &window_name, uint32_t width, uint32_t height );
Window( const std::string &window_name, uint32_t width, uint32_t height,
uint32_t posx, uint32_t posy );
void setResizable( bool resizable );
virtual ~Window();
SDL_Window *getWindowPtr();
private:
SDL_Window *window = NULL;
};
} // namespace SDLPP
#endif