Graphics::IRenderTargetManager class

Derived classes

class cRenderTargetManager

Public static functions

static auto Get() -> IRenderTargetManager*

Public functions

auto AddRef() -> int pure virtual
auto Release() -> int pure virtual
auto Initialize() -> bool pure virtual
auto Dispose() -> bool pure virtual
auto CreateRenderTarget(int width, int height, D3DFORMAT format, int flags = 0, uint32_t instanceID = 0xFFFFFFFF, int = 0) -> struct RenderTargetID pure virtual
Creates a new render target manager.
auto ReleaseRenderTarget(struct RenderTargetID index) -> bool pure virtual
auto GetRaster(struct RenderTargetID index) const -> RenderWare::Raster* pure virtual
Returns the render target raster stored with the given index.
auto GetTexture(struct RenderTargetID index) const -> Texture* pure virtual
Returns the render target texture stored with the given index.
auto GetRegionViewport(struct RenderTargetID index, Math::IntRectangle& dst) -> bool virtual
auto GetRegionViewport2(struct RenderTargetID index, int& dst_x1, int& dst_y1, int& dst_width, int& dst_height) -> bool virtual
auto GetRasterTotalDimensions(int index, int& dst_width, int& dst_height) -> bool virtual
auto GetRegionUVCoords(struct RenderTargetID index, Math::Vector2& dstTopLeft, Math::Vector2& dstBottomRight) -> bool virtual
auto GetRenderTargetData(struct RenderTargetID index, void*& pDstData) -> void virtual
auto func34h(class ResourceID index, int, int) -> void virtual
auto func38h(int, int) -> void virtual
auto func3Ch() -> bool virtual
auto func40h(int, int, int, int) -> bool virtual
auto func44h() -> void virtual
auto SetRenderTargetName(struct RenderTargetID index, const char* pName) -> void virtual

Function documentation

struct RenderTargetID Graphics::IRenderTargetManager::CreateRenderTarget(int width, int height, D3DFORMAT format, int flags = 0, uint32_t instanceID = 0xFFFFFFFF, int = 0) pure virtual

Creates a new render target manager.

Parameters
width
height
format
flags
instanceID
Returns Index and regionIndex of the new RTT

It returns the index and regionIndex that can be used to access that render target. This will also create a new texture using the ITextureManager, with the given instanceID as name (or autogenerated if not specified).

RenderWare::Raster* Graphics::IRenderTargetManager::GetRaster(struct RenderTargetID index) const pure virtual

Returns the render target raster stored with the given index.

Parameters
index

Region index is ignored

Texture* Graphics::IRenderTargetManager::GetTexture(struct RenderTargetID index) const pure virtual

Returns the render target texture stored with the given index.

Parameters
index

Region index is ignored