VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgLightDebugAdapter.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 
15 
16 namespace makVrv
17 {
18  class DtOsgGizmoRenderer;
19  class DtDe;
20 
23  {
24  public:
26 
27  public:
29  virtual bool somethingToDraw(void) const override;
30 
31  virtual void drawDebugLines(osg::RenderInfo& renderInfo, const osg::Vec3d& eyePoint, DtOsgGizmoRenderer* renderer);
32  protected:
33  unsigned int myLastFrameNumber;
35  };
36 }
Contains makVrv::DtDebugDrawCallbackInterface class.
bool myDrawDebugData
Definition: DtOsgLightDebugAdapter.h:34
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A simple interface for allowing the various systems to draw lines at the right time.
Definition: DtDebugDrawCallbackInterface.h:30
a class to quickly render a bunch of basic primitives as debugging aids basic overview, create an adapter that inherits from DtDebugDrawCallbackInterface then call DtOsgGizmoRenderer::addDebugDrawerCallback() to register it with the system. Your code will then get called while the system is drawing, user should then add various primitives that will get rendered in one big batch after all the callbacks. See DtOsgLightDebugAdapter::drawDebugLines() for an example.
Definition: DtOsgGizmoRenderer.h:44
class that inherits gizmo rendering
Definition: DtOsgLightDebugAdapter.h:22
unsigned int myLastFrameNumber
Definition: DtOsgLightDebugAdapter.h:33
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:72

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)