PyObject * PyGraviTAttributes_getattr(PyObject *self, char *name) { if(strcmp(name, "Color") == 0) return GraviTAttributes_GetColor(self, NULL); if(strcmp(name, "MaxReflections") == 0) return GraviTAttributes_GetMaxReflections(self, NULL); return Py_FindMethod(PyGraviTAttributes_methods, self, name); }
PyObject * PyGraviTAttributes_getattr(PyObject *self, char *name) { if(strcmp(name, "DiffColor") == 0) return GraviTAttributes_GetDiffColor(self, NULL); if(strcmp(name, "SpecColor") == 0) return GraviTAttributes_GetSpecColor(self, NULL); if(strcmp(name, "MaxReflections") == 0) return GraviTAttributes_GetMaxReflections(self, NULL); if(strcmp(name, "Material") == 0) return GraviTAttributes_GetMaterial(self, NULL); if(strcmp(name, "Lambert") == 0) return PyInt_FromLong(long(GraviTAttributes::Lambert)); if(strcmp(name, "Phong") == 0) return PyInt_FromLong(long(GraviTAttributes::Phong)); if(strcmp(name, "BlinnPhong") == 0) return PyInt_FromLong(long(GraviTAttributes::BlinnPhong)); if(strcmp(name, "ScheduleType") == 0) return GraviTAttributes_GetScheduleType(self, NULL); if(strcmp(name, "Image") == 0) return PyInt_FromLong(long(GraviTAttributes::Image)); if(strcmp(name, "Domain") == 0) return PyInt_FromLong(long(GraviTAttributes::Domain)); if(strcmp(name, "Samples") == 0) return GraviTAttributes_GetSamples(self, NULL); if(strcmp(name, "JitterSize") == 0) return GraviTAttributes_GetJitterSize(self, NULL); if(strcmp(name, "EnableShadows") == 0) return GraviTAttributes_GetEnableShadows(self, NULL); if(strcmp(name, "LightBoost") == 0) return GraviTAttributes_GetLightBoost(self, NULL); if(strcmp(name, "LightDistance") == 0) return GraviTAttributes_GetLightDistance(self, NULL); return Py_FindMethod(PyGraviTAttributes_methods, self, name); }