VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEffectTextureUnitStateAttribute.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/StateAttribute>
15 
16 #include <string>
17 
18 namespace makVrv
19 {
22  class DT_DLL_VRVOSG DtOsgEffectTextureUnitStateAttribute : public osg::StateAttribute
23  {
24  public:
25 
27  static const osg::StateAttribute::Type EffectTextureUnitStateAttributeType = (osg::StateAttribute::Type)2000;
28 
30  DtOsgEffectTextureUnitStateAttribute(unsigned int texCoordUnit = 0, const std::string& baseTextureName = "");
31 
34 
36  DtOsgEffectTextureUnitStateAttribute(const DtOsgEffectTextureUnitStateAttribute& stateAttrib, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
37 
38  META_StateAttribute(osg, DtOsgEffectTextureUnitStateAttribute, EffectTextureUnitStateAttributeType);
39 
40  public:
42  virtual bool isTextureAttribute() const;
43 
45  virtual int compare(const osg::StateAttribute& sa) const;
46 
48  virtual unsigned int texCoordUnit() const;
49 
51  virtual const std::string& baseTextureName() const;
52  protected:
53  unsigned int myTexCoordUnit;
54 
55  std::string myBaseTextureName;
56  };
57 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
unsigned int myTexCoordUnit
Definition: DtOsgEffectTextureUnitStateAttribute.h:53
Attribute used to hold the texture coordinate unit to use with the effect texture in the texture attr...
Definition: DtOsgEffectTextureUnitStateAttribute.h:22
std::string myBaseTextureName
Definition: DtOsgEffectTextureUnitStateAttribute.h:55
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)