2004-05-29 22:56:24 +02:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Name: Color.h
|
|
|
|
// Author: Rich Cross
|
|
|
|
// Contact: rich@wildfiregames.com
|
|
|
|
//
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _COLOR_H
|
|
|
|
#define _COLOR_H
|
|
|
|
|
|
|
|
#include "Vector3D.h"
|
|
|
|
#include "Vector4D.h"
|
2004-07-08 16:44:04 +02:00
|
|
|
#include "lib/types.h"
|
2004-05-29 22:56:24 +02:00
|
|
|
|
|
|
|
// simple defines for 3 and 4 component floating point colors - just map to
|
|
|
|
// corresponding vector types
|
|
|
|
typedef CVector3D RGBColor;
|
|
|
|
typedef CVector4D RGBAColor;
|
|
|
|
|
2005-10-02 23:11:11 +02:00
|
|
|
// SColor3ub: structure for packed RGB colors
|
|
|
|
struct SColor3ub
|
|
|
|
{
|
|
|
|
u8 R;
|
|
|
|
u8 G;
|
|
|
|
u8 B;
|
|
|
|
};
|
|
|
|
|
2004-05-29 22:56:24 +02:00
|
|
|
// SColor4ub: structure for packed RGBA colors
|
|
|
|
struct SColor4ub
|
|
|
|
{
|
|
|
|
u8 R;
|
|
|
|
u8 G;
|
|
|
|
u8 B;
|
|
|
|
u8 A;
|
|
|
|
};
|
|
|
|
|
2005-10-03 05:41:42 +02:00
|
|
|
extern u32 (*ConvertRGBColorTo4ub)(const RGBColor& src);
|
|
|
|
|
2004-05-29 22:56:24 +02:00
|
|
|
|
|
|
|
#endif
|