NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ibsdf_isotropic_data.h
Go to the documentation of this file.
1 //*****************************************************************************
2 // Copyright 1986, 2014 NVIDIA Corporation. All rights reserved.
3 //*****************************************************************************
6 //*****************************************************************************
7 
8 #ifndef MI_NEURAYLIB_IBSDF_ISOTROPIC_DATA_H
9 #define MI_NEURAYLIB_IBSDF_ISOTROPIC_DATA_H
10 
12 
13 namespace mi {
14 
15 class IBsdf_buffer;
16 
21 enum Bsdf_type {
24  BSDF_RGB = 1,
25  BSDF_TYPES_FORCE_32_BIT = 0xffffffffU // Undocumented, for alignment only
26 };
27 
28 mi_static_assert( sizeof( Bsdf_type) == sizeof( Uint32));
29 
41 class IBsdf_isotropic_data : public
42  mi::base::Interface_declare<0x23fd6d83,0x057b,0x4507,0xb4,0x93,0x0e,0xbd,0x44,0x7b,0x07,0xb9>
43 {
44 public:
46  virtual Uint32 get_resolution_theta() const = 0;
47 
49  virtual Uint32 get_resolution_phi() const = 0;
50 
52  virtual Bsdf_type get_type() const = 0;
53 
55  virtual const IBsdf_buffer* get_bsdf_buffer() const = 0;
56 };
57 
62 class IBsdf_buffer : public
63  mi::base::Interface_declare<0xdf3e6121,0x464e,0x424b,0x87,0x6f,0x6e,0x8f,0x6e,0x66,0xe2,0x9a>
64 {
65 public:
84  virtual const Float32* get_data() const = 0;
85 };
86  // end group mi_neuray_misc
88 
89 } // namespace mi
90 
91 #endif // MI_NEURAYLIB_IBSDF_ISOTROPIC_DATA_H