Tagged Questions
0
votes
1answer
67 views
Would it be inefficient to call LWJGL from C++?
I like LWJGL, but Java? Not so much. I recently found out a way to call Java methods from C++. But would this be inefficient? I mean, calling a C/C++ DLL from Java, just to be called back again into ...
9
votes
3answers
903 views
Is GNU GCC used for AAA games?
GNU GCC is a very common compiler, but it seems like almost no one uses it for bigger projects like AAA games. To me, it's works just fine, never had a problem with it. But I wonder why all AAA games ...
1
vote
2answers
108 views
Exclusive mouse movement with WM_INPUT
Microsoft seems to recommend using WM_INPUT for input. I want to only get relative mouse input and hide the mouse cursor all together for a short while (For gesture based input). However, using ...
-4
votes
3answers
198 views
What compilers are used in game development? [closed]
I was kinda wondering what compilers are used in game development, since the game development industry always tries to squeeze every inch of performance out their software, using, among other, ...
0
votes
2answers
431 views
Is there an alternative to SDL 1.3 for a C++ game that should run on iOS and Android?
I've used SDL for many desktop games, always as the cross-platform glue for:
Creating a window
Processing input
Rendering images
Rendering fonts
Playing sounds/music
It has never disappointed me ...
2
votes
5answers
485 views
Is It More Efficient To Make Games In Languages I Like?
Is it more "efficient" to develop games with languages you're good with and like best rather then the "best" language?
For example: I like C# (It's My First Language) and I'm really good at it and ...
-3
votes
1answer
252 views
Why it is C++? [duplicate]
Possible Duplicate:
Why has the industry switched from C to C++?
Since many organizations have demonstarated Object orientation in C and we all know its ABI compatibility that C++ lacks, ...
5
votes
1answer
465 views
Floating Point Precision (fp:precise vs. fp:fast)
In C or C++, does the compiler option of floating point precision really make a difference in real world (small/indie) games?
From my observations, setting fp:fast is many times faster than ...
0
votes
0answers
108 views
Incorrectly says that 2 rectangles collide: whats going wrong?
I am using and expanding a function that detects whether two 2d rotated rectangles collide. The function is from here.
My Problem: The function incorrectly detects a collision between the following ...
4
votes
4answers
2k views
Why has the industry switched from C to C++?
First of all i would like to have a real answer, i'm always trying to get more from various sources and articles, and when I read things like C++ is slow because it has virtual functions and because ...
4
votes
2answers
206 views
Advice creating build process for medium sized game project
I've been looking through the SCons build script for Doom3 and researching different approaches to build processes used by professional game developers/studios (C/C++) and I've come across a few ...
3
votes
3answers
2k views
Simple 2D Collision Detection Algorithm Library
I'm building a simple OpenGL game and I was looking for some simple collision detection library for objects like squares, triangles and circles. Any suggestions?
PS: Preferably a library that is very ...
14
votes
3answers
2k views
How much assembly is really used in modern game code?
On average, how often is assembly used in modern game code?
Specifically on platforms that already have good C++ compilers, like x86, PPC, or ARM--because I assume games on embedded systems make ...
-1
votes
1answer
310 views
How to fix OpenGL Co-ordinate System in SFML?
My OpenGL setup is somehow configured to work like so:
(-1, 1) (0, 1) (1, 1)
(-1, 0) (0, 0) (1, 0)
(-1, -1) (0, -1) (1, -1)
How do I configure it so that it works like so:
(0, 0) (SW/2, 0) (SW, 0)
...
2
votes
1answer
252 views
Fog with Blend in OpenGL
I want to add fog in my scene which contain transparent textures made by Blend ,
when i enable the fog the transparent textures appear white From a distance but when i disable it the textures ...
1
vote
0answers
503 views
Getting started with game dev- allegro and C/C++ [closed]
Was considering getting started with Allegro for learning game development, and I was wondering (yes, sorry) whether I should go with C or C++ :P. I know C++ is way more common in the game dev world ...
5
votes
1answer
527 views
Advice for programming a lobby for a network multiplayer game?
I'm working on learning network programming. I'm working on a simple card game. The basic idea is:
Players enter the lobby
Players see tables
Players sit at an empty seat
Once they sit, they do not ...
0
votes
2answers
463 views
Ogre3D: customize water demo
On the water demo supplied with Ogre3D's SDK, controls are set to actually control the camera and environment, but not actually the ogre head that generates the disturbances. I tried digging into the ...
7
votes
6answers
509 views
Is it possible to write a game that doesn't require a GPU?
I already know many computers today have a GPU that supports DirectX and OpenGL.
But what about computers that don't? Can I write a simple 2D game that does not rely on the GPU, so that it works even ...
1
vote
2answers
496 views
Trying to implement Render to Texture
I'm having trouble implementing render to texture with OpenGL 3.
My issue is that after rendering to the frame buffer, it appears the rendered object becomes deformed, which may imply a bad ...
8
votes
2answers
2k views
What are the best ways to serialize and unserialize network messages for C/C++ multiplayer game?
We are using JSON right now and want to move to a binary format for some types of messages between client and server.
Should I just read structs into the socket? Use proticol buffers/thrift?
How ...
1
vote
2answers
331 views
Are C and Objective-C sufficient for creating games on the iOS?
These days, I'm focusing on games development on the iOS.
C++ is the lingua franca for games development but seriously, I prefer to code in C programming language, not in C++.
So for iOS games ...
-5
votes
2answers
395 views
I want to use Python as a scripting language for my game, can I use it purely with C (not C++)?
I want to use Python as a scripting language for my game, can I use it purely with C (not C++)? It is important to me that I not use C++, and purely use C instead.
-5
votes
2answers
521 views
Is it possible to use OpenGL purely with C instead of C++?
Is it possible to use OpenGL purely with C instead of C++? I am wanting to make sure there won't be any problems with my using C and not C++. OpenGL does not depend on any C++ libraries right?
4
votes
3answers
621 views
scanline filling a trapezoid
I have computed the four corners of the viewable bit of 2d map in my 3d view. So I know the trapezoid that is visible, and I want to 'visit' these tiles in my map.
So my algorithm is basically a ...
0
votes
0answers
785 views
C++ or C for Indie Dev [closed]
I've been learning C++ for about a week now (I haven't got through that much) because I'm finding it a very hard to understand most things (maybe because there is so much to it).
As I've been looking ...
1
vote
3answers
1k views
Walkin on terrain - Opengl
i wanna walk to terrain...
first i created the terrain
void desenha_terreno(float px, float pz){
for (int z = 0; z < iwidth-1; z++)
{
glBegin(GL_TRIANGLE_STRIP);
for (int x = 0; x < ...
1
vote
1answer
310 views
GML and C/C++ language question
Is GML (Game Maker Language) script is clipped in C/C++ language, and GML wrote the code to Visual Studio C++, it will always be correct, because it is just under C++ language features?
I think that ...
8
votes
4answers
12k views
Writing Game Engine from scratch with OpenGL
I want to start writing my game engine from scratch for learning purpose, what is the prerequisites and how to do that, what programming languages and things you recommend me? Also if you have good ...
3
votes
1answer
318 views
Is there are a good double-precision small matrix SIMD library for x86?
I'm looking for a SIMD library focused small (4x4) matrix operations for graphics. There's lots of single precision ones out there, but I need to support both single and double precision.
I've looked ...
3
votes
2answers
1k views
What shall I choose between CoronaSDK or AirPlay?
1st Question is I want to write a board game for iOS and Android so I'm coming up with CoronaSDK and AirPlay. Since I have a mac, development platform is not an issue but the problem is which one ...
5
votes
2answers
950 views
3D primitive rendering library
I am looking for a library which would easily allow me to render shapes (cubes, spheres, lines, circles, etc.) in 3D3 and OpenGL if possible. I want to be able to rapidly design visual debugging tools ...
4
votes
1answer
2k views
State Machines: State Object versus sequential check: what are the pro/cons?
I dont know much about finite state machine in AI or other game behaviors in game, except this quick tutorial with a Miner: http://www.ai-junkie.com/architecture/state_driven/tut_state1.html which is ...
-1
votes
1answer
665 views
Is quake3/ioquake's OOP good to do a large game?
Everybody heard about the release of the Quake3 source code.
But since it's plain C but uses OOP a little, isn't it too complex to decipher or to use for large projects such as a 3rd person ...
5
votes
2answers
937 views
How do I build games with scripted actors?
The idea
I have an idea for a game. A few games, actually, that can built on top of the same general design.
There is a game world that the player and the other actors exist in. The player can get ...
4
votes
6answers
3k views
Any free 2D C\C++ framework that supports iPhone?
I'm looking for a C\C++ game dev framework that supports iPhone.
It should have least Objective-C requirement to use it.
The closest one I could find is Kanji engine.
But that's not free.
Other ...
11
votes
1answer
3k 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 ...
6
votes
2answers
992 views
Sending a struct containing a string over network
I'm trying to send structs as neatly sorted packets using iPhone Game Kit..
I have a struct which looks like:
typedef struct {
int coolStuff;
char playerID[100];
} MyStruct;
Then I'm using ...
8
votes
1answer
2k views
Which c/c++ model animation library for OpenGL
I'm fairly new to game development, played around with xna before and just learning OpenGL & c now and I'm interested to know which c/c++ based model animation libraries are out there and which ...
28
votes
5answers
3k views
Any tips for creating cross-platform games?
Do you have any tips/recommendations when creating a cross-platform game in C/C++?
