Créé branche

This commit is contained in:
Louis-Charles Gaumond
2023-10-23 16:10:21 -04:00
parent 793da52871
commit f4d4f1eca0
4 changed files with 73 additions and 22 deletions

View File

@@ -4,6 +4,7 @@
#include <string>
#include <SFML/Window.hpp>
#include "define.h"
#include "texture.h"
// Documentation de SFML: http://www.sfml-dev.org/documentation/index-fr.php
class OpenglContext
@@ -30,7 +31,7 @@ public:
virtual void MouseMoveEvent(int x, int y) = 0;
virtual void MousePressEvent(const MOUSE_BUTTON &button, int x, int y) = 0;
virtual void MouseReleaseEvent(const MOUSE_BUTTON &button, int x, int y) = 0;
virtual void RenderSplashScreen();
bool Start(const std::string& title, int width, int height, bool fullscreen);
bool Stop();
@@ -62,6 +63,7 @@ private:
bool m_fullscreen;
std::string m_title;
float m_lastFrameTime;
Texture m_textureSplash;
};
#endif // OPENGLCONTEXT_H__