john-chapman/im3d

EXAMPLES

john-chapman opened this issue · 0 comments

  • Demonstrate how to correctly fill AppData (including the cursor ray). Lots of comments. Use GetAsyncKeyState() for the keydown array, but note it's not the best way.
  • Example draw function, notes about how to use a depth buffer, etc.
  • Example init + shaders.

Each example should be 1 cpp of the form im3d_, with some Im3d_ functions in it. Everything else goes in im3d_example.h/im3d_example.cpp with a shit tonne of #ifdefs (simplified, centralized albeit a bit messy).

Each example should have its own premake build script. Use defines to control what's compiled in the example 'common' code.