Search found 35 matches
- November 18th, 2012, 9:02 am
- Forum: Everything
- Topic: Code snippet: a nifty compare function
- Replies: 2
- Views: 1534
Re: Code snippet: a nifty compare function
Both take you to the same result but the logical && is the one you would prefer to use. When having expr1 & expr2 the compiler evaluates the first expression than the second and finally puts the & sign and gives you the result. When using the logical && if expr1 is a "false" one, than expr2 does not...
- November 17th, 2012, 6:47 pm
- Forum: Everything
- Topic: Directx 9 or 10
- Replies: 3
- Views: 1876
Re: Directx 9 or 10
He includes d3d9.h in the D3DGraphics header so it would be DirectX 9.
- November 17th, 2012, 6:42 pm
- Forum: Everything
- Topic: Acessing same class object throughout whole game.
- Replies: 31
- Views: 10577
Re: Acessing same class object throughout whole game.
Ill try to give you an advice on your code and coding style. First of all you should follow some naming conventions. http://en.wikipedia.org/wiki/Naming_conventions_(programming)#C_and_C.2B.2B It is a bit hard to read a code where class names and instances are both mixed lower and upper case. One ot...
- November 17th, 2012, 1:53 pm
- Forum: Everything
- Topic: huh?
- Replies: 3
- Views: 1860
Re: huh?
Imagine you have screen width of 10 pixels and screen height of 5 pixels. So you have an array pSysBuffer[50] 0 1 2 3 4 5 6 7 8 9 * * * * * * * * * * 0 * * * * * * * * * * 1 * * * * * * * * * * 2 * * * * * * * * * * 3 * * * 0 * * * * * * 4 Now you want to draw pixel on the position marked with 0, wh...
- November 7th, 2012, 12:47 am
- Forum: Everything
- Topic: Animated Sprites in a single bmp.
- Replies: 18
- Views: 6136
Re: Animated Sprites in a single bmp.
I dont think you have to touch the loadbmp function. It just loads the whole bmp pixel data into a surface(array of pixeldata). So after that when you call the draw method it should draw only a specific portion of that surface.