24 #include "../system/FreestyleConfig.h"
26 #ifdef WITH_CXX_GUARDEDALLOC
56 const float *iDiffuse,
57 const float *iAmbiant,
58 const float *iSpecular,
59 const float *iEmission,
60 const float iShininess,
72 inline const float *
line()
const
78 inline const float lineR()
const
84 inline const float lineG()
const
90 inline const float lineB()
const
96 inline const float lineA()
const
243 inline void setLine(
const float r,
const float g,
const float b,
const float a);
255 inline void setDiffuse(
const float r,
const float g,
const float b,
const float a);
267 inline void setSpecular(
const float r,
const float g,
const float b,
const float a);
279 inline void setAmbient(
const float r,
const float g,
const float b,
const float a);
291 inline void setEmission(
const float r,
const float g,
const float b,
const float a);
320 #ifdef WITH_CXX_GUARDEDALLOC
321 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:FrsMaterial")
327 Line[0] = Line[1] = Line[2] = 0.0f;
330 Ambient[0] = Ambient[1] = Ambient[2] = 0.2f;
333 Diffuse[0] = Diffuse[1] = Diffuse[2] = 0.8f;
336 Emission[0] = Emission[1] = Emission[2] = 0.0f;
339 Specular[0] = Specular[1] = Specular[2] = 0.0f;
347 const float *iDiffuse,
348 const float *iAmbiant,
349 const float *iSpecular,
350 const float *iEmission,
351 const float iShininess,
354 for (
int i = 0; i < 4; i++) {
356 Diffuse[i] = iDiffuse[i];
357 Specular[i] = iSpecular[i];
358 Ambient[i] = iAmbiant[i];
359 Emission[i] = iEmission[i];
362 Shininess = iShininess;
363 Priority = iPriority;
368 for (
int i = 0; i < 4; i++) {
369 Line[i] = m.
line()[i];
432 for (
int i = 0; i < 4; i++) {
433 Line[i] = m.
line()[i];
454 for (
int i = 0; i < 4; i++) {
455 if (Line[i] != m.
line()[i]) {
458 if (Diffuse[i] != m.
diffuse()[i]) {
461 if (Specular[i] != m.
specular()[i]) {
464 if (Ambient[i] != m.
ambient()[i]) {
467 if (Emission[i] != m.
emission()[i]) {
477 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
const float ambientB() const
void setSpecular(const float r, const float g, const float b, const float a)
void setEmission(const float r, const float g, const float b, const float a)
const float specularR() const
void setDiffuse(const float r, const float g, const float b, const float a)
const float lineB() const
const float specularB() const
const float specularG() const
void setShininess(const float s)
const float diffuseG() const
const float emissionA() const
void setAmbient(const float r, const float g, const float b, const float a)
const float emissionR() const
void setLine(const float r, const float g, const float b, const float a)
void setPriority(const int priority)
const float * specular() const
const float ambientG() const
const float ambientR() const
const float lineR() const
bool operator!=(const FrsMaterial &m) const
const int priority() const
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
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