mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 16:40:40 +00:00
fda4293013
The movie code has always been the part causing the most issues because it alters the palettes - the rest treats them as static data.
28 lines
567 B
C++
28 lines
567 B
C++
#pragma once
|
|
|
|
#include "textures.h"
|
|
|
|
|
|
class AnimTexture : public FTexture
|
|
{
|
|
uint8_t Palette[768];
|
|
TArray<uint8_t> Image;
|
|
public:
|
|
AnimTexture() = default;
|
|
void SetSize(int width, int height);
|
|
void SetFrame(const uint8_t *palette, const void* data);
|
|
virtual FBitmap GetBgraBitmap(const PalEntry* remap, int* trans) override;
|
|
};
|
|
|
|
class AnimTextures
|
|
{
|
|
int active;
|
|
AnimTexture *tex[2];
|
|
|
|
public:
|
|
AnimTextures();
|
|
~AnimTextures();
|
|
void SetSize(int width, int height);
|
|
void SetFrame(const uint8_t *palette, const void* data);
|
|
FTexture *GetFrame();
|
|
};
|