4 ms·
C99 has made all that a lot easier, you can setup, initialize a struct and call the function taking a pointer to that struct all in one call: https://github.co
by flohofwoe 6y ago
C99 has made all that a lot easier, you can setup, initialize a struct and call the function taking a pointer to that struct all in one call:
https://github.com/floooh/sokol-samples/blob/89f5825ab5d36906b2dc219efbce3d00be9e7cdf/d3d11/d3d11entry.c#L52-L59 https://github.com/floooh/sokol-samples/blob/89f5825ab5d3690...
The Win32 window system functions and D3D11 are actually very convenient to work with in C99, better than C++ actually.