mirror of
https://github.com/celisej567/source-engine.git
synced 2025-12-31 21:48:22 +03:00
Compare commits
1 Commits
text_selec
...
lightstate
| Author | SHA1 | Date | |
|---|---|---|---|
| ad3bb04b64 |
@@ -151,7 +151,7 @@ InitReturnVal_t CDataModel::Init( )
|
||||
//#define _ELEMENT_HISTOGRAM_
|
||||
#ifdef _ELEMENT_HISTOGRAM_
|
||||
CUtlMap< UtlSymId_t, int > g_typeHistogram( 0, 100, DefLessFunc( UtlSymId_t ) );
|
||||
#endif //_ELEMENT_HISTOGRAM_
|
||||
#endif _ELEMENT_HISTOGRAM_
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -166,7 +166,7 @@ void CDataModel::Shutdown()
|
||||
Msg( "%d\t%s\n", g_typeHistogram.Element( i ), GetString( g_typeHistogram.Key( i ) ) );
|
||||
}
|
||||
Msg( "\n" );
|
||||
#endif //_ELEMENT_HISTOGRAM_
|
||||
#endif _ELEMENT_HISTOGRAM_
|
||||
|
||||
int c = GetAllocatedElementCount();
|
||||
if ( c > 0 )
|
||||
@@ -1934,7 +1934,7 @@ CDmElement* CDataModel::CreateElement( const DmElementReference_t &ref, const ch
|
||||
{
|
||||
g_typeHistogram.Insert( typeSym, 1 );
|
||||
}
|
||||
#endif //_ELEMENT_HISTOGRAM_
|
||||
#endif _ELEMENT_HISTOGRAM_
|
||||
}
|
||||
|
||||
return pElement;
|
||||
|
||||
@@ -222,7 +222,7 @@ void DrawFleshInteriorBlendedPass( CBaseVSShader *pShader, IMaterialVar** params
|
||||
bool bUseStaticControlFlow = g_pHardwareConfig->SupportsStaticControlFlow();
|
||||
|
||||
// Set Vertex Shader Combos
|
||||
LightState_t lightState = { 0, false, false };
|
||||
LightState_t lightState = { 0, false, false, false };
|
||||
pShaderAPI->GetDX9LightState( &lightState );
|
||||
DECLARE_DYNAMIC_VERTEX_SHADER( flesh_interior_blended_pass_vs20 );
|
||||
SET_DYNAMIC_VERTEX_SHADER_COMBO( DOWATERFOG, pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z );
|
||||
|
||||
@@ -234,7 +234,7 @@ void DrawParticleLitGeneric_DX9( CBaseVSShader *pShader, IMaterialVar** params,
|
||||
pShader->BindTexture( SHADER_SAMPLER7, info.m_nFlashlightTexture, info.m_nFlashlightTextureFrame );
|
||||
}
|
||||
|
||||
LightState_t lightState = { 0, false, false };
|
||||
LightState_t lightState = { 0, false, false, false };
|
||||
if( !hasFlashlight )
|
||||
pShaderAPI->GetDX9LightState( &lightState );
|
||||
|
||||
|
||||
@@ -638,7 +638,7 @@ BEGIN_VS_SHADER( pyro_vision, "Help for pyro vision" )
|
||||
DynamicCmdsOut.SetPixelShaderConstant( 12, vParms.Base() );
|
||||
|
||||
int numBones = pShaderAPI->GetCurrentNumBones();
|
||||
LightState_t lightState = { 0, false, false };
|
||||
LightState_t lightState = { 0, false, false, false };
|
||||
if ( bVertexLit && !bFullBright )
|
||||
{
|
||||
pShaderAPI->GetDX9LightState( &lightState );
|
||||
|
||||
@@ -611,7 +611,7 @@ void DrawSkin_DX9_Internal( CBaseVSShader *pShader, IMaterialVar** params, IShad
|
||||
}
|
||||
}
|
||||
|
||||
LightState_t lightState = { 0, false, false };
|
||||
LightState_t lightState = { 0, false, false, false };
|
||||
bool bFlashlightShadows = false;
|
||||
if( bHasFlashlight )
|
||||
{
|
||||
|
||||
@@ -1188,7 +1188,7 @@ static void DrawVertexLitGeneric_DX9_Internal( CBaseVSShader *pShader, IMaterial
|
||||
|
||||
|
||||
// Set up light combo state
|
||||
LightState_t lightState = {0, false, false};
|
||||
LightState_t lightState = {0, false, false, false};
|
||||
if ( bVertexLitGeneric && (!bHasFlashlight || IsX360() ) )
|
||||
{
|
||||
pShaderAPI->GetDX9LightState( &lightState );
|
||||
|
||||
@@ -310,7 +310,7 @@ void DrawVortWarp_DX9( CBaseVSShader *pShader, IMaterialVar** params, IShaderDyn
|
||||
}
|
||||
|
||||
// Set up light combo state
|
||||
LightState_t lightState = {0, false, false};
|
||||
LightState_t lightState = {0, false, false, false};
|
||||
if ( bVertexLitGeneric && !hasFlashlight )
|
||||
{
|
||||
pShaderAPI->GetDX9LightState( &lightState );
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
void Init( CDmElement *pOwner, const char *pAttributeName, int flags = 0 );
|
||||
|
||||
// Returns the type of elements allowed into this attribute. UTL_INVAL_SYMBOL allows everything.
|
||||
//UtlSymId_t GetElementType() const;
|
||||
UtlSymId_t GetElementType() const;
|
||||
|
||||
// Get/set
|
||||
void Set( T* pElement );
|
||||
@@ -1149,13 +1149,11 @@ inline void CDmaElement<T>::Init( CDmElement *pOwner, const char *pAttributeName
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
template <class T>
|
||||
inline UtlSymId_t CDmaElement<T>::GetElementType() const
|
||||
{
|
||||
return this->Data().m_ElementType;
|
||||
}
|
||||
*/
|
||||
|
||||
template <class T>
|
||||
inline T* CDmaElement<T>::GetElement() const
|
||||
|
||||
@@ -109,8 +109,8 @@ protected:
|
||||
|
||||
T** m_pMemory;
|
||||
int m_nBlocks;
|
||||
int m_nIndexMask;
|
||||
int m_nIndexShift;
|
||||
int m_nIndexMask : 27;
|
||||
int m_nIndexShift : 5;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -130,16 +130,17 @@ CUtlBlockMemory<T,I>::~CUtlBlockMemory()
|
||||
Purge();
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Fast swap
|
||||
//-----------------------------------------------------------------------------
|
||||
template< class T, class I >
|
||||
void CUtlBlockMemory<T,I>::Swap( CUtlBlockMemory< T, I > &mem )
|
||||
{
|
||||
V_swap( m_pMemory, mem.m_pMemory );
|
||||
V_swap( m_nBlocks, mem.m_nBlocks );
|
||||
V_swap( m_nIndexMask, mem.m_nIndexMask );
|
||||
V_swap( m_nIndexShift, mem.m_nIndexShift );
|
||||
this->swap( m_pMemory, mem.m_pMemory );
|
||||
this->swap( m_nBlocks, mem.m_nBlocks );
|
||||
this->swap( m_nIndexMask, mem.m_nIndexMask );
|
||||
this->swap( m_nIndexShift, mem.m_nIndexShift );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -862,12 +862,6 @@ void RichText::Paint()
|
||||
if ( m_LineBreaks.IsValidIndex( lineBreakIndexIndex ) && m_LineBreaks[lineBreakIndexIndex] < iLim )
|
||||
iLim = m_LineBreaks[lineBreakIndexIndex];
|
||||
|
||||
// Stop when entering or exiting the selected range
|
||||
if ( i < selection0 && iLim >= selection0 )
|
||||
iLim = selection0;
|
||||
if ( i >= selection0 && i < selection1 && iLim >= selection1 )
|
||||
iLim = selection1;
|
||||
|
||||
// Handle non-drawing characters specially
|
||||
for ( int iT = i; iT < iLim; iT++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user