May 31 patch

From GriffinEngine
Jump to: navigation, search

May 31 patch (revision 389) includes bugfixes and cleanup in HUD and input classes, and slight syntax modifications in geTimer and resource classes.

Detailed list of changes

  • HUD
    • Removed the need to Init() HUD manually, geGame will do it for you now.
    • Consolidated all the
      geHUD::Add()
      method overloads into one.
    • Added
      geHUD::Get()
      method for getting a non-typecast pointer to a geObject2D.
    • Removed redundant GE_AXIS_* constants. Now GE_ALIGN_* is used for all types of alignment.
    • Added
      geText2D::setText()
      methods for changing text at runtime.
    • Added the ability to apply radial gradient coloring on geCircle.
  • Keyboard
    • Fixed all inconsistencies in keycode tables
    • Removed legacy keycodes (like F15 key and such)
    • Added
      geKeyboard::getCat()
      and
      geKeyboard::getNumeric()
      methods.
  • Timer
    • Changed the naming scheme for different time formats.
Before:
time_t getTime(), double getGameTime(), time_t getGameTimeT()
After:
time_t getTime(), double getTimeD(), time_t getTimeT()
  • Misc
    • Renamed
      geBitmap::dump()
      to
      geBitmap::Dump()
      for consistency.
    • Changed geFont constructor to accept
      const string&
      instead of just
      string
      .
    • Updated main() example code to reflect changes and additions to the HUD.

Affected Files

See the diff at gforge
  • geBitmap.cpp
  • geBitmap.h
  • geFont.cpp
  • geFont.h
  • geGame.cpp
  • geHUD.h
  • geHUD.cpp
  • geKeyboard.h
  • geKeyboard.cpp
  • geObject2D.h
  • geObject2D.cpp
  • geResource.cpp
  • geResource.h
  • geTimer.cpp
  • geTimer.h
  • main.cpp

Affected class APIs