|
From: Lasse Kärkkäi. <tr...@us...> - 2011-03-13 00:49:40
|
Author: Lasse Karkkainen <tro...@tr...> Date: Sun Feb 27 00:58:39 2011 +0100 Reworked glmath * The types are now called vec3, vec4, mat3 and mat4 (mat3 is a new one) * A more generic approach to avoid code duplication * Default matrix constructor made private (and it now initializes with zero) * Named constructors zero/identity/diagonal provided instead * Fixed func upload/get removed * All code changed to use the new style * Code that was using upload disabled in video_driver.cc --- game/3dobject.cc | 8 ++-- game/glmath.hh | 105 +++++++++++++++++++++++-------------------------- game/glshader.cc | 6 +- game/glshader.hh | 22 +++++----- game/glutil.hh | 8 ++-- game/screen_intro.cc | 2 +- game/video_driver.cc | 23 ++++++----- 7 files changed, 84 insertions(+), 90 deletions(-) |