www.pudn.com > 1012.zip > Color3d.cpp


// Color3d.cpp: implementation of the CColor3d class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#include "stdafx.h" 
#include "SCAD.h" 
#include "Color3d.h" 
 
#ifdef _DEBUG 
#undef THIS_FILE 
static char THIS_FILE[]=__FILE__; 
#define new DEBUG_NEW 
#endif 
 
////////////////////////////////////////////////////////////////////// 
// Construction/Destruction 
////////////////////////////////////////////////////////////////////// 
 
CColor3d::CColor3d() 
{ 
	SetColor(1.0,1.0,1.0,1.0); 
} 
 
CColor3d::~CColor3d() 
{ 
 
} 
 
void CColor3d::SetColor(float r, float g, float b, float a) 
{ 
	red = r; 
	green = g; 
	blue = b; 
	alpha = a; 
 
}