VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectDefaultTexturesContainer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
12 
14 
15 #include <osg/ref_ptr>
16 
17 namespace osg
18 {
19  class Texture;
20 }
21 
22 namespace makVrv
23 {
24  class DtDe;
25 
28  {
29  public:
31  static DtIndirectDefaultTexturesContainer& instance(DtDe& de);
32 
35 
42 
43  public:
45  virtual void loadDefaultTextures(void);
46 
48  virtual osg::ref_ptr<osg::Texture> defaultTexture(void);
49 
51  virtual osg::ref_ptr<osg::Texture> outOfMemoryTexture(void);
52 
54  virtual osg::ref_ptr<osg::Texture> lightsDebugDigitsTexture(void);
55  protected:
58 
60  static void registerInstance(DtIndirectDefaultTexturesContainer* manager, DtDe& de);
61 
63  static DtIndirectDefaultTexturesContainer* findInstance(DtDe& de);
64  protected:
66  virtual void loadTheDefaultTexture(const std::string& filename);
67 
70  virtual void loadTheOutOfMemoryTexture(const std::string& filename);
71 
73  virtual void loadLightsDigitsDebugTexture(const std::string& filename);
74  protected:
75 
77 
79 
81 
85 
86  static const std::string theClassName;
87  };
88 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Texture > myDefaultTexture
Definition: DtIndirectDefaultTexturesContainer.h:78
osg::ref_ptr< osg::Texture > myOutOfMemoryTexture
Definition: DtIndirectDefaultTexturesContainer.h:80
osg::ref_ptr< osg::Texture > myLightsDigitsDebugTexture
Texture for rendering the debug labels. Contains all 10 digits so that any number can be shown using ...
Definition: DtIndirectDefaultTexturesContainer.h:84
Contains makVrv::DtVirtualBaseClass class.
DtDe & myDe
Definition: DtIndirectDefaultTexturesContainer.h:76
loads and contains various core default textures used by the indirect system
Definition: DtIndirectDefaultTexturesContainer.h:27
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:70
static const std::string theClassName
Definition: DtIndirectDefaultTexturesContainer.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)