2004-05-29 22:56:24 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Name: Color.h
|
|
|
|
// Author: Rich Cross
|
|
|
|
// Contact: rich@wildfiregames.com
|
|
|
|
//
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _COLOR_H
|
|
|
|
#define _COLOR_H
|
|
|
|
|
2006-06-02 04:10:27 +02:00
|
|
|
#include "maths/Vector3D.h"
|
|
|
|
#include "maths/Vector4D.h"
|
2004-05-29 22:56:24 +02:00
|
|
|
|
2006-02-13 15:18:20 +01:00
|
|
|
// simple defines for 3 and 4 component floating point colors - just map to
|
2004-05-29 22:56:24 +02:00
|
|
|
// corresponding vector types
|
|
|
|
typedef CVector3D RGBColor;
|
|
|
|
typedef CVector4D RGBAColor;
|
|
|
|
|
2006-04-14 08:32:05 +02:00
|
|
|
// exposed as function pointer because it is set at init-time to
|
|
|
|
// one of several implementations depending on CPU caps.
|
2005-10-03 05:41:42 +02:00
|
|
|
extern u32 (*ConvertRGBColorTo4ub)(const RGBColor& src);
|
|
|
|
|
2007-05-02 14:07:08 +02:00
|
|
|
// call once ia32_Init has run; detects CPU caps and activates the best
|
2006-04-14 08:32:05 +02:00
|
|
|
// possible codepath.
|
|
|
|
extern void ColorActivateFastImpl();
|
|
|
|
|
2004-05-29 22:56:24 +02:00
|
|
|
#endif
|