mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- finally managed to merge in the original texture system commit.
Game compiles and runs but transparency doesn't work yet. # Conflicts: # source/CMakeLists.txt # source/core/menu/menu.cpp # source/core/textures/buildtiles.cpp
This commit is contained in:
parent
0179029ed1
commit
6bffdf80a1
48 changed files with 30050 additions and 138 deletions
|
@ -40,18 +40,17 @@
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
void AnimTexture::SetSize(int width, int height)
|
||||
void AnimTexture::SetFrameSize(int width, int height)
|
||||
{
|
||||
Width = width;
|
||||
Height = height;
|
||||
FTexture::SetSize(width, height);
|
||||
Image.Resize(width*height);
|
||||
}
|
||||
|
||||
void AnimTexture::SetFrame(const uint8_t *palette, const void *data_)
|
||||
{
|
||||
memcpy(Palette, palette, 768);
|
||||
memcpy(Image.Data(), data_, Width*Height);
|
||||
DeleteHardwareTextures();
|
||||
memcpy(Image.Data(), data_, Width * Height);
|
||||
SystemTextures.Clean(true, true);
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
@ -101,8 +100,8 @@ AnimTextures::~AnimTextures()
|
|||
|
||||
void AnimTextures::SetSize(int width, int height)
|
||||
{
|
||||
tex[0]->SetSize(width, height);
|
||||
tex[1]->SetSize(width, height);
|
||||
tex[0]->SetFrameSize(width, height);
|
||||
tex[1]->SetFrameSize(width, height);
|
||||
}
|
||||
|
||||
void AnimTextures::SetFrame(const uint8_t *palette, const void* data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue