10 #include "../system/FreestyleConfig.h"
12 #ifdef WITH_CXX_GUARDEDALLOC
42 const float *iDiffuse,
43 const float *iAmbiant,
44 const float *iSpecular,
45 const float *iEmission,
58 inline const float *
line()
const
64 inline const float lineR()
const
70 inline const float lineG()
const
76 inline const float lineB()
const
82 inline const float lineA()
const
229 inline void setLine(
float r,
float g,
float b,
float a);
306 #ifdef WITH_CXX_GUARDEDALLOC
307 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:FrsMaterial")
313 Line[0] = Line[1] = Line[2] = 0.0f;
316 Ambient[0] = Ambient[1] = Ambient[2] = 0.2f;
319 Diffuse[0] = Diffuse[1] = Diffuse[2] = 0.8f;
322 Emission[0] = Emission[1] = Emission[2] = 0.0f;
325 Specular[0] = Specular[1] = Specular[2] = 0.0f;
333 const float *iDiffuse,
334 const float *iAmbiant,
335 const float *iSpecular,
336 const float *iEmission,
337 const float iShininess,
340 for (
int i = 0; i < 4; i++) {
342 Diffuse[i] = iDiffuse[i];
343 Specular[i] = iSpecular[i];
344 Ambient[i] = iAmbiant[i];
345 Emission[i] = iEmission[i];
348 Shininess = iShininess;
349 Priority = iPriority;
354 for (
int i = 0; i < 4; i++) {
355 Line[i] = m.
line()[i];
418 for (
int i = 0; i < 4; i++) {
419 Line[i] = m.
line()[i];
440 for (
int i = 0; i < 4; i++) {
441 if (Line[i] != m.
line()[i]) {
444 if (Diffuse[i] != m.
diffuse()[i]) {
447 if (Specular[i] != m.
specular()[i]) {
450 if (Ambient[i] != m.
ambient()[i]) {
453 if (Emission[i] != m.
emission()[i]) {
463 return (!((*
this) != m));
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble GLdouble r _GL_VOID_RET _GL_VOID GLfloat GLfloat r _GL_VOID_RET _GL_VOID GLint GLint r _GL_VOID_RET _GL_VOID GLshort GLshort r _GL_VOID_RET _GL_VOID GLdouble GLdouble r
Read Guarded memory(de)allocation.
const float * diffuse() const
void setShininess(float s)
const float ambientB() const
const float specularR() const
const float lineB() const
const float specularB() const
const float specularG() const
void setPriority(int priority)
const float diffuseG() const
const float emissionA() const
const float emissionR() const
void setDiffuse(float r, float g, float b, float a)
const float * specular() const
const float ambientG() const
void setLine(float r, float g, float b, float a)
void setAmbient(float r, float g, float b, float a)
const float ambientR() const
const float lineR() const
bool operator!=(const FrsMaterial &m) const
const int priority() const
void setSpecular(float r, float g, float b, float a)
const float emissionB() const
const float * ambient() const
const float specularA() const
const float diffuseR() const
const float diffuseA() const
bool operator==(const FrsMaterial &m) const
const float * line() const
const float lineA() const
const float ambientA() const
void setEmission(float r, float g, float b, float a)
FrsMaterial & operator=(const FrsMaterial &m)
const float lineG() const
const float diffuseB() const
const float shininess() const
const float * emission() const
const float emissionG() const
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
static const pxr::TfToken g("g", pxr::TfToken::Immortal)