We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
Andre
As far as I'm aware, no major compiler currently issues a warning when using "for (;;)" to indica…
»
Simon Morgan
I found the cause (I think) but don't know what was causing it. This code didn't work: if (!XInpu…
»
Simon Morgan
I used to have controller support working. It has stopped working. I have no idea why it has stopp…
»
ratchetfreak
Whether or not the null pointer is represented by 0 is orthogonal to letting 0 implicitly convert …
»
mojobojo
Today I wanted to have an infinite loop without generating a warning with /W4 and without suppress…
»
Roderic Bos
What I was wondering why Casey is so hung up about the "rug" example spanning multiple tiles. He j…
»
Casey Muratori
At the risk of stating the obvious, I strongly disagree with the notion that a pointer's zero valu…
»
xcodedave
What Minecraft has looks like faked ambient-occlusion baking, but what I mean is faked global illu…
»
Bryan Taylor
Pointers in C do not act like integers. Integer math does not apply directly to pointer computat…
»
Oswald Hurlem
That's going to create T-junction problems... not worth it IMO.
»
Oswald Hurlem
Yeah I'm definitely planning to have "baked" lighting which recomputes (for some subset of blocks)…
»
Randy Gaul
Why C++ doesn't define NULL as nullptr is because idiot programmers used NULL as the 0 constant, …
»
Mārtiņš Možeiko
This issue is not Microsoft compilers fault. This is C standards fault. If C compiler doesn't see …
»
rizoma
I got no strstr function in mylib.c. What I found is that before, I was compiling in c and strstr…
»
Andrew Russell
After watching episode 299 of Handmade Hero, I wanted to share with Casey and the Handmade Hero co…
»
rizoma
Ok that is really weird, I forgot to include string.h now the warning is gone. I really don't want…
»
Simon Anciaux
Since you're not including string.h, I guess you're implementing strstr in mylib.c. Does your fun…
»
xcodedave
Maybe you could fake some static global illumination? If your world is constructed of cube voxels …
»
xcodedave
Yep! I'm removing all voxels surrounded by others as well as redundant faces. I'm also optimizing…
»
ratchetfreak
C++ isn't the only language with mistakes in its design. C has its fair share, among which null-te…
»
Kyle Devir
The reason NULL is used is because of the issue of dangling pointers. You know what pointers are, …
»
rizoma
Sorry maybe I don't undestand: You swapped c and c++?, in that case I get it. I'm compiling in c…
»
ratchetfreak
C has many mistakes in its history, defining NULL as 0 (an int) instead of a special ident like nu…
»
rizoma
I'm a bit confused about the NULL constant, while doing this exercise on the k&r book: -x shows t…
»
Oswald Hurlem
Since I'm going to be getting deep into lighting with , I'm wondering, what are some of the simple…
»
Oswald Hurlem
Are you only rendering voxels which aren't surrounded by other voxels?
»
Bryan Taylor
The (n-1) is a correction for sample variance instead of population variance. Both versions are …
»
thebeast33
You could try generating the world in a deterministic way. A random number generator requires a se…
»
Caleb
I think the ability to have multi quote and reply as well, plus being able to see the previous pos…
»
Caleb
Huhh, that somehow works, Nice find. But... You need to divide by (n-1) in order for this to be th…
»