Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
832 views

Debug version runs faster than Release version

My Visual Studio 2019, 64-bit version of Tetris using OpenGL runs significantly faster, 3X, in Debug mode than in Release mode. The image above shows the board. Each cycle of the rendering or game ...
user34299's user avatar
  • 133
0 votes
1 answer
1k views

Set / Get UserPointer - What Do They Do?

I see a lot of talk about glfwGetWindowUserPointer() and glfwSetWindowUserPointer() but I can't for the life of me understand what these functions actually do. From http://discourse.glfw.org/t/what-...
Ryan Walter's user avatar
1 vote
1 answer
228 views

Game not responding on different computer with Intel graphics

I have a game that uses SDL2 and OpenGL 3.3 with Visual Studio. It runs fine on the computer that built it, but it did not work on other Windows computers. Initially, it would complain about missing ...
Eric's user avatar
  • 41
1 vote
1 answer
1k views

Cross-platform GLFW build with CMake

I know this is probably a popular question and can be very vague, so I'm going to be as specific as possible. I don't really know how to even form this question to be able to search Google, so I came ...
Dave's user avatar
  • 125
1 vote
2 answers
11k views

Getting error when following learnopengl.com "Hello Window" Tutorial; how can I fix them?

I am not sure what to do, I have added the include / lib files in the IDE include / lib folders. But I am getting these errors. Someone please help me! What am I doing wrong? Do I need to add some ...
connormackayscot's user avatar
-1 votes
1 answer
864 views

Detect camera collision in OpenGL without using bounding box

Is there any way to detect collisions in OpenGL without using any kind of bounding box? I have created a maze/labyrinth and I want to move the camera/player inside ...
Vipin Verma's user avatar
0 votes
1 answer
1k views

OpenGL multiple viewports with 3d-2d viewing

I am trying to draw two viewports, the one on top having a 3D stuff into it, and the other at bottom with a 2D stuff fed into it. However, whatever 2D stuff i draw in the bottom viewport is not ...
Vipin Verma's user avatar
1 vote
0 answers
3k views

LNK2019 unresolved external symbol __imp_ glDrawArrays@12 referenced in function _main [closed]

I try this code from tutorial for learn Modern OpenGL in Visual Studio 2015: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/ With GLUT (from other tutorial), it ...
Arlu's user avatar
  • 11
1 vote
0 answers
320 views

Error OpenGL null Cocos-2D/Visual Studio [closed]

When I try to execute a game code fully functional on Visual Studio 2013, using Cocos-2D (3.8.1) library this error jumps on screen. (I'm working on a laptop) OpenGL 1.5 or higher is required (your ...
Zoroastiran's user avatar
0 votes
1 answer
1k views

Setting up a Visual Studio project for OpenGL and OpenGL ES

I want to make a small game with OpenGL and glew for desktop, android and web. So far I know how to set up a project for opengl and a project for opengl es but I would like to have the game source ...
Superwayne's user avatar
-4 votes
1 answer
2k views

Licensing and commercial game development [closed]

I am thinking about developing my game and have a few questions. I am going to use these softwares and libraries : OpenGL, Visual Studio Express, GLFW. I have publishing and selling my game in plans. ...
Vendetta8247's user avatar
3 votes
1 answer
2k views

what's the best way of panning in a 2D scene

Up to know I have used this functions to create a 2D scene (for showing images) and to pan on it ( in fact it's a customization of the class COpenGLControl here in codeguru) : ...
Sepideh Abadpour's user avatar
4 votes
1 answer
554 views

Can you help me solve the paradox that has confused me about the glViewport and glOrtho functions?

suppose that I have an image that I want to apply as a texture on a geometry (at time we don't consider texture mapping but this image has a certain width and height here it is a 512x512 image) I want ...
Sepideh Abadpour's user avatar
11 votes
3 answers
5k views

Why is it possible to encounter a texture coordinate greater than 1 or less than 0

I'm studying a text about texture mapping and in the preparing to draw session, I read: Define the texture wrapping ...
Sepideh Abadpour's user avatar
2 votes
2 answers
8k views

Visual Studio 2010 C++ & OpenGL project cannot detect .lib files [closed]

So I'm trying to start a C++, OpenGL project on Visual Studio 2010, and I have put glut.h and glut32.dll in the project directory, along with the glut.dll and glut32.lib files in a folder named "glut" ...
OddCore's user avatar
  • 131