- 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 JPEG images
|
||||
**
|
||||
**---------------------------------------------------------------------------
|
||||
** Copyright 2006 Randy Heit
|
||||
** Copyright 2006-2007 Randy Heit
|
||||
** All rights reserved.
|
||||
**
|
||||
** Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -133,7 +133,7 @@ FTexture *FJPEGTexture::Create(FileReader & data, int lumpnum)
|
|||
{
|
||||
return NULL;
|
||||
}
|
||||
if (BigShort (first4bytes.w[0]) <5)
|
||||
if (BigShort (first4bytes.w[0]) < 5)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -192,6 +192,11 @@ void FJPEGTexture::Unload ()
|
|||
}
|
||||
}
|
||||
|
||||
FTextureFormat FJPEGTexture::GetFormat()
|
||||
{
|
||||
return TEX_RGB;
|
||||
}
|
||||
|
||||
const BYTE *FJPEGTexture::GetColumn (unsigned int column, const Span **spans_out)
|
||||
{
|
||||
if (Pixels == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue