mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-16 07:10:53 +00:00
25 lines
545 B
C
25 lines
545 B
C
|
#pragma once
|
||
|
|
||
|
class FCanvasTexture;
|
||
|
// This list keeps track of the cameras that draw into canvas textures.
|
||
|
struct FCanvasTextureEntry
|
||
|
{
|
||
|
FCanvasTextureInfo *Next;
|
||
|
TObjPtr<AActor*> Viewpoint;
|
||
|
FCanvasTexture *Texture;
|
||
|
FTextureID PicNum;
|
||
|
double FOV;
|
||
|
};
|
||
|
|
||
|
|
||
|
struct FCanvasTextureInfo
|
||
|
{
|
||
|
TArray<FCanvasTextureEntry> List;
|
||
|
|
||
|
void Add (AActor *viewpoint, FTextureID picnum, double fov);
|
||
|
void UpdateAll (std::function<void(AActor *, FCanvasTexture *, double fov)> callback);
|
||
|
void EmptyList ();
|
||
|
void Serialize(FSerializer &arc);
|
||
|
void Mark();
|
||
|
|
||
|
};
|