![]() |
VR-Forces 4.8 Class Documentation
|

Classes | |
| class | LoadingJob |
Public Member Functions | |
| virtual | ~DtIndirectTextureProcessor () |
| destructor More... | |
| virtual void | launchTextureLoadsIfNecessary (DtOsgRenderer *renderer) |
| called by cull thread and pager threads to starts the job in the main thread if there is anything to load More... | |
| virtual void | ts_addTexturesToLoad (int beforeTextureIndex, int afterTextureIndex, OsgTexturesArray &textures) |
| adds textures myWorkMutex is used as a guard internally. More... | |
| virtual void | ts_addTextureToLoad (osg::Texture *texture) |
| threadsafe function for adding a single osg texture to the list of textures to load. More... | |
| virtual unsigned int | streamTexturesToGpu (osg::RenderInfo &renderInfo) |
| Called by jobs system job to actually send the texture data down. More... | |
| virtual unsigned int | texturesUpdatedFrameNum () |
| Clears a dirty bit that keeps track of if new textures were loaded. More... | |
| virtual int | numTexturesRemaining () |
| get the number of textures that are still needing to be loaded or in the process of loading. More... | |
| virtual void | releaseGLObjects (osg::State *state) const |
| release internal gl data. More... | |
| virtual void | makeTexturesResidentIfNeeded (osg::RenderInfo &renderInfo) const |
| makes texures ready for bindless. More... | |
| virtual bool | ts_setCompressionDisabledHint (osg::Image *image, bool val) const |
| utility function for setting the uservalue on the image for disabling compression More... | |
| virtual bool | ts_compressionDisabledHint (osg::Image *image) const |
| utility function for getting the uservalue on the image for disabling compression More... | |
| virtual void | stopWork () |
| stops the texture loading job More... | |
| virtual int | numTexturesToLoad () |
| helps figure out if there's still work to do More... | |
| virtual int | numTexturesLoading () |
| helps figure out if there's still work to do More... | |
| virtual bool | inJobQueue () |
| is texture processor still running in the main thread job system More... | |
| virtual boost::condition_variable & | waitCondition () |
| used as sync point between CDB background pagers and indirect system More... | |
| virtual bool | inTextureToGCMap (osg::GraphicsContext *gContext, osg::Texture::TextureObject *texObj) const |
| Check if we have already added a texture object to our list of textures object by graphics context if we have already added then return true. More... | |
Public Attributes | |
| friend | DtIndirectTextureProcessorCreator |
| The creator class needs to be a freind so it can create this class. More... | |
Protected Types | |
| typedef std::set< osg::ref_ptr < osg::Texture > > | SetTextures |
| typedef std::set< unsigned int > | SetNonSharedContextIds |
| typedef std::map< unsigned int, SetNonSharedContextIds > | MapContextIdsToNonSharedContextIds |
| typedef std::map < osg::GraphicsContext *, unsigned int > | MapGCToContextIds |
| typedef std::set< osg::ref_ptr < osg::Texture::TextureObject > > | TexturesSet |
| typedef std::map < osg::GraphicsContext *, TexturesSet > | MapNonSharedContextIdsToNewTexturesArray |
| typedef std::map < osg::GraphicsContext *, TexturesSet > | MapGCToTexSet |
Protected Member Functions | |
| DtIndirectTextureProcessor (DtDe &de) | |
| CTOR. More... | |
| virtual void | addTexturesToLoad (const DtIndirectGeometryTextures *osgGeometryTextures) |
| Add the DtIndirectGeometryTextures to the list of textures to load. Called by ts_addTexturesToLoad. More... | |
| virtual void | addTextureToLoad (osg::Texture *texture) |
| adds an individual texture to the queue More... | |
| virtual osg::Operation * | createJob () |
| creates a job for the main thread to run More... | |
| virtual void | collectNewTexturesAcrosssNonSharedContextIds (const osg::RenderInfo &renderInfo, osg::Texture::TextureObject *ts) const |
| virtual void | makeNewTexturesAcrosssNonSharedContextIdsResident (osg::GraphicsContext *gc) const |
| virtual void | addTextureToGCMap (osg::GraphicsContext *gContext, osg::Texture::TextureObject *texObj) const |
| Add a texture object to our list of texture objects by graphics context. More... | |
| virtual void | slot_windowToBeDestroyed (DtWindow *window) |
| handle window closing (context destroyed) More... | |
Private Member Functions | |
| DtIndirectTextureProcessor (const DtIndirectTextureProcessor &other) | |
| Copy Constructor not implemented – Copy Not Allowed. More... | |
| DtIndirectTextureProcessor & | operator= (const DtIndirectTextureProcessor &other) |
| Assignment Operator Not implemented – Assignment Not Allowed. More... | |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
destructor
|
protected |
CTOR.
|
private |
Copy Constructor not implemented – Copy Not Allowed.
|
private |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
called by cull thread and pager threads to starts the job in the main thread if there is anything to load
|
virtual |
adds textures myWorkMutex is used as a guard internally.
|
virtual |
threadsafe function for adding a single osg texture to the list of textures to load.
|
virtual |
Called by jobs system job to actually send the texture data down.
Clears a dirty bit that keeps track of if new textures were loaded.
|
virtual |
get the number of textures that are still needing to be loaded or in the process of loading.
|
virtual |
release internal gl data.
|
virtual |
makes texures ready for bindless.
|
virtual |
utility function for setting the uservalue on the image for disabling compression
|
virtual |
utility function for getting the uservalue on the image for disabling compression
|
virtual |
stops the texture loading job
|
virtual |
helps figure out if there's still work to do
|
virtual |
helps figure out if there's still work to do
|
virtual |
is texture processor still running in the main thread job system
|
virtual |
used as sync point between CDB background pagers and indirect system
|
virtual |
Check if we have already added a texture object to our list of textures object by graphics context if we have already added then return true.
|
protectedvirtual |
Add the DtIndirectGeometryTextures to the list of textures to load. Called by ts_addTexturesToLoad.
|
protectedvirtual |
adds an individual texture to the queue
|
protectedvirtual |
creates a job for the main thread to run
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Add a texture object to our list of texture objects by graphics context.
|
protectedvirtual |
handle window closing (context destroyed)
| friend makVrv::DtIndirectTextureProcessor::DtIndirectTextureProcessorCreator |
The creator class needs to be a freind so it can create this class.
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
For slot_windowToBeDestroyed, keep track of graphcs context and the OSG context id since some functions use context id, others graphics context pointer.
|
mutableprotected |
The nex textures that have been seen in this context.
|
mutableprotected |
Which textures have we seen in what contexts.
|
mutableprotected |
Texture ids for all textures that we have seen so far in all contexts.
|
protected |
|
protected |
|
protected |