Changeset 690

Show
Ignore:
Timestamp:
09/05/03 14:40:29 (5 years ago)
Author:
sholloway
Message:

*** empty log message ***

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBRapier/RBRapier/Renderer/Geometry/_nvaSetup.py

    r383 r690  
    2020##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2121 
     22""" 
     23PyOpenGL is a wonderful extension to python, allowing nearly direct interfacing with OpenGL in a cross-platform way. 
     24However, myself and others have encountered a few quirks with VertexArrays and Numeric support, leading to copies (gasp!) 
     25of large memory blocks.  As you can imagine (or may have experienced) this behavior rapidly degrades performance of 
     26python applications using large vertex arrays.  Many have tried to correct the problem in the library, myself included, 
     27yet it remains unsolved.  For me, it was far to difficult to try and patch the existing system in such a way as to insure 
     28existing code would function, while expunging the data copying code. 
     29 
     30So, the approach taken with NumericVertexArray is to reduce the complexity.  Therefore, Numeric extensions are *required*, 
     31arrays are assumed to be contigious, and data is *never* copied.  The philiosophy is that if a copy is required, an exception 
     32should be raised instead.  Hopefully, this extension will assist you in your pursuits.  And if not, use the source and make 
     33something new; or send me a patch.  ;) 
     34 
     35Enjoy! 
     36""" 
     37 
    2238#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2339#~ Imports  
     
    2743from distutils.core import setup, Extension 
    2844from distutils.sysconfig import get_python_inc 
     45 
     46#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     47#~ Constants / Variables / Etc.  
     48#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     49 
     50__version__ = '0.1.1' 
     51__license__ = 'BSD-style (See LICENSE)' 
     52__platforms__ ='Windows',  
     53__author__ = 'Shane Holloway' 
     54__author_email__ = 'shane.holloway@runeblade.com' 
     55__url__ = 'http://www.runeblade.com/' 
     56__keywords__ = ['OpenGL', 'PyOpenGL', 'Vertex Array', 'Numeric'] 
    2957 
    3058#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     
    4068 
    4169setup (name='NumericVertexArray', 
    42        ext_modules=[NumericVertexArray]) 
     70       long_description=__doc__, 
     71       version=__version__, 
     72       author=__author__, 
     73       author_email=__author_email__, 
     74       url=__url__, 
     75       platforms=__platforms__,  
     76       license=__license__, 
     77       keywords=__keywords__, 
    4378 
     79       ext_modules=[NumericVertexArray], 
     80       ) 
     81 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/wxSkinObject.py

    r650 r690  
    147147        if 'tooltip' in self.settings: 
    148148            self.object.SetToolTipString(self.settings['tooltip']) 
     149        if 'cursor' in self.settings: 
     150            cursor = self.wxEval('cursor') 
     151            if isinstance(cursor, int): 
     152                cursor = wx.wxStockCursor(cursor) 
     153            self.object.SetCursor(cursor) 
    149154 
    150155    def wxFinalStandardWindowOptions(self):