Rumba C++ SDK
Shader.h
Go to the documentation of this file.
1 /* *
2  ***
3  *****
4  ********************* Mercenaries Engineering SARL
5  ***************** Copyright (C) 2020
6  *************
7  ********* http://www.mercenaries-engineering.com
8  ***********
9  **** ****
10  ** **/
11 # pragma once
12 # include "Maquina/Value.h"
13 
14  namespace maquina {
15 
17  class MAQUINA_EXPORT Shader : public Value
18  {
19  public:
20  // Create a new shader
21  Shader();
22 
23  Shader(const Value& value);
24 
26  Dict parameters() const;
27 
29  void set_parameters(const Dict& parameters) const;
30 
32  const Imath::V3f& diffuse() const;
33 
35  float roughness() const;
36 
38  float metalness() const;
39 
41  float opacity() const;
42 
44  const std::wstring& diffuse_texture() const;
45 
47  const std::wstring& roughness_texture() const;
48 
50  const std::wstring& metalness_texture() const;
51  };
52 
53  }
Definition: ImathFrame.h:42
This version of the SDK is unstable, i-e, it may change with no warning.
Definition: AddCurveAction.h:20
Gather shading parameters.
Definition: Shader.h:17
#define MAQUINA_EXPORT
Definition: Export.h:31
A dictionnary to associate strings to values.
Definition: Dict.h:23
Base class of all Rumba values.
Definition: Value.h:34