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