/[gzz]/gzz/gfx/libcoords/Coords.cxx
ViewVC logotype

Diff of /gzz/gfx/libcoords/Coords.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Wed Sep 25 16:16:46 2002 UTC revision 1.5 by tjl, Wed Sep 25 16:39:26 2002 UTC
# Line 4  Line 4 
4  namespace Coords {  namespace Coords {
5      DBGVAR(dbg, "Coords.general");      DBGVAR(dbg, "Coords.general");
6    
7        bool CoordSys::performGL() {
8            DBG(dbg) << "Potential problem: performGL default implementation called, means incorrect rendering\n";
9            return false;
10        }
11    
12      class RootCoords : public CoordSys {      class RootCoords : public CoordSys {
13      public:      public:
14          virtual ZPt transform(const ZPt &p) const {          virtual ZPt transform(const ZPt &p) const {
# Line 38  namespace Coords { Line 43  namespace Coords {
43              tr(p, mp);              tr(p, mp);
44              super->vertex(mp);              super->vertex(mp);
45          }          }
46            virtual bool canPerformGL() { return true; }
47            virtual bool performGL() {
48                GLfloat matrix[16] = {
49                    params[3], params[4], 0, 0,
50                    params[5], params[6], 0, 0,
51                    0,   0,   1, 0,
52                    params[0],   params[1],   params[2], 1
53                };
54                glMultMatrixf(matrix);
55                return true;
56            }
57    
58      };      };
59    
60      /** Rotation clockwise.      /** Rotation clockwise.

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26