mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
arm64 : fix intptr_t size
This commit is contained in:
@@ -345,7 +345,7 @@ float CPixelVisibilityQuery::GetFractionVisible( float fadeTimeInv )
|
||||
|
||||
if ( r_pixelvisibility_spew.GetBool() && CurrentViewID() == 0 )
|
||||
{
|
||||
DevMsg( 1, "Pixels visible: %d (qh:%d) Pixels possible: %d (qh:%d) (frame:%d)\n", pixels, (int)m_queryHandle, pixelsPossible, (int)m_queryHandleCount, gpGlobals->framecount );
|
||||
DevMsg( 1, "Pixels visible: %d (qh:%d) Pixels possible: %d (qh:%d) (frame:%d)\n", pixels, (int)(intp)m_queryHandle, pixelsPossible, (int)(intp)m_queryHandleCount, gpGlobals->framecount );
|
||||
}
|
||||
|
||||
if ( pixels < 0 || pixelsPossible < 0 )
|
||||
@@ -376,7 +376,7 @@ float CPixelVisibilityQuery::GetFractionVisible( float fadeTimeInv )
|
||||
|
||||
if ( r_pixelvisibility_spew.GetBool() && CurrentViewID() == 0 )
|
||||
{
|
||||
DevMsg( 1, "Pixels visible: %d (qh:%d) (frame:%d)\n", pixels, (int)m_queryHandle, gpGlobals->framecount );
|
||||
DevMsg( 1, "Pixels visible: %d (qh:%d) (frame:%d)\n", pixels, (int)(intp)m_queryHandle, gpGlobals->framecount );
|
||||
}
|
||||
|
||||
if ( pixels < 0 )
|
||||
@@ -415,7 +415,7 @@ void CPixelVisibilityQuery::IssueQuery( IMatRenderContext *pRenderContext, float
|
||||
|
||||
if ( r_pixelvisibility_spew.GetBool() && CurrentViewID() == 0 )
|
||||
{
|
||||
DevMsg( 1, "Draw Proxy: qh:%d org:<%d,%d,%d> (frame:%d)\n", (int)m_queryHandle, (int)m_origin[0], (int)m_origin[1], (int)m_origin[2], gpGlobals->framecount );
|
||||
DevMsg( 1, "Draw Proxy: qh:%d org:<%d,%d,%d> (frame:%d)\n", (int)(intp)m_queryHandle, (int)m_origin[0], (int)m_origin[1], (int)m_origin[2], gpGlobals->framecount );
|
||||
}
|
||||
|
||||
m_clipFraction = PixelVisibility_DrawProxy( pRenderContext, m_queryHandle, m_origin, proxySize, proxyAspect, pMaterial, sizeIsScreenSpace );
|
||||
|
||||
@@ -1691,7 +1691,7 @@ void C_RopeKeyframe::BuildRope( RopeSegData_t *pSegmentData, const Vector &vCurr
|
||||
|
||||
if ( !bQueued && RopeManager()->IsHolidayLightMode() && r_rope_holiday_light_scale.GetFloat() > 0.0f )
|
||||
{
|
||||
data.m_nMaterial = reinterpret_cast< int >( this );
|
||||
data.m_nMaterial = (intp)this;
|
||||
data.m_nHitBox = ( iNode << 8 );
|
||||
data.m_flScale = r_rope_holiday_light_scale.GetFloat();
|
||||
data.m_vOrigin = pSegmentData->m_Segments[nSegmentCount].m_vPos;
|
||||
|
||||
@@ -213,7 +213,7 @@ void TE_DispatchEffect( IRecipientFilter& filter, float delay, KeyValues *pKeyVa
|
||||
|
||||
// NOTE: Ptrs are our way of indicating it's an entindex
|
||||
ClientEntityHandle_t hWorld = ClientEntityList().EntIndexToHandle( 0 );
|
||||
data.m_hEntity = (int)pKeyValues->GetPtr( "entindex", (void*)hWorld.ToInt() );
|
||||
data.m_hEntity = (intp)pKeyValues->GetPtr( "entindex", (void*)hWorld.ToInt() );
|
||||
|
||||
const char *pEffectName = pKeyValues->GetString( "effectname" );
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ public:
|
||||
// methods of ISpatialLeafEnumerator
|
||||
public:
|
||||
|
||||
bool EnumerateLeaf( int leaf, int context );
|
||||
bool EnumerateLeaf( int leaf, intp context );
|
||||
|
||||
// Adds a shadow to a leaf
|
||||
void AddShadowToLeaf( int leaf, ClientLeafShadowHandle_t handle );
|
||||
@@ -1132,7 +1132,7 @@ void CClientLeafSystem::AddRenderableToLeaves( ClientRenderHandle_t handle, int
|
||||
//-----------------------------------------------------------------------------
|
||||
// Inserts an element into the tree
|
||||
//-----------------------------------------------------------------------------
|
||||
bool CClientLeafSystem::EnumerateLeaf( int leaf, int context )
|
||||
bool CClientLeafSystem::EnumerateLeaf( int leaf, intp context )
|
||||
{
|
||||
EnumResultList_t *pList = (EnumResultList_t *)context;
|
||||
if ( ThreadInMainThread() )
|
||||
@@ -1168,7 +1168,7 @@ void CClientLeafSystem::InsertIntoTree( ClientRenderHandle_t &handle )
|
||||
Assert( absMins.IsValid() && absMaxs.IsValid() );
|
||||
|
||||
ISpatialQuery* pQuery = engine->GetBSPTreeQuery();
|
||||
pQuery->EnumerateLeavesInBox( absMins, absMaxs, this, (int)&list );
|
||||
pQuery->EnumerateLeavesInBox( absMins, absMaxs, this, (intp)&list );
|
||||
|
||||
if ( list.pHead )
|
||||
{
|
||||
|
||||
@@ -2244,7 +2244,7 @@ inline ShadowType_t CClientShadowMgr::GetActualShadowCastType( IClientRenderable
|
||||
class CShadowLeafEnum : public ISpatialLeafEnumerator
|
||||
{
|
||||
public:
|
||||
bool EnumerateLeaf( int leaf, int context )
|
||||
bool EnumerateLeaf( int leaf, intp context )
|
||||
{
|
||||
m_LeafList.AddToTail( leaf );
|
||||
return true;
|
||||
@@ -4217,7 +4217,7 @@ bool CShadowProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
|
||||
|
||||
void CShadowProxy::OnBind( void *pProxyData )
|
||||
{
|
||||
unsigned short clientShadowHandle = ( unsigned short )(int)pProxyData&0xffff;
|
||||
unsigned short clientShadowHandle = ( unsigned short )(intp)pProxyData&0xffff;
|
||||
ITexture* pTex = s_ClientShadowMgr.GetShadowTexture( clientShadowHandle );
|
||||
m_BaseTextureVar->SetTextureValue( pTex );
|
||||
if ( ToolsEnabled() )
|
||||
@@ -4301,7 +4301,7 @@ bool CShadowModelProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
|
||||
|
||||
void CShadowModelProxy::OnBind( void *pProxyData )
|
||||
{
|
||||
unsigned short clientShadowHandle = ( unsigned short )((int)pProxyData&0xffff);
|
||||
unsigned short clientShadowHandle = ( unsigned short )((intp)pProxyData&0xffff);
|
||||
ITexture* pTex = s_ClientShadowMgr.GetShadowTexture( clientShadowHandle );
|
||||
m_BaseTextureVar->SetTextureValue( pTex );
|
||||
|
||||
|
||||
@@ -405,7 +405,7 @@ public:
|
||||
void BeginTranslucentDetailRendering( );
|
||||
|
||||
// Method of ISpatialLeafEnumerator
|
||||
bool EnumerateLeaf( int leaf, int context );
|
||||
bool EnumerateLeaf( int leaf, intp context );
|
||||
|
||||
DetailPropLightstylesLump_t& DetailLighting( int i ) { return m_DetailLighting[i]; }
|
||||
DetailPropSpriteDict_t& DetailSpriteDict( int i ) { return m_DetailSpriteDict[i]; }
|
||||
@@ -464,7 +464,7 @@ private:
|
||||
int SortSpritesBackToFront( int nLeaf, const Vector &viewOrigin, const Vector &viewForward, SortInfo_t *pSortInfo );
|
||||
|
||||
// For fast detail object insertion
|
||||
IterationRetval_t EnumElement( int userId, int context );
|
||||
IterationRetval_t EnumElement( int userId, intp context );
|
||||
|
||||
CUtlVector<DetailModelDict_t> m_DetailObjectDict;
|
||||
CUtlVector<CDetailModel> m_DetailObjects;
|
||||
@@ -2322,7 +2322,7 @@ void CDetailObjectSystem::RenderFastSprites( const Vector &viewOrigin, const Vec
|
||||
FastSpriteQuadBuildoutBufferNonSIMDView_t const *pquad = pQuadBuffer+nSIMDIdx;
|
||||
|
||||
// voodoo - since everything is in 4s, offset structure pointer by a couple of floats to handle sub-index
|
||||
pquad = (FastSpriteQuadBuildoutBufferNonSIMDView_t const *) ( ( (int) ( pquad ) )+ ( nSubIdx << 2 ) );
|
||||
pquad = (FastSpriteQuadBuildoutBufferNonSIMDView_t const *) ( ( (intp) ( pquad ) )+ ( nSubIdx << 2 ) );
|
||||
uint8 const *pColorsCasted = reinterpret_cast<uint8 const *> ( pquad->m_Alpha );
|
||||
|
||||
uint8 color[4];
|
||||
@@ -2554,7 +2554,7 @@ void CDetailObjectSystem::RenderFastTranslucentDetailObjectsInLeaf( const Vector
|
||||
FastSpriteQuadBuildoutBufferNonSIMDView_t const *pquad = pQuadBuffer+nSIMDIdx;
|
||||
|
||||
// voodoo - since everything is in 4s, offset structure pointer by a couple of floats to handle sub-index
|
||||
pquad = (FastSpriteQuadBuildoutBufferNonSIMDView_t const *) ( ( (int) ( pquad ) )+ ( nSubIdx << 2 ) );
|
||||
pquad = (FastSpriteQuadBuildoutBufferNonSIMDView_t const *) ( ( (intp) ( pquad ) )+ ( nSubIdx << 2 ) );
|
||||
uint8 const *pColorsCasted = reinterpret_cast<uint8 const *> ( pquad->m_Alpha );
|
||||
|
||||
uint8 color[4];
|
||||
@@ -2707,7 +2707,7 @@ void CDetailObjectSystem::RenderTranslucentDetailObjectsInLeaf( const Vector &vi
|
||||
//-----------------------------------------------------------------------------
|
||||
// Gets called each view
|
||||
//-----------------------------------------------------------------------------
|
||||
bool CDetailObjectSystem::EnumerateLeaf( int leaf, int context )
|
||||
bool CDetailObjectSystem::EnumerateLeaf( int leaf, intp context )
|
||||
{
|
||||
VPROF_BUDGET( "CDetailObjectSystem::EnumerateLeaf", VPROF_BUDGETGROUP_DETAILPROP_RENDERING );
|
||||
Vector v;
|
||||
@@ -2806,6 +2806,6 @@ void CDetailObjectSystem::BuildDetailObjectRenderLists( const Vector &vViewOrigi
|
||||
|
||||
ISpatialQuery* pQuery = engine->GetBSPTreeQuery();
|
||||
pQuery->EnumerateLeavesInSphere( CurrentViewOrigin(),
|
||||
cl_detaildist.GetFloat(), this, (int)&ctx );
|
||||
cl_detaildist.GetFloat(), this, (intp)&ctx );
|
||||
}
|
||||
|
||||
|
||||
@@ -410,7 +410,7 @@ bool CPlayerLogoProxy::Init( IMaterial *pMaterial, KeyValues *pKeyValues )
|
||||
void CPlayerLogoProxy::OnBind( void *pC_BaseEntity )
|
||||
{
|
||||
// Decal's are bound with the player index as the passed in paramter
|
||||
int playerindex = (int)pC_BaseEntity;
|
||||
int playerindex = (intp)pC_BaseEntity;
|
||||
|
||||
if ( playerindex <= 0 )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user