June 2 patch

From GriffinEngine
Revision as of 06:38, 19 November 2017 by Fragmer (talk | contribs) (1 revision imported)
Jump to: navigation, search

May 31 patch (revisions 394-397) includes bugfixes, ability to change fog settings, purging of old unused code, and a lot of new demo code.

Detailed list of changes

  • geColor
    • Added GE_WHITE and GE_BLACK shortcuts.
    • Added colorFromDouble() and colorFromDoublev(), as requested.
    • Changed colorToBytev() and colorToFloatv() to take
      float[4]
      instead of
      float*
      to prevent potential stack corruption.
  • Rendering
    • Added methods for enabling/disabling fog, settings fog color, and setting clear (background) color, as requested.
    • Changed geLight to use
      color
      datatype instead of
      float4
      for consistency.
  • HUD
    • Fixed geObject2D scaling/alignment.
    • Optimized drawing of geSprite2D and its derived classes.
    • Added support for scaling to geButton.
  • Misc
    • Added missing getID() method to geBitmap.
    • Optimized font rendering a bit.
    • Removed the ability to create 0x0 sprites in geSprite (it could cause crashes).
    • Removed legacy geFrustrum, geTickEvent, geSceneNode, and geSceneImporter classes, now unused.
    • Commented geMouse.h.
    • Removed lots of old unused code in geRenderer.
    • Updated main() to reflect recent changes, and included a lot of new example code.


Affected Files

See the diff at gforge

Path

  • geBitmap.h
  • geBoundingVolume.h
  • geColor.cpp
  • geColor.h
  • geEventManager.cpp
  • geEventManager.h
  • geEvents.h
  • geFont.cpp
  • geFrustum.cpp
  • geGame.cpp
  • geGame.h
  • geGraphicsSettings.h
  • geLight.h
  • geMath.h
  • geMath.cpp
  • geMouse.cpp
  • geMouse.h
  • geObject2D.cpp
  • geObject2D.h
  • geRenderer.cpp
  • geRenderer.h
  • geSceneImporter.cpp
  • geSceneImporter.h
  • geSceneNode.cpp
  • s style="color:red"s>geSceneNode.h</s>
  • geSprite.h
  • geState.cpp
  • geState.h
  • geTimer.cpp
  • GriffinEngine.vcproj
  • main.cpp


Affected class APIs