Ticket #46218: pymol-use-glkit.diff
File pymol-use-glkit.diff, 1.3 KB (added by howarth.at.macports@…, 10 years ago) |
---|
-
layer1/Scene.cpp
Z* ------------------------------------- 57 57 #include"ScrollBar.h" 58 58 #include "ShaderMgr.h" 59 59 60 #include <GLKit/GLKMatrix4.h> 61 60 62 #ifdef _PYMOL_IP_EXTRAS 61 63 #include "IncentiveCopyToClipboard.h" 62 64 #endif … … void SceneRender(PyMOLGlobals * G, Picki 9156 9158 } 9157 9159 if(!SettingGetGlobal_b(G, cSetting_ortho)) { 9158 9160 float fov = SettingGetGlobal_f(G, cSetting_field_of_view); 9159 gluPerspective(fov, aspRat, I->FrontSafe, I->BackSafe); 9161 // gluPerspective(fov, aspRat, I->FrontSafe, I->BackSafe); 9162 glMultMatrixf(GLKMatrix4MakePerspective(fov*PI/180., aspRat, I->FrontSafe, I->BackSafe).m); 9160 9163 } else { 9161 9164 height = fmax(R_SMALL4, -I->Pos[2]) * GetFovWidth(G) / 2.f; 9162 9165 width = height * aspRat; -
setup.py
else: # unix style (linux, mac, ...) 279 279 glut = posix_find_lib(['glut', 'freeglut'], lib_dirs) 280 280 pyogl_libs += ["GL", "GLU", glut] 281 281 282 if sys.platform == 'darwin': 283 ext_link_args += [ 284 "-framework", "GLKit", 285 ] 286 282 287 libs += ["GLEW"] 283 288 libs += pyogl_libs 284 289