- support particle styles in softpoly

This commit is contained in:
Magnus Norddahl 2017-03-27 11:33:16 +02:00
commit e865ba60f5
4 changed files with 49 additions and 1 deletions

View file

@ -45,6 +45,14 @@ void PolyDrawArgs::SetClipPlane(const PolyClipPlane &plane)
mClipPlane[3] = plane.D;
}
void PolyDrawArgs::SetTexture(const uint8_t *texels, int width, int height)
{
mTexturePixels = texels;
mTextureWidth = width;
mTextureHeight = height;
mTranslation = nullptr;
}
void PolyDrawArgs::SetTexture(FTexture *texture)
{
mTextureWidth = texture->GetWidth();