Include :
- aggiornamento prototipi.
This commit is contained in:
@@ -70,6 +70,8 @@ class Color
|
||||
{ return m_Col[ALPHA] ; }
|
||||
void GetInt( int vCol[4]) const
|
||||
{ vCol[0] = m_Col[RED] ; vCol[1] = m_Col[GREEN] ; vCol[2] = m_Col[BLUE] ; vCol[3] = m_Col[ALPHA] ; }
|
||||
int GetIntIntensity( void) const
|
||||
{ return ( m_Col[RED] + m_Col[GREEN] + m_Col[BLUE]) / 3 ; }
|
||||
float GetRed( void) const
|
||||
{ return ( m_Col[RED] * INV_MAX_RGB) ; }
|
||||
float GetGreen( void) const
|
||||
@@ -81,6 +83,8 @@ class Color
|
||||
void GetFloat( float vCol[4]) const
|
||||
{ vCol[0] = m_Col[RED] * INV_MAX_RGB ; vCol[1] = m_Col[GREEN] * INV_MAX_RGB ;
|
||||
vCol[2] = m_Col[BLUE] * INV_MAX_RGB ; vCol[3] = m_Col[ALPHA] * INV_MAX_ALPHA ; }
|
||||
float GetIntensity( void) const
|
||||
{ return ( m_Col[RED] + m_Col[GREEN] + m_Col[BLUE]) / 3 * INV_MAX_RGB ; }
|
||||
bool operator == ( const Color& other) const
|
||||
{ return ( m_Col[RED] == other.m_Col[RED] &&
|
||||
m_Col[GREEN] == other.m_Col[GREEN] &&
|
||||
|
||||
@@ -32,6 +32,7 @@ enum FileType { FT_NULL = 0,
|
||||
FT_PARASOLID = 34,
|
||||
FT_JT = 35,
|
||||
FT_VRML = 36,
|
||||
FT_C3D = 37,
|
||||
FT_TSC = 101,
|
||||
FT_LUA = 102} ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user