__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"""Late-bound base-class (with acceleration)"""
from OpenGL import acceleratesupport
LateBind = Curry = None
if acceleratesupport.ACCELERATE_AVAILABLE:
try:
from OpenGL_accelerate.latebind import LateBind, Curry
except ImportError as err:
pass
if LateBind is None:
class LateBind(object):
"""Provides a __call__ which dispatches to self._finalCall
When called without self._finalCall() makes a call to
self.finalise() and then calls self._finalCall()
"""
_finalCall = None
def setFinalCall( self, finalCall ):
"""Set our finalCall to the callable object given"""
self._finalCall = finalCall
def getFinalCall( self ):
"""Retrieve and/or bind and retrieve final call"""
if not self._finalCall:
self._finalCall = self.finalise()
return self._finalCall
def finalise( self ):
"""Finalise our target to our final callable object
return final callable
"""
def __nonzero__(self):
"""Resolve our final call and check for empty/nonzero on it"""
return bool(self.getFinalCall())
def __call__( self, *args, **named ):
"""Call self._finalCall, calling finalise() first if not already called
There's actually *no* reason to unpack and repack the arguments,
but unfortunately I don't know of a Cython syntax to specify
that.
"""
try:
return self._finalCall( *args, **named )
except (TypeError,AttributeError) as err:
if self._finalCall is None:
self._finalCall = self.finalise()
return self._finalCall( *args, **named )
if Curry is None:
class Curry(object):
"""Provides a simple Curry which can bind (only) the first element
This is used by lazywrapper, which explains the weird naming
of the two attributes...
"""
wrapperFunction = None
baseFunction = None
def __init__( self, wrapperFunction, baseFunction ):
"""Stores self.wrapperFunction and self.baseFunction"""
self.baseFunction = baseFunction
self.wrapperFunction = wrapperFunction
def __call__( self, *args, **named ):
"""returns self.wrapperFunction( self.baseFunction, *args, **named )"""
return self.wrapperFunction( self.baseFunction, *args, **named )
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AGL | Folder | 0755 |
|
|
| DLLS | Folder | 0755 |
|
|
| EGL | Folder | 0755 |
|
|
| GL | Folder | 0755 |
|
|
| GLE | Folder | 0755 |
|
|
| GLES1 | Folder | 0755 |
|
|
| GLES2 | Folder | 0755 |
|
|
| GLES3 | Folder | 0755 |
|
|
| GLU | Folder | 0755 |
|
|
| GLUT | Folder | 0755 |
|
|
| GLX | Folder | 0755 |
|
|
| Tk | Folder | 0755 |
|
|
| WGL | Folder | 0755 |
|
|
| __pycache__ | Folder | 0755 |
|
|
| arrays | Folder | 0755 |
|
|
| osmesa | Folder | 0755 |
|
|
| platform | Folder | 0755 |
|
|
| raw | Folder | 0755 |
|
|
| __init__.py | File | 12.39 KB | 0644 |
|
| _bytes.py | File | 2.56 KB | 0644 |
|
| _configflags.py | File | 450 B | 0644 |
|
| _null.py | File | 72 B | 0644 |
|
| _opaque.py | File | 850 B | 0644 |
|
| acceleratesupport.py | File | 884 B | 0644 |
|
| constant.py | File | 3.23 KB | 0644 |
|
| constants.py | File | 149 B | 0644 |
|
| contextdata.py | File | 4.44 KB | 0644 |
|
| converters.py | File | 12.73 KB | 0644 |
|
| error.py | File | 9.39 KB | 0644 |
|
| extensions.py | File | 9.28 KB | 0644 |
|
| images.py | File | 6.73 KB | 0644 |
|
| latebind.py | File | 2.47 KB | 0644 |
|
| lazywrapper.py | File | 2.07 KB | 0644 |
|
| logs.py | File | 3.08 KB | 0644 |
|
| plugins.py | File | 2.41 KB | 0644 |
|
| version.py | File | 93 B | 0644 |
|
| wrapper.py | File | 73.84 KB | 0644 |
|