C:/development/RenderTools/src/common/Matrix.cpp File Reference

#include "Matrix.h"
#include "Error.h"
#include "RenderTools.h"
#include "Program.h"

Go to the source code of this file.


Namespaces

namespace  RenderTools
 Program is used for the matrix stack.
namespace  RenderTools::Matrix

Functions

float RenderTools::smallest (float a, float b)
 -----------------------------global utility functions--------------
float RenderTools::largest (float a, float b)
double RenderTools::smallest (double a, double b)
double RenderTools::largest (double a, double b)
float RenderTools::smallest (float a, double b)
float RenderTools::largest (float a, double b)
float RenderTools::smallest (double a, float b)
float RenderTools::largest (double a, float b)
float RenderTools::clamp (float v, float min, float max)
float RenderTools::clampMin (float x, float min)
float RenderTools::clampMax (float x, float max)
float RenderTools::sgn (float v)
float RenderTools::toRadians (float degrees)
float RenderTools::toDegrees (float radians)
float RenderTools::distance (const Vec2 &v1, const Vec2 &v2)
float RenderTools::distance (const Vec3 &v1, const Vec3 &v2)
float RenderTools::distance (const Vec4 &v1, const Vec4 &v2)
float RenderTools::distance2 (const Vec2 &v1, const Vec2 &v2)
float RenderTools::distance2 (const Vec3 &v1, const Vec3 &v2)
float RenderTools::distance2 (const Vec4 &v1, const Vec4 &v2)
float RenderTools::length (const Vec2 &v)
float RenderTools::length (const Vec3 &v)
float RenderTools::length (const Vec4 &v)
float RenderTools::length2 (const Vec2 &v)
float RenderTools::length2 (const Vec3 &v)
float RenderTools::length2 (const Vec4 &v)
Vec2 RenderTools::normalize (const Vec2 &v)
Vec3 RenderTools::normalize (const Vec3 &v)
Vec4 RenderTools::normalize (const Vec4 &v)
float RenderTools::dot (const Vec2 &v1, const Vec2 &v2)
float RenderTools::dot (const Vec3 &v1, const Vec3 &v2)
float RenderTools::dot (const Vec4 &v1, const Vec4 &v2)
float RenderTools::cross (const Vec2 &v1, const Vec2 &v2)
Vec3 RenderTools::cross (const Vec3 &v1, const Vec3 &v2)
float RenderTools::mix (float f1, float f2, float f)
Vec2 RenderTools::mix (const Vec2 &v1, const Vec2 &v2, float f)
Vec3 RenderTools::mix (const Vec3 &v1, const Vec3 &v2, float f)
Vec4 RenderTools::mix (const Vec4 &v1, const Vec4 &v2, float f)
Mat2 RenderTools::mix (const Mat2 &m1, const Mat2 &m2, float f)
Mat3 RenderTools::mix (const Mat3 &m1, const Mat3 &m2, float f)
Mat4 RenderTools::mix (const Mat4 &m1, const Mat4 &m2, float f)
Vec2 RenderTools::operator* (float s, const Vec2 &v)
Vec3 RenderTools::operator* (float s, const Vec3 &v)
Vec4 RenderTools::operator* (float s, const Vec4 &v)
istream & RenderTools::operator>> (istream &s, Vec2 &v)
 extraction operators
istream & RenderTools::operator>> (istream &s, Vec3 &v)
istream & RenderTools::operator>> (istream &s, Vec4 &v)
istream & RenderTools::operator>> (istream &s, Quat &v)
istream & RenderTools::operator>> (istream &s, Mat2 &v)
istream & RenderTools::operator>> (istream &s, Mat3 &v)
istream & RenderTools::operator>> (istream &s, Mat4 &v)
ostream & RenderTools::operator<< (ostream &s, const Vec2 &v)
 insertion operators
ostream & RenderTools::operator<< (ostream &s, const Vec3 &v)
ostream & RenderTools::operator<< (ostream &s, const Vec4 &v)
ostream & RenderTools::operator<< (ostream &s, const Quat &v)
ostream & RenderTools::operator<< (ostream &s, const Mat2 &v)
ostream & RenderTools::operator<< (ostream &s, const Mat3 &v)
ostream & RenderTools::operator<< (ostream &s, const Mat4 &v)
void RenderTools::Matrix::_setMatrixUniform (void)
 ES|1.0 is the only configuration without programs.
void RenderTools::Matrix::_matrixMode (Mode mode)
void RenderTools::Matrix::_pushMatrix (void)
void RenderTools::Matrix::_popMatrix (void)
void RenderTools::Matrix::_loadMatrix (const GLfloat *p)
void RenderTools::Matrix::initialize ()
const Mat4 & RenderTools::Matrix::get (Mode mode)
void RenderTools::Matrix::set (Mode mode, const Mat4 &m)
void RenderTools::Matrix::push (Mode mode, const Mat4 &m)
void RenderTools::Matrix::push (Mode mode)
Mat4 RenderTools::Matrix::pop (Mode mode)
Vec3 RenderTools::Matrix::project (const Vec3 &object, const Vec4 &viewport)
Vec3 RenderTools::Matrix::unProject (const Vec3 &window, const Vec4 &viewport)

Variables

vector< Mat4 > RenderTools::Matrix::stack [3]


Generated on Wed Jan 26 00:15:35 2011 for RenderTools by  doxygen 1.5.8