Sphere.cpp (pymol-v2.1.0.tar.bz2) | : | Sphere.cpp (pymol-open-source-2.2.0) | ||
---|---|---|---|---|
skipping to change at line 664 | skipping to change at line 664 | |||
printf("%d ",*(q++)); | printf("%d ",*(q++)); | |||
} | } | |||
printf("\n"); | printf("\n"); | |||
} | } | |||
*/ | */ | |||
return (result); | return (result); | |||
} | } | |||
#endif | #endif | |||
void SphereRender(PyMOLGlobals * G, int level, const float *centroid, const floa | ||||
t *color, float alpha, float radius){ | ||||
#ifndef PURE_OPENGL_ES_2 | ||||
SphereRec *sp = G->Sphere->Sphere[level]; | ||||
int a, cc; | ||||
int *q = sp->Sequence; | ||||
float pt[3]; | ||||
if (color) | ||||
glColor4f(color[0], color[1], color[2], alpha); | ||||
for(a = 0; a < sp->NStrip; a++) { | ||||
glBegin(GL_TRIANGLE_STRIP); | ||||
cc = sp->StripLen[a]; | ||||
while(cc--) { | ||||
glNormal3fv(sp->dot[*q]); | ||||
mult3f(sp->dot[*q], radius, pt); | ||||
add3f(centroid, pt, pt); | ||||
glVertex3fv(pt); | ||||
q++; | ||||
} | ||||
glEnd(); | ||||
} | ||||
#endif | ||||
} | ||||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 0 lines changed or added |