NVIDIA IndeX API nvidia_logo_transpbg.gif Up
ilight.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7#ifndef NVIDIA_INDEX_ILIGHT_H
8#define NVIDIA_INDEX_ILIGHT_H
9
10#include <mi/base/interface_declare.h>
11#include <mi/dice.h>
12
13#include <nv/index/iattribute.h>
14
15namespace nv
16{
17namespace index
18{
19
36class ILight :
37 public mi::base::Interface_declare<0xbf099107,0x7878,0x4504,0x94,0x7e,0xa8,0x45,0xa1,0x93,0x95,0xa6,
38 nv::index::IAttribute>
39{
40public:
45 virtual void set_intensity(const mi::math::Color_struct& intensity) = 0;
46
50 virtual const mi::math::Color_struct& get_intensity() const = 0;
51};
52
63 public mi::base::Interface_declare<0x4296b302,0x4581,0x435c,0xb0,0xf0,0xfa,0xdb,0x32,0xc2,0x0c,0xf4,
64 nv::index::ILight>
65{
66public:
71 virtual void set_direction(const mi::math::Vector_struct<mi::Float32, 3>& d) = 0;
72
77 virtual const mi::math::Vector_struct<mi::Float32, 3>& get_direction() const = 0;
78};
79
87 public mi::base::Interface_declare<0x93bc91e1,0xa6a8,0x42a8,0xbc,0x86,0xbf,0x5c,0xa5,0x0c,0xa3,0x24,
88 nv::index::IDirectional_light>
89{
90};
91
92}} // namespace index / nv
93
94#endif // NVIDIA_INDEX_ILIGHT_H
A directional headlight is just like a normal directional light, just the light direction is specifie...
Definition: ilight.h:89
An interface class representing a directional light.
Definition: ilight.h:65
virtual void set_direction(const mi::math::Vector_struct< mi::Float32, 3 > &d)=0
Sets the direction of the directional light.
virtual const mi::math::Vector_struct< mi::Float32, 3 > & get_direction() const =0
Returns the direction of the directional light.
The light base class.
Definition: ilight.h:39
virtual const mi::math::Color_struct & get_intensity() const =0
Returns the light intensity.
virtual void set_intensity(const mi::math::Color_struct &intensity)=0
Sets the light intensity.
Base class representing attributes that can be defined in a scene description.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349