Removed mouse centering

This commit is contained in:
Benjamin Kyd
2019-04-18 19:41:34 +01:00
parent f04325e1eb
commit b32024ec68
2 changed files with 5 additions and 5 deletions

View File

@@ -68,8 +68,8 @@ Display::Display(std::string name, Logger& logger, int w, int h,
logger << LOGGER_INFO << "Creating OpenGL context" << LOGGER_ENDL;
glContext = SDL_GL_CreateContext(window);
SDL_WarpMouseInWindow(window, w / 2, h / 2);
SDL_SetRelativeMouseMode(SDL_TRUE);
// SDL_WarpMouseInWindow(window, w / 2, h / 2);
// SDL_SetRelativeMouseMode(SDL_TRUE);
// Set VSYNC swap interval
if (vsyncMode == VSYNC_DEFAULT || vsyncMode == VSYNC_ENABLED) {
@@ -166,8 +166,8 @@ Display::Display(std::string name, Logger& logger, int w, int h,
logger << LOGGER_INFO << "Creating OpenGL context" << LOGGER_ENDL;
glContext = SDL_GL_CreateContext(window);
SDL_WarpMouseInWindow(window, w / 2, h / 2);
SDL_SetRelativeMouseMode(SDL_TRUE);
// SDL_WarpMouseInWindow(window, w / 2, h / 2);
// SDL_SetRelativeMouseMode(SDL_TRUE);
// Set VSYNC swap interval
if (vsyncMode == VSYNC_DEFAULT || vsyncMode == VSYNC_ENABLED) {

View File

@@ -33,7 +33,7 @@ Mesh::Mesh(ObjLMesh mesh) {
void Mesh::loadFromObj(ObjLMesh mesh) {
OBJLtoGLM(mesh, vertices, normals, texCoords, indices);
// OBJLtoIndices(mesh, indices);
// OBJLtoIndices(mesh, indices);E
//Logger logger;
//for (int i = 0; i < 100; i++) {