You do it like this: The only special case is if the hero is at the very upper, leftmost PIXEL an…
Fred —
But let's say you do Consider the area that's at the very top/left of the world. At that point, w…
The point here isn't to [visually] map a rectangle onto a sphere in the geometrical sense, but mer…
Fred —
There's really no way to tile a sphere with rectangles without introducing annoying distortions an…
I've done a quick batch file to download 1080p youtube videos from windows command line. It is bas…
Understood. It makes sense, I guess, since you might want to init only particular values, and don'…
So I want to investigate all of this a bit more. Could you please share your brief experiment wit…
Casey fixes this in a later episode. The latest code uses handmade_%random%.pdb
Sure. The OSAtomics gives you thread safety for operations like add or increment by ensuring sequ…
I´m up to day 23 and everything was working fine for the looping, reloading and playing the users…
Although the footnotes are interesting, may I be so blunt as to remind us all that what is being d…
Yes, I believe that Windows has never supported big-endian CPUs, but I could be wrong about that. …
It's the last one - Windows probably doesn't support big endian CPU anymore (because it doesn't ne…
I thought it's actual CPU or something that's Little Endian or not and it has nothing to do with …
mmozeiko, I think it's not the case. I am only drawing WeirdGradient right now. It's instantaneous…
On modern Windows you don't need to worry about endianess at all. It is always little endian :) An…
Hey guys! Somewhere around Day 25 of HMH Casey was using win32-defined union called LARGE_INTEGER …
It could be that you simply can not get 16.6 msec with current bitmap drawing code - it is terribl…
Flyingsand, thanks a lot. Could you please elaborate about using OSAtomic and when I need to use i…
@Flyingsand, so I've just tried a CPU-melting way for the first time for some reason =) And I am g…
So I've actually implemented both of the methods you mention for getting the sound from the game i…
Fred —
Simulating rigid body physics on a spherical world accurately is very tricky, unless your objects …
Yeah, this is C++11 thing. If you use member initialiation like this, then C++ compiler generates …
Hey guys! I am trying to implement sound output using OS X CoreAudio APIs. The problem is that Cor…
Most likely this is due to
Oops, I actually was setting a value for facingDirection inside the struct declaration itself. Fo…
Do you happen to have nested structures inside your Entity? If yes, those will get nulled recursi…
In handmade.cpp } [/code] If I'm not mistaken, every time we add a new entity we are supposed to …
Yes, I know about these two options but I do not prefer them. It's very simple to just insert cod…
Here's one more trick I often use when debugging with Visual Studio. If you missed execution of so…