DOMO ARIGATO, MISUTA ROBOTO :trollface:
This commit is contained in:
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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() {
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user