From e25a2ce1346acf1bbd2c6dbe4ac96083dd31929b Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 23 Nov 2020 07:22:02 +0000 Subject: [PATCH] Include : - aggiornamento prototipi. --- EGkColor.h | 4 ++++ EXeConst.h | 1 + 2 files changed, 5 insertions(+) diff --git a/EGkColor.h b/EGkColor.h index 59adf35..f133ae0 100644 --- a/EGkColor.h +++ b/EGkColor.h @@ -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] && diff --git a/EXeConst.h b/EXeConst.h index 281a647..a5f4c43 100644 --- a/EXeConst.h +++ b/EXeConst.h @@ -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} ;