Include :

- aggiornamento prototipi.
This commit is contained in:
Dario Sassi
2020-11-23 07:22:02 +00:00
parent d4b72e9fbe
commit e25a2ce134
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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] &&
+1
View File
@@ -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} ;