Tagged Questions
4
votes
4answers
400 views
Why do most game devs prefer OGL for OS X and D3D for Windows? [closed]
Today I decided to check what Diablo 3 developers used to do graphics: OpenGL or Direct3D? My mind was completely blown: For Windows, they've used D3D and for OS X they've used OGL.
I did some ...
0
votes
1answer
322 views
Does SFML render it's graphics using OpenGL internally?
By that, I mean that SFML has an abstraction for OpenGL? Sort of like SDL's blit functions, but using OpenGL internally?
"Yes SFML uses OpenGL for all the graphical stuff. "
Received this comment ...
1
vote
3answers
1k views
How to draw 2D images using OpenGL, in SDL?
After everything, I managed to find a simple piece of code that shows how to draw a 2D image with openGL:
#include "SDL/SDL.h"
#include "SDL/SDL_opengl.h"
#include "SDL/SDL_image.h"
...
2
votes
3answers
209 views
Multithreaded game fails on SwapBuffers in render thread at exit
The render loop and windows message loop run on separate threads. The way the program exits is that after PostQuitMessage is called in WM_DESTROY the message loop thread signals the render loop thread ...
7
votes
1answer
4k views
Freeglut vs SDL vs GLFW
i need to port my game project from Android (written in C, OpenGL ES 2.0, thanks to NDK) to Windows and Linux platforms. Of course i will need to rewrite some platform depended code, but now i stuck ...
0
votes
2answers
476 views
How to request a specific OpenGL version?
I'm working on an OpenGL project, coming from D3D. They're organised in very different ways, so it's tricky going :)
Is there any way for a Windows application to request a specific OpenGL context ...
-1
votes
1answer
147 views
Opengl tutorials [duplicate]
Possible Duplicate:
What are some good learning resources for OpenGL?
Starting out with OpenGL when most tutorials are out of date
I know that there are many questions like this, but i ...
1
vote
1answer
166 views
Why am I getting a “multiple definition of *” error when initializing OpenGL extensions?
I'm creating a game engine using OpenGL, and I'm initializing the extensions manually, i.e. this:
// .h file
PFNGLACTIVETEXTUREPROC glActiveTexture;
/* .cpp file, initialization function */
...
0
votes
2answers
225 views
Is it possible to create a Facebook game that is a Windows executable?
I'm thinking of trying to make a game, and I heard Facebook is good place to make it popular, but I don't want to make a sprite-based Flash game, I want to use OpenGL for rendering to get nice ...
2
votes
2answers
778 views
Why is OpenGL using 100% CPU shortly after start up when wglSwapIntervalEXT is enabled?
I have a game which uses SFML, which in turn uses OpenGL.
When I run the game, it will use 100% CPU for (usually) about 24 seconds, and then immediately falls down to normal usage. I can't figure out ...
4
votes
2answers
3k views
Does Unity for PC use Direct3D or OpenGL?
I am a mac developer using Unity and I hardly use a PC. When you build a Unity game for Windows, does it use Direct3D or OpenGL?
P.S. I'm not sure if it's called Direct3D or DirectX
3
votes
2answers
1k views
How does one write to another process's OpenGL/DirectX context?
I want to write a short of chat client that display the messages in-game (OpenGL/DirectX), but I really don't know how to handle this.
It is easy to write my client in my graphic context... but what ...
2
votes
2answers
2k views
How detect which OpenGL texture formats are natively supported?
For example, how detect if my videocard doesn’t support "bgr8" and convert it to another format, such as "rgba8" in software mode.
UPDATE: Sorry for the confusion. This question more about situation ...
1
vote
1answer
130 views
When rendering on two different computers, the texture is glitchy
I am using Ogre3D, and have been using it for a while. Also lately, I have been using the Opengl Rendering system that is included in Ogre, only because Directx will not compile correctly(Will post ...
3
votes
2answers
499 views
How can I hook into OpenGL initialization on Windows?
I want hook all OpenGL games/applications. I want load my library only if application actually use OpenGL. Something like Direct3DCreate9 for Direct3D 9 or CreateDXGIFactory for Direct3D 10/11.
I ...
3
votes
1answer
2k views
Getting started with cross-platform game development
I am looking for a starting place to develop a crossplatform OpenGL game that runs on Mac, PC and potentially Linux. The difficulty is that I don't want to use an existing graphics library.
I've ...
4
votes
3answers
2k views
Trapping mouse inside window in OpenGL with GLUT?
I perfectly understand that GLUT is limited and the following problem can't probably be solved with OpenGL/GLUT, but since I don't know exactly if it can or not, I better just ask. Maybe I'm doing ...
1
vote
1answer
189 views
Can I change the order of these OpenGL / Win32 calls?
I've been adapting the NeHe OpenGL/Win32 code to be more object-oriented and I don't like the way some of the calls are structured.
The example has the following pseudo-structure:
Register ...
3
votes
2answers
380 views
WinAPI window taking 50% of CPU when idle
I'm currently working on a game that creates a window using WindowsAPI. However, at the moment the process is taking up 50% of my CPU. All I am doing is creating the window and looping using the ...
11
votes
1answer
4k views
How can I tell how much video card memory I'm using?
I want to programmatically determine at runtime how much video card memory is being used by my program. Specifically I'm wondering about how to do it on a Windows machine using OpenGL, but am ...
2
votes
2answers
821 views
How to tell if a glut window has focus from c#
How can I tell if a glut window has focus? Im using c#/tao, Ill use p/invokes if necessary.
Basically I want to ignore input if it doesn't have focus.