VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLaserDazzleDrawable.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<DtLaserDazzleDrawable>(void) { return "DtLaserDazzleDrawableCreator"; }
38 
41  {
42  public:
44  virtual ~DtLaserDazzleDrawable();
45 
46  virtual void setUvHit(float x, float y);
47  virtual void setBeamDir(float x, float y);
48  virtual void setBeamColor(float r, float g, float b);
49  virtual void setIntensity(float intensity);
50 
51  protected:
54 
57 
58  public:
60  DtLaserDazzleDrawable() = delete;
61 
64 
66  DtLaserDazzleDrawable& operator=(const DtLaserDazzleDrawable&) = delete;
67 
68  public:
69 
71  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
72 
73  protected:
75  virtual void createProgramIfNecessary(const std::string& path, const std::string& prefixName) const;
76 
78  void cleanupGpuMemory(void);
79  protected:
81 
82  mutable int myMutableVrvHitUvLoc;
86  mutable int myMutableVrvTimeLoc;
87 
91  float myIntensity;
92  };
93 
94 
95 }
2 dimensional vector
Vector3_32 myBeamColor
Definition: DtLaserDazzleDrawable.h:90
friend DtLaserDazzleDrawableCreator
friended, to access constructor above
Definition: DtLaserDazzleDrawable.h:56
A convenience class to represent an OpenGL Shader Program.
Definition: DtGlProgram.h:66
float myIntensity
Definition: DtLaserDazzleDrawable.h:91
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
Definition: DtPostProcessorDrawable.h:33
int myMutableVrvBeamDirLoc
Definition: DtLaserDazzleDrawable.h:83
class used to flip the channel horizontally during the post processor camera draw ...
Definition: DtLaserDazzleDrawable.h:40
#define DT_DLL_VRVPOSTPROCESSOR
Definition: vrvPostProcessor.h:19
int myMutableVrvHitUvLoc
Definition: DtLaserDazzleDrawable.h:82
This file contains the declaration of the class DtPostProcessorDrawable which is used for rendering p...
DtGlProgram * myMutableProgram
Definition: DtLaserDazzleDrawable.h:80
Contains DLL export macros.
Vector2_32 myUvHit
Definition: DtLaserDazzleDrawable.h:88
int myMutableVrvIntensityLoc
Definition: DtLaserDazzleDrawable.h:85
Vector2_32 myBeamDir
Definition: DtLaserDazzleDrawable.h:89
DtVirtualBaseClassCreator< DtLaserDazzleDrawable > DtLaserDazzleDrawableCreator
Definition: DtLaserDazzleDrawable.h:32
const char * creatorTypeName< DtLaserDazzleDrawable >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtLaserDazzleDrawable.h:37
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
int myMutableVrvLaserColorLoc
Definition: DtLaserDazzleDrawable.h:84
int myMutableVrvTimeLoc
Definition: DtLaserDazzleDrawable.h:86

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)