added --help option, updated util/Transform
git-svn-id: svn://anubis/fart/trunk@26 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
5692558733
commit
1454fe8c2e
3 files changed
+23
-7
No files matched your search
+14
-4
@@ -1,12 +1,22 @@
|
||||
|
||||
#include "Transform.h"
|
||||
|
||||
void Transform::push()
|
||||
Transform::Transform()
|
||||
{
|
||||
m_matrices.push(m_matrices.top());
|
||||
m_matrix = Matrix::identity();
|
||||
}
|
||||
|
||||
void Transform::pop()
|
||||
void Transform::translate(double x, double y, double z)
|
||||
{
|
||||
m_matrices.pop();
|
||||
/* TODO: fill in */
|
||||
}
|
||||
|
||||
void Transform::rotate(double amt, double xv, double yv, double zv)
|
||||
{
|
||||
/* TODO: fill in */
|
||||
}
|
||||
|
||||
void Transform::scale(double xs, double ys, double zs)
|
||||
{
|
||||
/* TODO: fill in */
|
||||
}
|
||||
+5
-3
@@ -8,11 +8,13 @@
|
||||
class Transform
|
||||
{
|
||||
public:
|
||||
void push();
|
||||
void pop();
|
||||
Transform();
|
||||
void translate(double x, double y, double z);
|
||||
void rotate(double amt, double xv, double yv, double zv);
|
||||
void scale(double xs, double ys, double zs);
|
||||
|
||||
protected:
|
||||
std::stack<Matrix> m_matrices;
|
||||
Matrix m_matrix;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user