www.pudn.com > 1012.zip > LineNode.cpp
// LineNode.cpp: implementation of the CLineNode class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "SCAD.h"
#include "LineNode.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CLineNode::CLineNode()
{
}
CLineNode::~CLineNode()
{
}
void CLineNode::Draw(void)
{
glColor4f(m_cColor.red,m_cColor.green,m_cColor.blue,m_cColor.alpha);
glBegin(GL_LINES);
glVertex2f(m_ptStart.x, m_ptStart.y);
glVertex2f(m_ptEnd.x, m_ptEnd.y);
glEnd();
}