33 DrawTarget(
unsigned int numRenderTargets, DFType rtFormat,
34 unsigned int width,
unsigned int height,
bool hasRTMipmaps =
false,
35 bool createRTStorage =
true, DFType dsFormat =
DF_UNKNOWN,
36 bool createDSStorage =
false);
39 unsigned int GetNumTargets()
const;
40 DFType GetRTFormat()
const;
41 unsigned int GetWidth()
const;
42 unsigned int GetHeight()
const;
43 bool HasRTMipmaps()
const;
44 DFType GetDSFormat()
const;
45 std::shared_ptr<TextureRT>
const GetRTTexture(
unsigned int i)
const;
46 std::shared_ptr<TextureDS>
const GetDSTexture()
const;
52 void AutogenerateRTMipmaps();
53 bool WantAutogenerateRTMipmaps()
const;
66 static void SubscribeForDestruction(std::shared_ptr<ListenerForDestruction>
const& listener);
67 static void UnsubscribeForDestruction(std::shared_ptr<ListenerForDestruction>
const& listener);
76 static std::set<std::shared_ptr<ListenerForDestruction>>
msLFDSet;
virtual void OnDestroy(DrawTarget const *)
std::shared_ptr< TextureDS > mDSTexture
static std::set< std::shared_ptr< ListenerForDestruction > > msLFDSet
virtual ~ListenerForDestruction()
GLint GLsizei GLsizei height
static std::mutex msLFDMutex
std::vector< std::shared_ptr< TextureRT > > mRTTextures