VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectDefaultTextureCollectionPolicy.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
16 
17 namespace osg
18 {
19  class StateSet;
20  class ExtendedMaterial;
21 }
22 
23 namespace makVrv
24 {
29  {
30  public:
33 
36 
37  protected:
38  // ! constructor. only creator can create
40 
41  private:
46 
47  public:
50  virtual void collectTextures(DtIndirectGeometryTextures& textures, const osg::StateSet* stateSet, const std::string &modelName) const override;
51  protected:
52 
54  virtual void collectTextures(DtIndirectGeometryTextures& textures, const osg::StateSet* stateSet, osg::ref_ptr<const osg::Texture> osgDiffuseTexture
55  , const osg::ExtendedMaterial* extendedMaterial, const std::string &modelName) const;
56 
57 
59  virtual void collectTexturesExtendedMaterial(DtIndirectGeometryTextures& textures, const osg::StateSet* stateSet, osg::ref_ptr<const osg::Texture> osgDiffuseTexture
60  , const osg::ExtendedMaterial* extendedMaterial, const std::string &modelName) const;
61 
63  virtual void collectTexturesNoExtendedMaterial(DtIndirectGeometryTextures& textures, const osg::StateSet* stateSet, osg::ref_ptr<const osg::Texture> osgDiffuseTexture
64  , const std::string &modelName) const;
65 
67  virtual bool collectTexturesData(int unit, const osg::StateSet* stateSet
68  , const osg::Texture* diffuseTexture
69  , bool& error
70  , const osg::StateAttribute*& texattr
71  , const osg::Texture*& texture) const;
72  };
73 
76  {
77  public:
80 
83 
85  virtual DtIndirectTextureCollectionPolicy* create(DtDe& de);
86  };
87 }
Contains makVrv::DtEffectTextureType declaration.
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
creator for DtIndirectDefaultTextureCollectionPolicy
Definition: DtIndirectDefaultTextureCollectionPolicy.h:75
Abstract class to look in the stateset and collect textures specified via its template The effect tex...
Definition: DtIndirectTextureCollectionPolicy.h:43
Abstract class for creation of a particular texture collection policy.
Definition: DtIndirectTextureCollectionPolicy.h:88
specialization of DtIndirectTextureCollectionPolicy to collect textures for indirect rendering used b...
Definition: DtIndirectDefaultTextureCollectionPolicy.h:28
This class represents the list of DtIndirectTexturePrototypes belonging to a particular sub-geometry...
Definition: DtIndirectGeometryTextures.h:38
Contains the DtIndirectTextureCollectionPolicy class declaration.
Definition: asyncJobServer.h:39
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:76

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)