mirror of
https://github.com/celisej567/cool-source-archive.git
synced 2026-09-21 20:10:15 +03:00
88 lines
1.8 KiB
C++
88 lines
1.8 KiB
C++
#include "shaderlib/cshader.h"
|
|
class spritecard_vs40_Static_Index
|
|
{
|
|
private:
|
|
int m_nDUALSEQUENCE;
|
|
#ifdef _DEBUG
|
|
bool m_bDUALSEQUENCE;
|
|
#endif
|
|
public:
|
|
void SetDUALSEQUENCE( int i )
|
|
{
|
|
Assert( i >= 0 && i <= 1 );
|
|
m_nDUALSEQUENCE = i;
|
|
#ifdef _DEBUG
|
|
m_bDUALSEQUENCE = true;
|
|
#endif
|
|
}
|
|
void SetDUALSEQUENCE( bool i )
|
|
{
|
|
m_nDUALSEQUENCE = i ? 1 : 0;
|
|
#ifdef _DEBUG
|
|
m_bDUALSEQUENCE = true;
|
|
#endif
|
|
}
|
|
public:
|
|
spritecard_vs40_Static_Index( )
|
|
{
|
|
#ifdef _DEBUG
|
|
m_bDUALSEQUENCE = false;
|
|
#endif // _DEBUG
|
|
m_nDUALSEQUENCE = 0;
|
|
}
|
|
int GetIndex()
|
|
{
|
|
// Asserts to make sure that we aren't using any skipped combinations.
|
|
// Asserts to make sure that we are setting all of the combination vars.
|
|
#ifdef _DEBUG
|
|
bool bAllStaticVarsDefined = m_bDUALSEQUENCE;
|
|
Assert( bAllStaticVarsDefined );
|
|
#endif // _DEBUG
|
|
return ( 3 * m_nDUALSEQUENCE ) + 0;
|
|
}
|
|
};
|
|
#define shaderStaticTest_spritecard_vs40 vsh_forgot_to_set_static_DUALSEQUENCE + 0
|
|
class spritecard_vs40_Dynamic_Index
|
|
{
|
|
private:
|
|
int m_nORIENTATION;
|
|
#ifdef _DEBUG
|
|
bool m_bORIENTATION;
|
|
#endif
|
|
public:
|
|
void SetORIENTATION( int i )
|
|
{
|
|
Assert( i >= 0 && i <= 2 );
|
|
m_nORIENTATION = i;
|
|
#ifdef _DEBUG
|
|
m_bORIENTATION = true;
|
|
#endif
|
|
}
|
|
void SetORIENTATION( bool i )
|
|
{
|
|
m_nORIENTATION = i ? 1 : 0;
|
|
#ifdef _DEBUG
|
|
m_bORIENTATION = true;
|
|
#endif
|
|
}
|
|
public:
|
|
spritecard_vs40_Dynamic_Index()
|
|
{
|
|
#ifdef _DEBUG
|
|
m_bORIENTATION = false;
|
|
#endif // _DEBUG
|
|
m_nORIENTATION = 0;
|
|
}
|
|
int GetIndex()
|
|
{
|
|
// Asserts to make sure that we aren't using any skipped combinations.
|
|
// Asserts to make sure that we are setting all of the combination vars.
|
|
#ifdef _DEBUG
|
|
bool bAllDynamicVarsDefined = m_bORIENTATION;
|
|
Assert( bAllDynamicVarsDefined );
|
|
#endif // _DEBUG
|
|
return ( 1 * m_nORIENTATION ) + 0;
|
|
}
|
|
};
|
|
#define shaderDynamicTest_spritecard_vs40 vsh_forgot_to_set_dynamic_ORIENTATION + 0
|