gzdoom-gles/src/swrenderer/things/r_visiblespritelist.h

24 lines
406 B
C++

#pragma once
namespace swrenderer
{
struct DrawSegment;
class VisibleSprite;
class VisibleSpriteList
{
public:
void Clear();
void PushPortal();
void PopPortal();
void Push(VisibleSprite *sprite, bool isVoxel = false);
void Sort();
TArray<VisibleSprite *> SortedSprites;
private:
TArray<VisibleSprite *> Sprites;
TArray<unsigned int> StartIndices;
bool DrewAVoxel = false;
};
}