Ticket #46218: pymol-clang.diff
File pymol-clang.diff, 4.3 KB (added by howarth.at.macports@…, 10 years ago) |
---|
-
layer0/ShaderMgr.cpp
void CShaderPrg_Update_Shaders_For_Backg 665 665 } 666 666 667 667 int CShaderPrg_Reload(PyMOLGlobals * G, char *name, char *v, char *f){ 668 int status, howLong , needAttach = 0;668 int status, howLong; 669 669 CShaderPrg * I = CShaderMgr_GetShaderPrg_NoSet(G->ShaderMgr, name); 670 670 if (!I){ 671 671 CShaderMgr *SM = G->ShaderMgr; -
layer0/Sphere.cpp
Z* ------------------------------------- 32 32 #define tau 0.8506508084F /* t=(1+sqrt(5))/2, tau=t/sqrt(1+t^2) */ 33 33 #define one 0.5257311121F /* one=1/sqrt(1+t^2) , unit sphere */ 34 34 35 #define FAST_SPHERE_INIT 36 37 #ifndef FAST_SPHERE_INIT 35 38 static const float start_points[13][3] = { 36 39 {tau, one, 0}, 37 40 {-tau, one, 0}, … … static const int icosahedron[21][3] = { 69 72 {7, 2, 9}, 70 73 {6, 10, 2} 71 74 }; 75 #endif 72 76 73 77 static const int mesh[30][2] = { 74 78 {0, 3}, … … static const int mesh[30][2] = { 103 107 {9, 10} 104 108 }; 105 109 106 #define FAST_SPHERE_INIT107 108 110 #ifdef FAST_SPHERE_INIT 109 111 #include"SphereData.h" 110 112 -
layer2/RepNonbonded.cpp
static void RepNonbondedRender(RepNonbon 199 199 int ok = true; 200 200 // 0.018f is found by trial and error 201 201 // TODO: this is not sufficient to solve the problem of disappearing cylinders 202 float scale_bound = SettingGetGlobal_f(G, cSetting_field_of_view) * cPI / 180.0f * 0.018f;202 // float scale_bound = SettingGetGlobal_f(G, cSetting_field_of_view) * cPI / 180.0f * 0.018f; 203 203 204 204 alpha = 205 205 SettingGet_f(G, I->R.cs->Setting, I->R.obj->Setting, cSetting_nonbonded_transparency); … … static void RepNonbondedRender(RepNonbon 208 208 alpha = 1.0F; 209 209 if(ray) { 210 210 float radius; 211 float pixel_radius = ray->PixelRadius;212 211 ray->transparentf(1.0F - alpha); 213 212 214 213 if(I->Radius == 0.0F) { … … static void RepNonbondedRender(RepNonbon 360 359 CShaderPrg *shaderPrg; 361 360 if (nonbonded_as_cylinders){ 362 361 // vertex scale is bound so that cylinders cannot disappear when it gets too low 363 float vertex_scale = info->vertex_scale;364 362 float pixel_scale_value = SettingGetGlobal_f(G, cSetting_ray_pixel_scale); 365 363 if(pixel_scale_value < 0) 366 364 pixel_scale_value = 1.0F; … … static void RepNonbondedRender(RepNonbon 596 594 CShaderPrg *shaderPrg; 597 595 if (nonbonded_as_cylinders){ 598 596 // vertex scale is bound so that cylinders cannot disappear when it gets too low 599 float vertex_scale = info->vertex_scale;600 597 float pixel_scale_value = SettingGetGlobal_f(G, cSetting_ray_pixel_scale); 601 598 if(pixel_scale_value < 0) 602 599 pixel_scale_value = 1.0F; -
layer2/RepWireBond.cpp
static void RepWireBondRender(RepWireBon 779 779 CShaderPrg *shaderPrg; 780 780 if (line_as_cylinders){ 781 781 // vertex scale is bound so that cylinders cannot disappear when it gets too low 782 float vertex_scale = info->vertex_scale;783 782 float pixel_scale_value = SettingGetGlobal_f(G, cSetting_ray_pixel_scale); 784 783 if(pixel_scale_value < 0) 785 784 pixel_scale_value = 1.0F; … … static void RepWireBondRender(RepWireBon 973 972 CShaderPrg *shaderPrg; 974 973 if (line_as_cylinders){ 975 974 // vertex scale is bound so that cylinders cannot disappear when it gets too low 976 float vertex_scale = info->vertex_scale;977 975 float pixel_scale_value = SettingGetGlobal_f(G, cSetting_ray_pixel_scale); 978 976 if(pixel_scale_value < 0) 979 977 pixel_scale_value = 1.0F; -
layer3/Executive.cpp
void ExecutiveFullScreen(PyMOLGlobals * 13978 13978 13979 13979 #ifndef _PYMOL_NO_GLUT 13980 13980 if(G->HaveGUI && G->ValidContext) { 13981 CExecutive *I = G->Executive;13982 13981 if (flag) { 13983 13982 #ifndef GLUT_FULL_SCREEN 13984 13983 if(wm_flag < 1) {