Added interfaces for color managment
This commit is contained in:
parent
a2ba22e4fb
commit
009c6f4f7f
|
@ -40,6 +40,16 @@ namespace vcg
|
|||
{
|
||||
public:
|
||||
Mode()
|
||||
{
|
||||
init();
|
||||
}
|
||||
Mode(Color4b _color)
|
||||
{
|
||||
init();
|
||||
color=_color;
|
||||
}
|
||||
|
||||
void init()
|
||||
{
|
||||
color=vcg::Color4b(vcg::Color4b::White);
|
||||
angle=0;
|
||||
|
@ -144,7 +154,7 @@ namespace vcg
|
|||
render(painter,p,text,m);
|
||||
}
|
||||
|
||||
static void render(QPainter *painter, const vcg::Point3f &p, const QString &text, Mode &m)
|
||||
static void render(QPainter *painter, const vcg::Point3f &p, const QString &text, const Mode &m)
|
||||
{
|
||||
GLdouble model[16];
|
||||
GLdouble proj[16];
|
||||
|
@ -179,7 +189,7 @@ namespace vcg
|
|||
|
||||
static void render(QPainter *painter, const vcg::Point3d &p, const QString &text)
|
||||
{ render(painter,Point3f::Construct(p),text); }
|
||||
static void render(QPainter *painter, const vcg::Point3d &p, const QString &text, Mode &m)
|
||||
static void render(QPainter *painter, const vcg::Point3d &p, const QString &text, const Mode &m)
|
||||
{ render(painter,Point3f::Construct(p),text,m); }
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue