What do other compilers do with this?
1
2
3
4
5// Compiled as C code
struct Y
{
float a;
} Y; …
Stuff like this is why, even though I've been in J16/PL22.16 since 2004, I can't blame Casey when…
To collect myself, I had to take a brief walk away from my machine after posting this. I just cam…
RomulusTFM Well...consider this:
1
2
3
4
5// OK
// {
typedef struct Y {float a;} Y;
int Y = 2;…
Hopefully a simple question that I am struggling with.
I am at day 115 at the start of SIMD opti…
Well...consider this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17// OK
{
typedef struct Y…
benwaffle Some people avoid typedef struct in C because it pollutes the namespace.
Could you ple…
If I understand the POV, a C programmer is dismayed by the size of the generated C++ code; much l…
C++ must have done something right
https://www.youtube.com/watch?v=ltCgzYcpFUI
Oh My God!!!
I almost lost my mind, trying to figure out why my hero movement is different than C…
By adding epsilons, you're inherently adding some inaccuracy to your simulation. You really want …
Yeah, pretty much what you said. Just get the input from user, process it, and render result on s…
chr_stoev I have never used fixed point position before. I guess that would fix some of the round…
I have never used fixed point position before. I guess that would fix some of the rounding errors…
Have you ever implemented a debug console as in Quake, Unreal Tournament, Source games that is al…
Hello everyone,
The contribution I am currently planning is called Handmade Quake, where I start…
Use fixed point to store positions. This gives you an even amount of precision over your entire …
Yeah maybe. If the guy jumps and lands on the ramp the epsilon would keep him high enough for it …
I'm still real new to this, but couldn't you use an epsilon to account for floating-point errors?
I don't think there is a bug in your code.
I think what you are seeing is StretchDIBits trying t…
I am not new to handmade hero, but I just started following along a couple of weeks ago. Up to th…
So I am making a 2d platformer, heavily influenced by HH. I use more or less the same collision d…
Thank you for the clear answers. Now I know why it looks this way and that i can make my changes …
It was valid code only with Visual Studio. In C that was never a valid code.
Not sure how far bac…
That used to be valid code. That's why you can see Casey doing for loops like this in some early …
I am working on a project where there is a lot of old code written for Windows.
On several place…
mmozeiko To be compatible with Windows?
Unsurprisingly, Windows does it for the same reason.
mmo…
I thought I'd post a diff of the "test_asset_builder.*" files which have
support for xlib core t…
To be compatible with Windows? :D
It also uses gs for 64-bit and fs for 32-bit.
Or maybe (I'm gu…
In my previous company I have successfully shipped product on Linux as binary executable with lin…