4 ms·
The question would be “by what dimension of interesting”? Quake 3’s source is pretty interesting from the perspective of id just transitioning from C to C++, a
by ovao 3y ago
The question would be “by what dimension of interesting”?
Quake 3’s source is pretty interesting from the perspective of id just transitioning from C to C++, and famously has an implementation of fast inverse square root. It’s also a pretty clean codebase overall with a reasonably modern engine architecture.
- bhelyer 3y agoQuake 3 was still completely C, IIRC. You might be thinking of Doom 3?
- synergy20 3y agothe rerelease mentioned here rename .c to .cpp globally but the code base is still c, why is that? I thought it was rewritten in c++.
- bhelyer 3y agoIt's a light touch (looks like the original structure is mostly intact) but if you search for 'std::' in, say, https://github.com/id-Software/quake2-rerelease-dll/blob/main/rerelease/p_client.cpp https://github.com/id-Software/quake2-rerelease-dll/blob/mai... you'll see there's some C++ stuff floating about.