summaryrefslogtreecommitdiff
path: root/cad/src/graphics/drawing/gl_Scale.py
blob: c6bf4b2083235b46100f7f6e4eaf357768b952cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright 2004-2008 Nanorex, Inc.  See LICENSE file for details. 
"""
gl_Scale.py - Details of loading the glScale functions.

@version: $Id$
@copyright: 2004-2008 Nanorex, Inc.  See LICENSE file for details. 

History:

russ 080523: Factored out duplicate code from CS_workers.py and drawers.py .
"""

try:
    from OpenGL.GL import glScale
except:
    # The installed version of OpenGL requires argument-typed glScale calls.
    from OpenGL.GL import glScalef as glScale

from OpenGL.GL import glScalef
    # Note: this is NOT redundant with the above import of glScale --
    # without it, displaying an ESP Image gives a NameError traceback
    # and doesn't work. [Fixed by bruce 070703; bug caught by Eric M using
    # PyChecker; bug introduced sometime after A9.1 went out.]