www.pudn.com > glGraph.rar > glGraph.cpp
// glGraph.cpp: implementation of the glGraph class.
//
//////////////////////////////////////////////////////////////////////
#include "glGraph.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
glGraph::glGraph()
{
type = -1;
color[0] = 0;
color[1] = 0;
color[2] = 0;
scale = 1;
}
glGraph::~glGraph()
{
}
void glGraph::SetColor(float *c)
{
color[0] = c[0];
color[1] = c[1];
color[2] = c[2];
}
float* glGraph::GetColor()
{
return color;
}
void glGraph::SetType(int t)
{
type = t;
}
int glGraph::GetType()
{
return type;
}
void glGraph::SetScale(int s)
{
scale = s;
}
int glGraph::GetScale()
{
return scale;
}