Implemented visualization of octrees for debugging occlusion culling algorithms.

Corrected project settings to allow objpack to compile again.

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4087
This commit is contained in:
kearwood
2012-09-05 18:14:08 +00:00
parent c74a85d931
commit 527bcb33c3
21 changed files with 264 additions and 45 deletions

View File

@@ -149,6 +149,11 @@ void KRMat4::translate(GLfloat x, GLfloat y, GLfloat z) {
*this *= newMatrix;
}
void KRMat4::translate(const KRVector3 &v)
{
translate(v.x, v.y, v.z);
}
/* Rotate a matrix by an angle on a X, Y, or Z axis */
void KRMat4::rotate(GLfloat angle, AXIS axis) {
const int cos1[3] = { 5, 0, 0 };
@@ -177,6 +182,10 @@ void KRMat4::scale(GLfloat x, GLfloat y, GLfloat z) {
*this *= newMatrix;
}
void KRMat4::scale(const KRVector3 &v) {
scale(v.x, v.y, v.z);
}
/* Scale all dimensions equally */
void KRMat4::scale(GLfloat s) {
scale(s,s,s);