HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
simpleMaterial.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_IMAGING_GLF_SIMPLE_MATERIAL_H
8 #define PXR_IMAGING_GLF_SIMPLE_MATERIAL_H
9 
10 /// \file glf/simpleMaterial.h
11 
12 #include "pxr/pxr.h"
13 #include "pxr/imaging/glf/api.h"
14 #include "pxr/base/gf/vec4f.h"
15 
17 
18 
19 class GlfSimpleMaterial final {
20 public:
21  GLF_API
23  GLF_API
25 
26  GLF_API
27  GfVec4f const & GetAmbient() const;
28  GLF_API
29  void SetAmbient(GfVec4f const & ambient);
30 
31  GLF_API
32  GfVec4f const & GetDiffuse() const;
33  GLF_API
34  void SetDiffuse(GfVec4f const & diffuse);
35 
36  GLF_API
37  GfVec4f const & GetSpecular() const;
38  GLF_API
39  void SetSpecular(GfVec4f const & specular);
40 
41  GLF_API
42  GfVec4f const & GetEmission() const;
43  GLF_API
44  void SetEmission(GfVec4f const & specular);
45 
46  GLF_API
47  double GetShininess() const;
48  GLF_API
49  void SetShininess(double specular);
50 
51  GLF_API
52  bool operator ==(GlfSimpleMaterial const & other) const;
53  GLF_API
54  bool operator !=(GlfSimpleMaterial const & other) const;
55 
56 private:
57  GfVec4f _ambient;
58  GfVec4f _diffuse;
59  GfVec4f _specular;
60  GfVec4f _emission;
61  double _shininess;
62 };
63 
64 
66 
67 #endif
GLF_API GfVec4f const & GetEmission() const
#define GLF_API
Definition: api.h:23
GLF_API void SetAmbient(GfVec4f const &ambient)
GLF_API double GetShininess() const
GLF_API GfVec4f const & GetAmbient() const
GLF_API ~GlfSimpleMaterial()
GLF_API GlfSimpleMaterial()
GLF_API bool operator!=(GlfSimpleMaterial const &other) const
GLF_API void SetSpecular(GfVec4f const &specular)
GLF_API GfVec4f const & GetSpecular() const
GLF_API void SetShininess(double specular)
GLF_API GfVec4f const & GetDiffuse() const
Definition: vec4f.h:45
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
GLF_API void SetDiffuse(GfVec4f const &diffuse)
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
GLF_API void SetEmission(GfVec4f const &specular)
GLF_API bool operator==(GlfSimpleMaterial const &other) const