Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 41819

C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

6 votes
1 answer
1k views

How to do collision detection for fluids in 3D? [closed]

Is there an algorithm or a technique which can detect the collision between 3D fluids? I currently treat my fluids as dynamic meshes. Is it possible to find collisions with these, or will I need a di …
The Light Spark's user avatar
1 vote

Constant buffer not updating

Your rotation will clearly always be the same every frame. The code you wrote there just sets the rotation to one single value every frame, if this code is run every frame, that is. Instead, have a va …
The Light Spark's user avatar
3 votes
2 answers
566 views

Is std::deque the best option for storing my graphics objects?

I am currently implementing an object buffer, which stores all the objects used in the game at one place. All other components of the game, like the user interface, the level loader, etc, add objects …
The Light Spark's user avatar
2 votes

Is FreeGLUT still a good choice?

I would only recommend using FreeGLUT if you are just learning OpenGL and don't want to worry yourself with things like window and context creation. FreeGLUT is also use full when you would want to …
The Light Spark's user avatar
3 votes

How can rotate a 2D textured quad in legacy OpenGL immediate mode?

glRotatef(GLfloat angle, Glfloat x, GLfloat y, GLfloat z); The Above function is what you need for your purpose. It " multiplies the current matrix by a rotation matrix", as the OpenGL documentation …
The Light Spark's user avatar
1 vote
Accepted

Create entity from template in component-based engine

Give your ObjectFactory class a make_copy function, that takes in an entity and can create a complete separate clone of that given entity, creating new components which are identical to the original e …
The Light Spark's user avatar
24 votes
3 answers
9k views

Is it normal for a game to use 100% CPU?

I just implemented multi-threaded input handling in my game engine where the code that polls the OS to gather input from it and time stamps them is in a separate thread and each frame in the main thre …
The Light Spark's user avatar