TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Window.h
1#pragma once
2
3
4#include "../../pch.h"
5
6
7namespace TazGraphEngine {
8
9 enum WindowFlags { INVISIBLE = 0x1, VISIBLE = 0x2, FULLSCREEN = 0x4, BORDERLESS = 0x8 };
10
11 class Window
12 {
13 public:
14 Window();
15 ~Window();
16
17 int create(std::string windowName, int screenWidth, int screenHeight, float scale, unsigned int currentFlags);
18
19 void swapBuffer();
20
21 void setScreenWidth(int width) { _screenWidth = width; }
22 int getScreenWidth() { return _screenWidth; }
23 void setScreenHeight(int height) { _screenHeight = height; }
24 int getScreenHeight() { return _screenHeight; }
25 void setScale(float scale) { _scale = scale; }
26 float getScale() { return _scale; }
27 SDL_Window* _sdlWindow = nullptr;
28 SDL_GLContext glContext;
29 private:
30 int _screenWidth = 0, _screenHeight = 0;
31 float _scale = 0.0f;
32 };
33
34}
Definition Window.h:12