Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Attributes | List of all members
gte::DrawTarget Class Reference

#include <GteDrawTarget.h>

Classes

class  ListenerForDestruction
 

Public Member Functions

void AutogenerateRTMipmaps ()
 
 DrawTarget (unsigned int numRenderTargets, DFType rtFormat, unsigned int width, unsigned int height, bool hasRTMipmaps=false, bool createRTStorage=true, DFType dsFormat=DF_UNKNOWN, bool createDSStorage=false)
 
DFType GetDSFormat () const
 
std::shared_ptr< TextureDS > const GetDSTexture () const
 
unsigned int GetHeight () const
 
unsigned int GetNumTargets () const
 
DFType GetRTFormat () const
 
std::shared_ptr< TextureRT > const GetRTTexture (unsigned int i) const
 
unsigned int GetWidth () const
 
bool HasRTMipmaps () const
 
bool WantAutogenerateRTMipmaps () const
 
virtual ~DrawTarget ()
 

Static Public Member Functions

static void SubscribeForDestruction (std::shared_ptr< ListenerForDestruction > const &listener)
 
static void UnsubscribeForDestruction (std::shared_ptr< ListenerForDestruction > const &listener)
 

Protected Attributes

std::shared_ptr< TextureDSmDSTexture
 
std::vector< std::shared_ptr< TextureRT > > mRTTextures
 

Static Private Attributes

static std::mutex msLFDMutex
 
static std::set< std::shared_ptr< ListenerForDestruction > > msLFDSet
 

Detailed Description

Definition at line 17 of file GteDrawTarget.h.

Constructor & Destructor Documentation

DrawTarget::~DrawTarget ( )
virtual

Definition at line 13 of file GteDrawTarget.cpp.

DrawTarget::DrawTarget ( unsigned int  numRenderTargets,
DFType  rtFormat,
unsigned int  width,
unsigned int  height,
bool  hasRTMipmaps = false,
bool  createRTStorage = true,
DFType  dsFormat = DF_UNKNOWN,
bool  createDSStorage = false 
)

Definition at line 25 of file GteDrawTarget.cpp.

Member Function Documentation

void DrawTarget::AutogenerateRTMipmaps ( )

Definition at line 134 of file GteDrawTarget.cpp.

DFType DrawTarget::GetDSFormat ( ) const

Definition at line 106 of file GteDrawTarget.cpp.

std::shared_ptr< TextureDS > const DrawTarget::GetDSTexture ( ) const

Definition at line 129 of file GteDrawTarget.cpp.

unsigned int DrawTarget::GetHeight ( ) const

Definition at line 84 of file GteDrawTarget.cpp.

unsigned int DrawTarget::GetNumTargets ( ) const

Definition at line 57 of file GteDrawTarget.cpp.

DFType DrawTarget::GetRTFormat ( ) const

Definition at line 62 of file GteDrawTarget.cpp.

std::shared_ptr< TextureRT > const DrawTarget::GetRTTexture ( unsigned int  i) const

Definition at line 117 of file GteDrawTarget.cpp.

unsigned int DrawTarget::GetWidth ( ) const

Definition at line 73 of file GteDrawTarget.cpp.

bool DrawTarget::HasRTMipmaps ( ) const

Definition at line 95 of file GteDrawTarget.cpp.

void DrawTarget::SubscribeForDestruction ( std::shared_ptr< ListenerForDestruction > const &  listener)
static

Definition at line 156 of file GteDrawTarget.cpp.

void DrawTarget::UnsubscribeForDestruction ( std::shared_ptr< ListenerForDestruction > const &  listener)
static

Definition at line 165 of file GteDrawTarget.cpp.

bool DrawTarget::WantAutogenerateRTMipmaps ( ) const

Definition at line 145 of file GteDrawTarget.cpp.

Member Data Documentation

std::shared_ptr<TextureDS> gte::DrawTarget::mDSTexture
protected

Definition at line 71 of file GteDrawTarget.h.

std::vector<std::shared_ptr<TextureRT> > gte::DrawTarget::mRTTextures
protected

Definition at line 70 of file GteDrawTarget.h.

std::mutex DrawTarget::msLFDMutex
staticprivate

Definition at line 75 of file GteDrawTarget.h.

std::set< std::shared_ptr< DrawTarget::ListenerForDestruction > > DrawTarget::msLFDSet
staticprivate

Definition at line 76 of file GteDrawTarget.h.


The documentation for this class was generated from the following files:


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:05