Skip to content

Problems Encountered

matt edited this page Mar 13, 2021 · 3 revisions

Problems Encountered

  • Glut/Freeglut has several functions for key/mouse presses that becomes overly complicated. The solution is to convert glut keys into our own input manager to reduce the required functions to process keys for simplicity.
  • glBegin() and glEnd() only allow very specific functions to be called inside of them, one of them is NOT glBindTexture() and this caused a lot of annoying issues trying to figure out why the last texture was always being bound.
  • Passing a 2D stack array of primatives (floats) is difficult in C. For many functions in the Physics library we intended to move from completely dynamic allocation to stack allocation for a performance uplift, but could only find an implementation that would work on UNIX machines and not Windows.
Clone this wiki locally