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 { |
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. |