middle of working on 1.90

This commit is contained in:
Chris Danford
2002-03-31 07:55:25 +00:00
parent 065d213655
commit d641cb4ae3
24 changed files with 191 additions and 51 deletions
+7 -2
View File
@@ -178,7 +178,7 @@ void Sprite::Update( float fDeltaTime )
void Sprite::RenderPrimitives()
{
SCREEN->Translate( -0.5f, -0.5f, 0 ); // offset so that pixels are aligned to texels
SCREEN->TranslateLocal( -0.5f, -0.5f, 0 ); // offset so that pixels are aligned to texels
if( m_pTexture == NULL )
return;
@@ -264,7 +264,7 @@ void Sprite::RenderPrimitives()
if( m_bShadow )
{
SCREEN->PushMatrix();
SCREEN->Translate( 5, 5, 0 ); // shift by 5 units
SCREEN->TranslateLocal( m_fShadowLength, m_fShadowLength, 0 ); // shift by 5 units
pVB->Lock( 0, 0, (BYTE**)&v, 0 );
@@ -383,3 +383,8 @@ void Sprite::SetCustomImageCoords( float fImageCoords[8] ) // order: bottom left
SetCustomTextureCoords( fImageCoords );
}
void Sprite::StopUsingCustomCoords()
{
m_bUsingCustomTexCoords = false;
}