- Added a framework for drawing the 2D screen elements with Direct3D textures.
They are not actually drawn with it yet, nor is it complete, but it's something to start with. - Split up DCanvas::DrawTexture() into more pieces to make it easier to virtualize. - Removed support for non-32-bit palette textures from D3DFB. What kind of card supports pixel shaders but not 32-bit textures? SVN r605 (trunk)
This commit is contained in:
parent
990f720409
commit
111853e623
17 changed files with 1867 additions and 984 deletions
|
|
@ -3,7 +3,7 @@
|
|||
** Texture class for DDS images
|
||||
**
|
||||
**---------------------------------------------------------------------------
|
||||
** Copyright 2006 Randy Heit
|
||||
** Copyright 2006-2007 Randy Heit
|
||||
** All rights reserved.
|
||||
**
|
||||
** Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -314,6 +314,19 @@ void FDDSTexture::Unload ()
|
|||
}
|
||||
}
|
||||
|
||||
FTextureFormat FDDSTexture::GetFormat()
|
||||
{
|
||||
switch (Format)
|
||||
{
|
||||
case ID_DXT1: return TEX_DXT1;
|
||||
case ID_DXT2: return TEX_DXT2;
|
||||
case ID_DXT3: return TEX_DXT3;
|
||||
case ID_DXT4: return TEX_DXT4;
|
||||
case ID_DXT5: return TEX_DXT5;
|
||||
default: return TEX_RGB;
|
||||
}
|
||||
}
|
||||
|
||||
const BYTE *FDDSTexture::GetColumn (unsigned int column, const Span **spans_out)
|
||||
{
|
||||
if (Pixels == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue