VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectGeometryTextures.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/Texture>
15 
16 #include <vector>
17 
18 namespace makVrv
19 {
20  class DtIndirectGeometryTexturesPointers;
21  class DtIndirectEffectTexturesTemplate;
22 
25  {
26  public:
29 
31  virtual ~DtIndirectGeometryTextures();
32 
34  virtual bool hasDiffuseTexture(void) const;
35 
37  virtual bool hasTexture(int type) const;
38 
40  virtual osg::ref_ptr<osg::Texture> diffuseTexture(void) const;
41 
45  virtual int diffuseTextureUnit() const;
46 
48  virtual osg::ref_ptr<osg::Texture> textureForType(int type) const;
49 
51  virtual osg::ref_ptr<osg::Texture> textureForIndex(int index) const;
52 
56  virtual int textureUnitForIndex(int index) const;
57 
59  virtual const DtIndirectEffectTexturesTemplate* effectTexturesTemplate(void) const;
60 
61  protected:
63  osg::ref_ptr<osg::Texture> myDiffuseTexture;
65 
66  typedef std::vector< osg::ref_ptr<osg::Texture> > VectorTextures;
68 
69  typedef std::vector< unsigned int > VectorTextureUnits;
71 
72  };
73 
74  typedef std::vector<DtIndirectGeometryTextures> VectorOsgTextures;
75 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)