ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/view.C
(Generate patch)

Comparing libgender/view.C (file contents):
Revision 1.1 by root, Sun Oct 3 05:10:46 2004 UTC vs.
Revision 1.2 by root, Sun Oct 3 22:46:03 2004 UTC

1#include <cmath> 1#include <cmath>
2 2
3#include "oct.h" 3#include "oct.h"
4#include "view.h" 4#include "view.h"
5 5
6draw_context::draw_context () 6draw_context::draw_context (view &v)
7: v(v), l(0), mode(LIGHTED)
7{ 8{
8} 9}
9 10
10draw_context::~draw_context () 11draw_context::~draw_context ()
11{ 12{
42 m[0][0] = rx.x; m[0][1] = rx.y; m[0][2] = rx.z; m[0][3] = 0; 43 m[0][0] = rx.x; m[0][1] = rx.y; m[0][2] = rx.z; m[0][3] = 0;
43 m[1][0] = ry.x; m[1][1] = ry.y; m[1][2] = ry.z; m[1][3] = 0; 44 m[1][0] = ry.x; m[1][1] = ry.y; m[1][2] = ry.z; m[1][3] = 0;
44 m[2][0] = rz.x; m[2][1] = rz.y; m[2][2] = rz.z; m[2][3] = 0; 45 m[2][0] = rz.x; m[2][1] = rz.y; m[2][2] = rz.z; m[2][3] = 0;
45 m[3][0] = 0; m[3][1] = 0; m[3][2] = 0; m[3][3] = 1; 46 m[3][0] = 0; m[3][1] = 0; m[3][2] = 0; m[3][3] = 1;
46 glMultMatrixf ((GLfloat *)m); 47 glMultMatrixf ((GLfloat *)m);
47
48 glTranslatef (-p.x, -p.y, -p.z); 48 glTranslatef (-p.x, -p.y, -p.z);
49 49
50 glMatrixMode (GL_MODELVIEW); 50 glMatrixMode (GL_MODELVIEW);
51 glLoadIdentity (); 51 glLoadIdentity ();
52 52

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines