VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgToIndirectTextureConverter.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
12 
13 namespace osg
14 {
15  class Texture;
16 }
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtIndirectTexturePrototype;
22  class DtIndirectLog;
23  class DtIndirectImagePrototypeManager;
24  class DtIndirectTexturePrototypeManager;
25  class DtIndirectDefaultTexturesContainer;
26 
30  {
31  public:
34 
37  private:
44  public:
46  virtual void copy(DtIndirectTexturePrototype* vrvTexture, const osg::Texture* srcOsgTexture, uint32_t flags) const;
47 
51  virtual bool match(const DtIndirectTexturePrototype* vrvTexture, const osg::Texture* srcOsgTexture, uint32_t flags) const;
52 
54  virtual std::string textureFileName(const osg::Texture* srcOsgTexture, uint32_t flags) const;
55 
56  protected:
58  bool isAcceleratedPair(const std::string& textureFileName, const std::string& imageFileName) const;
59  protected:
64  };
65 }
virtual std::string textureFileName(const osg::Texture *srcOsgTexture, uint32_t flags) const
texture file name of the srcOsgTexture
DtDe & myDe
Definition: DtOsgToIndirectTextureConverter.h:60
DtOsgToIndirectTextureConverter & operator=(const DtOsgToIndirectTextureConverter &rhs)=delete
not allowed
DtIndirectImagePrototypeManager & myIndirectImagePrototypeManager
Definition: DtOsgToIndirectTextureConverter.h:62
DtOsgToIndirectTextureConverter()=delete
not allowed
DtIndirectImagePrototypeManager creates/manages/deletes DtIndirectImagePrototypes.
Definition: DtIndirectImagePrototypeManager.h:51
loads and contains various core default textures used by the indirect system
Definition: DtIndirectDefaultTexturesContainer.h:30
virtual void copy(DtIndirectTexturePrototype *vrvTexture, const osg::Texture *srcOsgTexture, uint32_t flags) const
fill specs of vrvTexture, given an osg::Texture
VRV maintains its own texture prototypes: DtIndirectImagePrototype. This utility class fills up a DtI...
Definition: DtOsgToIndirectTextureConverter.h:29
This class is specifically used by the indirect system It&#39;s separate so that it doesn&#39;t interfere wit...
Definition: DtIndirectLog.h:30
DtIndirectDefaultTexturesContainer & myDefaultTexturesContainer
Definition: DtOsgToIndirectTextureConverter.h:63
DtIndirectLog & myIndirectLog
Definition: DtOsgToIndirectTextureConverter.h:61
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
VRV/Indirect uses its own texture paradigm: DtIndirectTexturePrototype, which is a &#39;template&#39; for mak...
Definition: DtIndirectTexturePrototype.h:53
virtual bool match(const DtIndirectTexturePrototype *vrvTexture, const osg::Texture *srcOsgTexture, uint32_t flags) const
check if all the properties of a vrvTexture match with the srcOsgTexture This is used by the DtIndire...
virtual ~DtOsgToIndirectTextureConverter()
destructor
bool isAcceleratedPair(const std::string &textureFileName, const std::string &imageFileName) const
whether the texture file name and image file name are an accelerated file pair (extensions will not m...

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)