DOMO ARIGATO, MISUTA ROBOTO :trollface:

This commit is contained in:
MarcEricMartel
2023-11-06 16:43:52 -05:00
parent d49d5cdebc
commit 253e49b1cc
12 changed files with 180 additions and 28 deletions

View File

@@ -305,6 +305,10 @@ void Engine::Init() {
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glBlendEquation(GL_FUNC_SUBTRACT);
if (m_istarted)
return;
else m_istarted = true;
//
// Objet de skybox avec sa propre texture et son propre shader!
m_skybox.Init(0.2f);

View File

@@ -126,7 +126,7 @@ private:
bool m_resetcountdown = false;
bool m_soloMultiChoiceMade = false;
bool m_stopcountdown = false;
bool m_keyK = false;
bool m_keyL = false;
bool m_keyW = false;

View File

@@ -9,7 +9,7 @@ Mesh::~Mesh() {
void Mesh::FlushMeshToVBO() {
m_vertexBuffer.SetMeshData(m_vd, m_vcount);
m_vcount = 0;
//delete[] m_vd;
delete[] m_vd;
}
void Mesh::FlushVBO() {

View File

@@ -15,7 +15,7 @@ bool OpenglContext::Start(const std::string& title, int width, int height, bool
m_title = title;
m_fullscreen = fullscreen;
InitWindow(width, height);
Init();
LoadResource();

View File

@@ -52,6 +52,8 @@ protected:
void HideCursor();
void ShowCrossCursor() const;
bool m_istarted = false;
private:
void InitWindow(int width, int height);
MOUSE_BUTTON ConvertMouseButton(sf::Mouse::Button button) const;