- extended FTexture::GetPixels and FTexture::GetColumn by a RenderStyle parameter.
Now it is no longer necessary to provide specially set up textures for rendering shaded decals, they can use any PNG texture now that contains a proper red channel. Handling of the alPh chunk has been removed as a result as it in no longer needed.
This commit is contained in:
parent
a399d79f8a
commit
f4d9ad1123
41 changed files with 217 additions and 249 deletions
|
|
@ -59,9 +59,9 @@ FSkyBox::~FSkyBox()
|
|||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
const uint8_t *FSkyBox::GetColumn(unsigned int column, const Span **spans_out)
|
||||
const uint8_t *FSkyBox::GetColumn(FRenderStyle style, unsigned int column, const Span **spans_out)
|
||||
{
|
||||
if (faces[0]) return faces[0]->GetColumn(column, spans_out);
|
||||
if (faces[0]) return faces[0]->GetColumn(style, column, spans_out);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
@ -71,9 +71,9 @@ const uint8_t *FSkyBox::GetColumn(unsigned int column, const Span **spans_out)
|
|||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
const uint8_t *FSkyBox::GetPixels ()
|
||||
const uint8_t *FSkyBox::GetPixels (FRenderStyle style)
|
||||
{
|
||||
if (faces[0]) return faces[0]->GetPixels();
|
||||
if (faces[0]) return faces[0]->GetPixels(style);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue