gprof is not working properly on my system (MinGW) so I\'d like to know which one of the following snippets is more efficient, on average.
We have a rectangular area with translucent walls and a few light sources.We are considering only the top view,so it is a 2D problem. We need to find the approximate lighting (signal strength)at each
I was wondering what would be the most efficient way to make a map in 2D for a java game? I know this does depend on the way the开发者_JS百科 game will be seen and made so I have included info about
I need my 2D collision detection algorithm to be scalable, but I fear it is not. My algorithm does this:
Here is a part mof my code: using System; using System.C开发者_开发百科ollections.Generic; using System.Linq;
I want to create a high performace 2D program. I\'m using VC++2008. Suppose I have created the main window. What I want is to draw a red rectangle (top left: 10,20, bottom right: 200, 300) in the mai
I am not quite sure about the differences between the classes System.Windows.Media.Drawing and 开发者_运维技巧System.Windows.Shapes.Shape. They both expose functionality related to 2D graphics in WPF.
I\'m looking for a way to combine affine transforms in such a way so that the effect is equivalent to using each transform to manipulate a shape in succession. The problem is that if I simply concaten
How can I obtain the vertices of a GeneralPath object? It seems like this should be possible, since the path is constructed f开发者_JS百科rom points (lineTo, curveTo, etc).
I want to write something like this: http://www.youtube.com/watch?v=5S4KpCkHDqM I mean, I want to have 2D gaming space, but to have stylized as 3D, so my cha开发者_高级运维racters will move on the sur