VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBlendMaskDrawable.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2025 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
6 #pragma once
7 
11 
14 
15 #include <vrvMath/DtVector2.h>
16 
18 
19 #include <string>
20 
21 namespace osg
22 {
23  class RenderInfo;
24 }
25 
26 namespace makVrv
27 {
28  class DtDe;
29  class DtGlProgram;
30 
31 
34 
36  template <>
37  inline const char* creatorTypeName<DtBlendMaskDrawable>(void) { return "DtBlendMaskDrawableCreator"; }
38 
41  {
42  public:
44  virtual ~DtBlendMaskDrawable();
45 
46  protected:
49 
52 
53  private:
56 
59 
61  DtBlendMaskDrawable& operator=(const DtBlendMaskDrawable&);
62 
63  public:
64 
65  void setOpacity(float opacity);
66  void setOpacityMask(osg::ref_ptr<osg::Texture> mask);
67  void setImageOverlay(osg::ref_ptr<osg::Texture> mask);
68 
70  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
71 
78  //virtual void releaseGLObjects(osg::State* state = 0) const;
79  protected:
81  virtual void createProgramIfNecessary(const std::string& path, const std::string& prefixName) const;
82 
84  void cleanupGpuMemory(void);
85 
86  protected:
88  mutable int myMutableOpacityLoc;
91 
92  mutable float myOpacity;
95  };
96 
97 
98 }
friend DtBlendMaskDrawableCreator
friended, to access constructor above
Definition: DtBlendMaskDrawable.h:51
DtGlProgram * myMutableProgram
Definition: DtBlendMaskDrawable.h:87
2 dimensional vector
const char * creatorTypeName< DtBlendMaskDrawable >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtBlendMaskDrawable.h:37
A convenience class to represent an OpenGL Shader Program.
Definition: DtGlProgram.h:66
osg::ref_ptr< osg::Texture > myOpacityMaskTexture
Definition: DtBlendMaskDrawable.h:93
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
Definition: DtPostProcessorDrawable.h:33
int myMutableOpacityLoc
Definition: DtBlendMaskDrawable.h:88
#define DT_DLL_VRVPOSTPROCESSOR
Definition: vrvPostProcessor.h:19
This file contains the declaration of the class DtPostProcessorDrawable which is used for rendering p...
DtVirtualBaseClassCreator< DtBlendMaskDrawable > DtBlendMaskDrawableCreator
Definition: DtBlendMaskDrawable.h:32
Contains DLL export macros.
int myMutableImageOverlayTexLoc
Definition: DtBlendMaskDrawable.h:90
osg::ref_ptr< osg::Texture > myImageOverlayTexture
Definition: DtBlendMaskDrawable.h:94
float myOpacity
Definition: DtBlendMaskDrawable.h:92
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
class used to flip the channel horizontally during the post processor camera draw ...
Definition: DtBlendMaskDrawable.h:40
int myMutableOpacityMaskTexLoc
Definition: DtBlendMaskDrawable.h:89

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)