handmade/include
Bubblegumdrop 2403f060eb Add SHADER_PROGRAM_REFRESH, and a bunch of debug crap because of events.
So when PACKET_SDL_EVENT was SDL_USEREVENT, things worked fine in the
main loop it would see SDL_USEREVENT and send it off to my_SDL_UserEvent.

But when I started adding more events, the SDL_UserEvent paradigm given
in the SDL Wiki stopped working.

The example here is broken: https://wiki.libsdl.org/SDL_AddTimer
The example here is working and "correct": https://wiki.libsdl.org/SDL_UserEvent

All SDL_RegisterEvents is increase a static counter. SDL doesn't
actually use these events anyway. It's purely symbolic, as far as I can tell.

So anyway. Now events work after a bunch of debugging.

SHADER_PROGRAM_REFRESH is the second user event I've done.

The ShaderProgram runs an SDL_TimerID that looks at mVertexPath,
mGeometryPath if present, and mFragmentPath. mVertexPath and
mFragmentPath are required by Compile3ShaderBuffers.
In the future I'd like to change the way this class behaves.
2022-01-09 23:37:48 -05:00
..
camera.h Client and Server tweaks. This commit breaks the Client. 2022-01-08 18:59:40 -05:00
cube.h Initial commit. 2022-01-02 19:28:16 -05:00
debug.h Client and Server tweaks. This commit breaks the Client. 2022-01-08 18:59:40 -05:00
events_common.h Add SHADER_PROGRAM_REFRESH, and a bunch of debug crap because of events. 2022-01-09 23:37:48 -05:00
FileIO.h Add SHADER_PROGRAM_REFRESH, and a bunch of debug crap because of events. 2022-01-09 23:37:48 -05:00
glCheckErrors.h Client and Server tweaks. This commit breaks the Client. 2022-01-08 18:59:40 -05:00
lib_GL_common.h Initial commit. 2022-01-02 19:28:16 -05:00
lib_lua_common.h Client and Server tweaks. This commit breaks the Client. 2022-01-08 18:59:40 -05:00
lib_SDL_common.h Client and Server tweaks. This commit breaks the Client. 2022-01-08 18:59:40 -05:00
lib_SDL_Log.h Add SHADER_PROGRAM_REFRESH, and a bunch of debug crap because of events. 2022-01-09 23:37:48 -05:00
object.h Initial commit. 2022-01-02 19:28:16 -05:00
quad.h Initial commit. 2022-01-02 19:28:16 -05:00
SDL_clamp.h Initial commit. 2022-01-02 19:28:16 -05:00
Server.h Investigating strange crash. 2022-01-09 09:53:05 -05:00
shader.h Add SHADER_PROGRAM_REFRESH, and a bunch of debug crap because of events. 2022-01-09 23:37:48 -05:00
signal_common.h Initial commit. 2022-01-02 19:28:16 -05:00
trim.h Initial commit. 2022-01-02 19:28:16 -05:00
UDPbase.h Add SHADER_PROGRAM_REFRESH, and a bunch of debug crap because of events. 2022-01-09 23:37:48 -05:00
UDPpacketVBuffer.h Add SHADER_PROGRAM_REFRESH, and a bunch of debug crap because of events. 2022-01-09 23:37:48 -05:00
unused.h Initial commit. 2022-01-02 19:28:16 -05:00
util.h Add SHADER_PROGRAM_REFRESH, and a bunch of debug crap because of events. 2022-01-09 23:37:48 -05:00