1716 |
|
|
1717 |
""", |
""", |
1718 |
"ExtraClass" : """ |
"ExtraClass" : """ |
|
/* |
|
1719 |
template<class Coords> struct Vertexer { |
template<class Coords> struct Vertexer { |
1720 |
const Coords &c; |
const Coords &c; |
1721 |
float scale; |
float scale; |
1734 |
c.vertex(tmp); |
c.vertex(tmp); |
1735 |
} |
} |
1736 |
}; |
}; |
|
*/ |
|
1737 |
""", |
""", |
1738 |
"RenderCode" : """ |
"RenderCode" : """ |
|
|
|
|
/* |
|
|
// UNABLE TO IMPLEMENT AS LONG AS GL IS UNCOMPILABLE |
|
|
|
|
1739 |
DBG(dbg_continuous_line) |
DBG(dbg_continuous_line) |
1740 |
<< "ContinuousLine - linewidth: " << width << "\\n"; |
<< "ContinuousLine - linewidth: " << width << "\\n"; |
1741 |
|
|
1742 |
glPushAttrib(GL_ENABLE_BIT); |
//glPushAttrib(GL_ENABLE_BIT); |
1743 |
glEnable(GL_BLEND); |
//glEnable(GL_BLEND); |
1744 |
glDisable(GL_TEXTURE_2D); |
//glDisable(GL_TEXTURE_2D); |
1745 |
|
|
1746 |
if (color.size() >= 3) |
if (color.size() >= 3) |
1747 |
glColor3f(color[0], color[1], color[2]; |
glColor3f(color[0], color[1], color[2]); |
1748 |
|
|
1749 |
|
|
1750 |
// Linewidth |
// Linewidth |
1751 |
ZPt a = coords1.transform(ZPt(0,0,0)); |
ZPt a = coords1.transform(ZPt(0,0,0)); |
1752 |
ZPt b = coords1.transform(ZPt(0,linewidth,0)); |
ZPt b = coords1.transform(ZPt(0,width,0)); |
1753 |
float line_w = (b-a).length(); |
float line_w = (b-a).length(); |
1754 |
|
|
1755 |
Lines::ContinuousLine line(textId, "foo", line_w ); |
Lines::ContinuousLine line(textId, "foo", line_w ); |
1756 |
|
|
|
|
|
1757 |
for (unsigned int i=0; i+2<points.size(); i+=3) { |
for (unsigned int i=0; i+2<points.size(); i+=3) { |
1758 |
line.add(points[i], points[i+1], points[i+2]); |
line.add(points[i], points[i+1], points[i+2]); |
1759 |
} |
} |
1760 |
|
|
1761 |
|
|
1762 |
|
/* |
1763 |
// left -vert |
// left -vert |
1764 |
line.draw( |
line.draw( |
1765 |
coords1.transform( ZPt(0.0, 0.0, 0.0) ), |
coords1.transform( ZPt(0.0, 0.0, 0.0) ), |
1766 |
coords1.transform( ZPt(0.0, weeks + weekday_h + month_name_h, 0.0) ) |
coords1.transform( |
1767 |
); |
ZPt(0.0, weeks + weekday_h + month_name_h, 0.0)) |
1768 |
|
); |
1769 |
|
*/ |
1770 |
glColor3f(0.0, 0.0, 0.0); |
glColor3f(0.0, 0.0, 0.0); |
1771 |
|
|
1772 |
glPopAttrib(); |
//glPopAttrib(); |
|
*/ |
|
1773 |
if (dbg) cout << "ContinuousLine done\\n"; |
if (dbg) cout << "ContinuousLine done\\n"; |
1774 |
""" |
""" |
1775 |
}, |
}, |