VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLightModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 #include <vrvCore/DtModel.h>
14 
15 namespace makVrv
16 {
22  {
23  public:
25  DtLightModel(DtDe& de, DtUniqueID id) : DtModel(de, id)
26  {
27  };
28 
30  virtual ~DtLightModel()
31  {
32  };
33 
34  public:
37  DtLightModel() = delete;
38  DtLightModel( const DtLightModel& ) = delete;
39  DtLightModel( const DtLightModel&& ) = delete;
40  DtLightModel& operator=( const DtLightModel& ) = delete;
41  DtLightModel& operator=( const DtLightModel&& ) = delete;
43 
45  virtual void setOn(bool bOn) = 0;
46 
48  virtual bool isOn() const = 0;
49 
51  virtual void setLightType(unsigned int lightType) = 0;
52 
54  virtual unsigned int lightType() const = 0;
55 
57  virtual const DtVector& lightPosition() const = 0;
58 
60  virtual void setLightDirection(const DtVector& direction) = 0;
61 
63  virtual const DtVector& lightDirection() const = 0;
64 
66  virtual void setDiffuseColor(float r, float g, float b, float a) = 0;
67 
69  virtual void setAmbientColor(float r, float g, float b, float a) = 0;
70 
72  virtual void setSpecularColor(float r, float g, float b, float a) = 0;
73 
75  virtual void setRange(float range) = 0;
76 
78  virtual float range() const = 0;
79 
81  virtual void setAttenuation(float constant, float linear, float quadratic) = 0;
82 
84  virtual void setSpotLightParameters(float innerAngleDegrees, float outerAngleDegrees, float falloff) = 0;
85 
87  virtual void setSensorMask(unsigned int mask) = 0;
88 
90  virtual unsigned int sensorMask() const = 0;
91  };
92 }
DtLightModel(DtDe &de, DtUniqueID id)
CTOR.
Definition: DtLightModel.h:25
DtLightModel is the model interface for light sources. This provides a vrvCore interface to control D...
Definition: DtLightModel.h:21
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv::DtModel class.
virtual ~DtLightModel()
DTOR.
Definition: DtLightModel.h:30
A model which owns a single model instance. A DtModel is a managing container for a single DtModelIns...
Definition: DtModel.h:57
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
Contains DLL export macros.

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)