code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' from pyglet import app from base import Display, Screen, ScreenMode, Canvas from pyglet.libs.darwin import * from pyglet.libs.darwin import _oscheck class CarbonDisplay(Display): # TODO: CarbonDisplay could be per display d...
[ [ 8, 0, 0.0139, 0.0079, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0238, 0.004, 0, 0.66, 0.0909, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0278, 0.004, 0, 0.66, ...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "from pyglet import app", "from base import Display, Screen, ScreenMode, Canvas", "from pyglet.libs.darwin import *", "from pyglet.libs.darwin import _oscheck", "class CarbonDisplay(Display):\n # TODO: CarbonDisplay could b...
#!/usr/bin/python # $Id:$ from pyglet import app from pyglet import gl from pyglet import window class Display(object): '''A display device supporting one or more screens. :Ivariables: `name` : str Name of this display, if applicable. `x_screen` : int The...
[ [ 1, 0, 0.0133, 0.0033, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0166, 0.0033, 0, 0.66, 0.1667, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0199, 0.0033, 0, ...
[ "from pyglet import app", "from pyglet import gl", "from pyglet import window", "class Display(object):\n '''A display device supporting one or more screens.\n\n :Ivariables:\n `name` : str\n Name of this display, if applicable.\n `x_screen` : int\n The X11 screen num...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * R...
[ [ 8, 0, 0.4519, 0.2404, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5865, 0.0096, 0, 0.66, 0.25, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.5962, 0.0096, 0, 0.66,...
[ "'''Display and screen management.\n\nRendering is performed on a `Canvas`, which conceptually could be an\noff-screen buffer, the content area of a `Window`, or an entire screen.\nCurrently, canvases can only be created with windows (though windows can be\nset fullscreen).\n\nWindows and canvases must belong to a ...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributi...
[ [ 8, 0, 0.0901, 0.0099, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0988, 0.0025, 0, 0.66, 0.0323, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1012, 0.0025, 0, 0.66...
[ "'''pyglet is a cross-platform games and multimedia package.\n\nDetailed documentation is available at http://www.pyglet.org\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import os", "import sys", "_is_epydoc = hasattr(sys, 'is_epydoc') and sys.is_epydoc", "version = '1.2dev'", ...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.1164, 0.0131, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1279, 0.0033, 0, 0.66, 0.0588, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1311, 0.0033, 0, 0.66...
[ "'''Functions for loading dynamic libraries.\n\nThese extend and correct ctypes functions.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "import os", "import re", "import sys", "import ctypes", "import ctypes.util", "import pyglet", "_debug_lib = pyglet.options['debug_lib'...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.7778, 0.0667, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.8444, 0.0222, 0, 0.66, 0.1667, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.8667, 0.0222, 0, 0.66...
[ "'''This file is currently hand-coded; I don't have a MESA header file to build\noff.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import ctypes", "from ctypes import *", "from pyglet.gl.lib import link_GLX as _link_function", "glXSwapIntervalMESA = _link_function('glXSwapInterv...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0698, 0.0097, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0775, 0.0019, 0, 0.66, 0.004, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0795, 0.0019, 0, 0.66,...
[ "'''Wrapper for /usr/include/GL/glu.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from ctypes import *", "from pyglet.gl.lib import link_GLU as _link_function", "from pyglet.gl.lib import c_ptrdiff_t", "GLU_EXT_object_sp...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0963, 0.0134, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.107, 0.0027, 0, 0.66, 0.0064, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1096, 0.0027, 0, 0.66,...
[ "'''Wrapper for C:\\cygwin\\home\\Alex\\pyglet\\tools\\wgl.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: gengl.py 601 2007-02-04 05:36:59Z Alex.Holkner $'", "from ctypes import *", "from pyglet.gl.lib import link_WGL as _link_fu...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' from pyglet.gl.base import Config, CanvasConfig, Context from pyglet.libs.darwin import * from pyglet.gl import ContextException from pyglet.gl import gl from pyglet.gl import agl from pyglet.canvas.cocoa import CocoaCanvas #...
[ [ 8, 0, 0.0167, 0.0096, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0287, 0.0048, 0, 0.66, 0.0714, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0335, 0.0048, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "from pyglet.gl.base import Config, CanvasConfig, Context", "from pyglet.libs.darwin import *", "from pyglet.gl import ContextException", "from pyglet.gl import gl", "from pyglet.gl import agl", "from pyglet.canvas.cocoa imp...
#!/usr/bin/python # $Id:$ from pyglet.canvas.win32 import Win32Canvas from base import Config, CanvasConfig, Context from pyglet import gl from pyglet.gl import gl_info from pyglet.gl import wgl from pyglet.gl import wglext_arb from pyglet.gl import wgl_info from pyglet.libs.win32 import _user32, _kernel...
[ [ 1, 0, 0.0152, 0.0038, 0, 0.66, 0, 895, 0, 1, 0, 0, 895, 0, 0 ], [ 1, 0, 0.019, 0.0038, 0, 0.66, 0.0714, 47, 0, 3, 0, 0, 47, 0, 0 ], [ 1, 0, 0.0266, 0.0038, 0, 0.6...
[ "from pyglet.canvas.win32 import Win32Canvas", "from base import Config, CanvasConfig, Context", "from pyglet import gl", "from pyglet.gl import gl_info", "from pyglet.gl import wgl", "from pyglet.gl import wglext_arb", "from pyglet.gl import wgl_info", "from pyglet.libs.win32 import _user32, _kernel3...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.4797, 0.027, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.5135, 0.0135, 0, 0.66, 0.0909, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.527, 0.0135, 0, 0.66, ...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "from ctypes import *", "import pyglet.lib", "from pyglet.gl.lib import missing_function, decorate_function", "__all__ = ['link_GL', 'link_GLU', 'link_AGL']", "gl_lib = pyglet.lib.load_library(\n framework='/System/Library/...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.2857, 0.1429, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3665, 0.0062, 0, 0.66, 0.0769, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3727, 0.0062, 0, 0.66...
[ "'''Information about version and extensions of current GLU implementation.\n\nUsage::\n\n from pyglet.gl import glu_info\n\n if glu_info.have_extension('GLU_EXT_nurbs_tessellator'):\n # ...", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from ctypes import *", "import warnings...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.2959, 0.1224, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3673, 0.0068, 0, 0.66, 0.0526, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3741, 0.0068, 0, 0.66...
[ "'''Information about version and extensions of current GLX implementation.\n\nUsage::\n\n from pyglet.gl import glx_info\n\n if glx_info.have_extension('GLX_NV_float_buffer'):\n # ...", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from ctypes import *", "from pyglet.gl.glx im...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * R...
[ [ 8, 0, 0.0351, 0.0049, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.039, 0.001, 0, 0.66, 0.0021, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.04, 0.001, 0, 0.66, ...
[ "'''Wrapper for http://oss.sgi.com/projects/ogl-sample/ABI/wglext.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: gengl.py 601 2007-02-04 05:36:59Z Alex.Holkner $'", "from ctypes import *", "from pyglet.gl.lib import link_WGL as _...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' from ctypes import * from pyglet.canvas.xlib import XlibCanvas from base import Config, CanvasConfig, Context from pyglet import gl from pyglet.gl import glx from pyglet.gl import glxext_arb from pyglet.gl import glx_info from ...
[ [ 8, 0, 0.009, 0.0051, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0154, 0.0026, 0, 0.66, 0.0526, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.018, 0.0026, 0, 0.66, ...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "from ctypes import *", "from pyglet.canvas.xlib import XlibCanvas", "from base import Config, CanvasConfig, Context", "from pyglet import gl", "from pyglet.gl import glx", "from pyglet.gl import glxext_arb", "from pyglet....
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.2198, 0.1063, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2802, 0.0048, 0, 0.66, 0.0588, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.285, 0.0048, 0, 0.66,...
[ "'''Information about version and extensions of current GL implementation.\n\nUsage::\n \n from pyglet.gl import gl_info\n\n if gl_info.have_extension('GL_NV_register_combiners'):\n # ...", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "from ctypes import *", "import warnin...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.3777, 0.0213, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4043, 0.0106, 0, 0.66, 0.0769, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.4149, 0.0106, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from ctypes import *", "import pyglet.lib", "from pyglet.gl.lib import missing_function, decorate_function", "from pyglet.compat import asbytes", "__all__ = ['link_GL', 'link_GLU', 'link_GLX']", "gl_lib = pyglet.lib.load_libr...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0569, 0.0064, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0625, 0.0016, 0, 0.66, 0.0043, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0641, 0.0016, 0, 0.66...
[ "'''Wrapper for /usr/include/GL/glx.h\n\nDo not modify generated portions of this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from ctypes import *", "from pyglet.gl.lib import link_GLX as _link_function", "from pyglet.gl.lib import c_ptrdiff_t, c_void", "if not _link_func...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0431, 0.006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0479, 0.0012, 0, 0.66, 0.0029, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0491, 0.0012, 0, 0.66,...
[ "'''Wrapper for http://developer.download.nvidia.com/opengl/includes/glxext.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from ctypes import *", "from pyglet.gl.lib import link_GLX as _link_function", "from pyglet.gl.lib i...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' from base import Config, CanvasConfig, Context from pyglet.libs.darwin import * from pyglet.libs.darwin import _oscheck from pyglet.gl import ContextException from pyglet.gl import gl from pyglet.gl import agl from pyglet.canva...
[ [ 8, 0, 0.0173, 0.0099, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0297, 0.005, 0, 0.66, 0.0769, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0347, 0.005, 0, 0.66, ...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "from base import Config, CanvasConfig, Context", "from pyglet.libs.darwin import *", "from pyglet.libs.darwin import _oscheck", "from pyglet.gl import ContextException", "from pyglet.gl import gl", "from pyglet.gl import ag...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0364, 0.0051, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0404, 0.001, 0, 0.66, 0.0024, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0414, 0.001, 0, 0.66, ...
[ "'''Wrapper for http://oss.sgi.com/projects/ogl-sample/ABI/glxext.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import ctypes", "from ctypes import *", "from pyglet.gl.lib import link_GLX as _link_function", "from pyglet...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.2305, 0.013, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2468, 0.0065, 0, 0.66, 0.0556, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2532, 0.0065, 0, 0.66,...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: lib_glx.py 597 2007-02-03 16:13:07Z Alex.Holkner $'", "import ctypes", "from ctypes import *", "import pyglet", "from pyglet.gl.lib import missing_function, decorate_function", "from pyglet.compat import asbytes", "__all__ = ['li...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0031, 0.0004, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0035, 0.0001, 0, 0.66, 0.0002, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0036, 0.0001, 0, 0.66...
[ "'''Wrapper for http://developer.download.nvidia.com/opengl/includes/glext.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from ctypes import *", "from pyglet.gl.lib import link_GL as _link_function", "from pyglet.gl.lib imp...
#!/usr/bin/python # $Id:$ import sys as _sys from pyglet import gl from pyglet.gl import gl_info from pyglet.gl import glu_info class Config(object): '''Graphics configuration. A Config stores the preferences for OpenGL attributes such as the number of auxilliary buffers, size of the colour...
[ [ 1, 0, 0.0103, 0.0026, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0155, 0.0026, 0, 0.66, 0.1429, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0181, 0.0026, 0, ...
[ "import sys as _sys", "from pyglet import gl", "from pyglet.gl import gl_info", "from pyglet.gl import glu_info", "class Config(object):\n '''Graphics configuration.\n\n A Config stores the preferences for OpenGL attributes such as the\n number of auxilliary buffers, size of the colour and depth bu...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0024, 0.0003, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0026, 0.0001, 0, 0.66, 0.0001, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0027, 0.0001, 0, 0.66...
[ "'''Wrapper for http://oss.sgi.com/projects/ogl-sample/ABI/glext.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from ctypes import *", "from pyglet.gl.lib import link_GL as _link_function", "from pyglet.gl.lib import c_ptrd...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * R...
[ [ 8, 0, 0.0396, 0.0055, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.044, 0.0011, 0, 0.66, 0.0023, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0451, 0.0011, 0, 0.66,...
[ "'''Wrapper for http://developer.download.nvidia.com/opengl/includes/wglext.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: gengl.py 601 2007-02-04 05:36:59Z Alex.Holkner $'", "from ctypes import *", "from pyglet.gl.lib import lin...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.2702, 0.2468, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4, 0.0043, 0, 0.66, 0.05, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.4043, 0.0043, 0, 0.66, ...
[ "'''OpenGL and GLU interface.\n\nThis package imports all OpenGL, GLU and registered OpenGL extension\nfunctions. Functions have identical signatures to their C counterparts. For\nexample::\n\n from pyglet.gl import *", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from pyglet.gl.lib imp...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0133, 0.0018, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0148, 0.0004, 0, 0.66, 0.0007, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0151, 0.0004, 0, 0.66...
[ "'''Wrapper for /usr/include/GL/gl.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "from ctypes import *", "from pyglet.gl.lib import link_GL as _link_function", "from pyglet.gl.lib import c_ptrdiff_t", "GL_VERSION_1_1 = 1 ...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.2465, 0.0139, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2639, 0.0069, 0, 0.66, 0.0417, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2708, 0.0069, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import sys", "import ctypes", "import pyglet", "__all__ = ['link_GL', 'link_GLU', 'link_AGL', 'link_GLX', 'link_WGL']", "_debug_gl = pyglet.options['debug_gl']", "_debug_gl_trace = pyglet.options['debug_gl_trace']", "_debug...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.5, 0.0417, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.5417, 0.0139, 0, 0.66, 0.0667, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.5556, 0.0139, 0, 0.66, ...
[ "'''Cached information about version and extensions of current WGL\nimplementation.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: glx_info.py 615 2007-02-07 13:17:05Z Alex.Holkner $'", "from ctypes import *", "import warnings", "from pyglet.gl.lib import MissingFunctionException", "f...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.08, 0.0111, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0889, 0.0022, 0, 0.66, 0.0044, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0911, 0.0022, 0, 0.66, ...
[ "'''Wrapper for /System/Library/Frameworks/AGL.framework/Headers/agl.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: gengl.py 601 2007-02-04 05:36:59Z Alex.Holkner $'", "from ctypes import *", "from pyglet.gl.lib import link_AGL a...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.1839, 0.0104, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1969, 0.0052, 0, 0.66, 0.02, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2021, 0.0052, 0, 0.66, ...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "from ctypes import *", "Boolean = c_ubyte # actually an unsigned char", "Fixed = c_int32", "ItemCount = c_uint32", "ByteOffset = ByteCount = c_uint32", "class Rect(Structure):\n _fields_ = [\n ('top', c_...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0665, 0.0037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0712, 0.0019, 0, 0.66, 0.0025, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.073, 0.0019, 0, 0.66,...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "kCFStringEncodingMacRoman = 0", "kCFStringEncodingWindowsLatin1 = 0x0500", "kCFStringEncodingISOLatin1 = 0x0201", "kCFStringEncodingNextStepLatin = 0x0B01", "kCFStringEncodingASCII = 0x0600", "kCFStringEncodingUnicode = 0x0...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.1047, 0.0059, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1121, 0.0029, 0, 0.66, 0.0091, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.115, 0.0029, 0, 0.66,...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = ''", "from pyglet.window import key", "QZ_ESCAPE = 0x35", "QZ_F1 = 0x7A", "QZ_F2 = 0x78", "QZ_F3 = 0x63", "QZ_F4 = 0x76", "QZ_F5 = 0x60", "QZ_F6 = 0x61", "QZ_F7 = 0x62", "QZ_F8 = 0x64", "QZ_F9 = 0x65", "QZ_F10 = 0x6D", "Q...
import pyglet # Cocoa implementation: if pyglet.options['darwin_cocoa']: from Foundation import * from Cocoa import * from Quartz import * NSAnyEventMask = 0xFFFFFFFFL # Carbon implementation: else: from types import * from constants import * carbon = pyglet.lib.load_library( fra...
[ [ 1, 0, 0.0227, 0.0227, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 4, 0, 0.5455, 0.9318, 0, 0.66, 1, 0, 6, 0, 0, 0, 0, 0, 8 ], [ 1, 1, 0.1136, 0.0227, 1, 0.56, ...
[ "import pyglet", "if pyglet.options['darwin_cocoa']:\n from Foundation import *\n from Cocoa import *\n from Quartz import *\n\n\n# Carbon implementation:\nelse:", " from Foundation import *", " from Cocoa import *", " from Quartz import *", " from types import *", " from constan...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.1286, 0.0072, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1377, 0.0036, 0, 0.66, 0.027, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1413, 0.0036, 0, 0.66,...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "from ctypes import *", "BOOL = c_int", "DWORD = c_uint32", "BYTE = c_char", "LONG = c_long", "WORD = c_short", "WCHAR = c_wchar", "BCHAR = c_wchar", "HANDLE = c_void_p", "HWND = HANDLE", "HMONITOR = HANDLE", "HG...
import ctypes from pyglet import com lib = ctypes.oledll.dinput8 LPVOID = ctypes.c_void_p WORD = ctypes.c_uint16 DWORD = ctypes.c_uint32 LPDWORD = ctypes.POINTER(DWORD) BOOL = ctypes.c_int WCHAR = ctypes.c_wchar UINT = ctypes.c_uint HWND = ctypes.c_uint32 HANDLE = LPVOID MAX_PATH = 260 DIENUM_STOP ...
[ [ 1, 0, 0.0025, 0.0025, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0076, 0.0025, 0, 0.66, 0.0051, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 14, 0, 0.0126, 0.0025, 0, ...
[ "import ctypes", "from pyglet import com", "lib = ctypes.oledll.dinput8", "LPVOID = ctypes.c_void_p", "WORD = ctypes.c_uint16", "DWORD = ctypes.c_uint32", "LPDWORD = ctypes.POINTER(DWORD)", "BOOL = ctypes.c_int", "WCHAR = ctypes.c_wchar", "UINT = ctypes.c_uint", "HWND = ctypes.c_uint32", "HAND...
#!/usr/bin/python # $Id:$ import ctypes lib = ctypes.windll.wintab32 LONG = ctypes.c_long BOOL = ctypes.c_int UINT = ctypes.c_uint WORD = ctypes.c_uint16 DWORD = ctypes.c_uint32 WCHAR = ctypes.c_wchar FIX32 = DWORD WTPKT = DWORD LCNAMELEN = 40 class AXIS(ctypes.Structure): _fields_ = ( ...
[ [ 1, 0, 0.0119, 0.003, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 14, 0, 0.0179, 0.003, 0, 0.66, 0.0045, 115, 7, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0239, 0.003, 0, 0.6...
[ "import ctypes", "lib = ctypes.windll.wintab32", "LONG = ctypes.c_long", "BOOL = ctypes.c_int", "UINT = ctypes.c_uint", "WORD = ctypes.c_uint16", "DWORD = ctypes.c_uint32", "WCHAR = ctypes.c_wchar", "FIX32 = DWORD", "WTPKT = DWORD", "LCNAMELEN = 40", "class AXIS(ctypes.Structure):\n _fields...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 2, 0, 0.0625, 0.0625, 0, 0.66, 0, 476, 0, 1, 1, 0, 0, 0, 0 ], [ 13, 1, 0.0625, 0.0625, 1, 0.4, 0, 0, 4, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.1875, 0.0625, 0, 0.66, 0...
[ "def PRIMARYLANGID(lgid): return ((lgid) & 1023)", "def PRIMARYLANGID(lgid): return ((lgid) & 1023)", "def SUBLANGID(lgid): return ((lgid) >> 10)", "def SUBLANGID(lgid): return ((lgid) >> 10)", "def IMAGE_SNAP_BY_ORDINAL(Ordinal): return ((Ordinal & IMAGE_ORDINAL_FLAG) != 0)", "def IMAGE_SNAP_BY_ORDINAL(O...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.1498, 0.0084, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1603, 0.0042, 0, 0.66, 0.1667, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1646, 0.0042, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "from pyglet.window import key", "from constants import *", "keymap = {\n ord('A'): key.A,\n ord('B'): key.B,\n ord('C'): key.C,\n ord('D'): key.D,\n ord('E'): key.E,\n ord('F'): key.F,\n ord('G'): key.G,", ...
#!/usr/bin/python # $Id: $ from ctypes import * import pyglet import constants from types import * _debug_win32 = pyglet.options['debug_win32'] if _debug_win32: import traceback _GetLastError = windll.kernel32.GetLastError _SetLastError = windll.kernel32.SetLastError _FormatMessageA =...
[ [ 1, 0, 0.0678, 0.0169, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.1017, 0.0169, 0, 0.66, 0.0833, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.1186, 0.0169, 0, ...
[ "from ctypes import *", "import pyglet", "import constants", "from types import *", "_debug_win32 = pyglet.options['debug_win32']", "if _debug_win32:\n import traceback\n _GetLastError = windll.kernel32.GetLastError\n _SetLastError = windll.kernel32.SetLastError\n _FormatMessageA = windll.kern...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.2958, 0.0167, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3167, 0.0083, 0, 0.66, 0.0125, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.325, 0.0083, 0, 0.66,...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "XC_num_glyphs = 154", "XC_X_cursor = 0", "XC_arrow = 2", "XC_based_arrow_down = 4", "XC_based_arrow_up = 6", "XC_boat = 8", "XC_bogosity = 10", "XC_bottom_left_corner = 12", "XC_bottom_right_corner = 14", "XC_bottom_s...
'''Wrapper for Xi Generated with: tools/genwrappers.py xinput Do not modify this file. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: wrap.py 1694 2008-01-30 23:12:00Z Alex.Holkner $' import ctypes from ctypes import * import pyglet.lib _lib = pyglet.lib.load_library('Xi') _int_types = (c_int16, c_i...
[ [ 8, 0, 0.0024, 0.0042, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0055, 0.0006, 0, 0.66, 0.002, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0061, 0.0006, 0, 0.66,...
[ "'''Wrapper for Xi\n\nGenerated with:\ntools/genwrappers.py xinput\n\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: wrap.py 1694 2008-01-30 23:12:00Z Alex.Holkner $'", "import ctypes", "from ctypes import *", "import pyglet.lib", "_lib = pyglet.lib.load_libr...
'''Wrapper for Xxf86vm Generated with: tools/genwrappers.py xf86vmode Do not modify this file. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import ctypes from ctypes import * import pyglet.lib _lib = pyglet.lib.load_library('Xxf86vm') _int_types = (c_int16, c_int32) if hasattr(ctypes, 'c_int64'):...
[ [ 8, 0, 0.0116, 0.0202, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.026, 0.0029, 0, 0.66, 0.0075, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0289, 0.0029, 0, 0.66,...
[ "'''Wrapper for Xxf86vm\n\nGenerated with:\ntools/genwrappers.py xf86vmode\n\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import ctypes", "from ctypes import *", "import pyglet.lib", "_lib = pyglet.lib.load_library('Xxf86vm')", "_int_types = (c_int16...
'''Wrapper for X11 Generated with: tools/genwrappers.py xlib Do not modify this file. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import ctypes from ctypes import * import pyglet.lib _lib = pyglet.lib.load_library('X11') _int_types = (c_int16, c_int32) if hasattr(ctypes, 'c_int64'): # Some b...
[ [ 8, 0, 0.0007, 0.0012, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0016, 0.0002, 0, 0.66, 0.0004, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0018, 0.0002, 0, 0.66...
[ "'''Wrapper for X11\n\nGenerated with:\ntools/genwrappers.py xlib\n\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import ctypes", "from ctypes import *", "import pyglet.lib", "_lib = pyglet.lib.load_library('X11')", "_int_types = (c_int16, c_int32)", ...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.0786, 0.0149, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0892, 0.0021, 0, 0.66, 0.0054, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0913, 0.0021, 0, 0.66...
[ "'''Wrapper for Xext\n\nGenerated with:\ntools/genwrappers.py xsync\n\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import ctypes", "from ctypes import *", "import pyglet.lib", "_lib = pyglet.lib.load_library('Xext')", "_int_types = (c_int16, c_int32)...
'''Wrapper for Xinerama Generated with: tools/genwrappers.py xinerama Do not modify this file. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import ctypes from ctypes import * import pyglet.lib _lib = pyglet.lib.load_library('Xinerama') _int_types = (c_int16, c_int32) if hasattr(ctypes, 'c_int64')...
[ [ 8, 0, 0.0513, 0.0897, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1154, 0.0128, 0, 0.66, 0.0357, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1282, 0.0128, 0, 0.66...
[ "'''Wrapper for Xinerama\n\nGenerated with:\ntools/genwrappers.py xinerama\n\nDo not modify this file.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import ctypes", "from ctypes import *", "import pyglet.lib", "_lib = pyglet.lib.load_library('Xinerama')", "_int_types = (c_int1...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.104, 0.0322, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1238, 0.0025, 0, 0.66, 0.25, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1262, 0.0025, 0, 0.66, ...
[ "'''Memory allocation algorithm for vertex arrays and buffers.\n\nThe region allocator is used to allocate vertex indices within a vertex\ndomain's multiple buffers. (\"Buffer\" refers to any abstract buffer presented\nby `pyglet.graphics.vertexbuffer`.\n \nThe allocator will at times request more space from the ...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.1561, 0.1803, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2491, 0.0019, 0, 0.66, 0.04, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2509, 0.0019, 0, 0.66, ...
[ "'''Access byte arrays as arrays of vertex attributes.\n\nUse `create_attribute` to create an attribute accessor given a simple format\nstring. Alternatively, the classes may be constructed directly.\n\nAttribute format strings\n========================", "__docformat__ = 'restructuredtext'", "__version__ = '$...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributi...
[ [ 8, 0, 0.068, 0.0168, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0789, 0.0017, 0, 0.66, 0.0526, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0805, 0.0017, 0, 0.66,...
[ "'''Byte abstractions of Vertex Buffer Objects and vertex arrays.\n\nUse `create_buffer` or `create_mappable_buffer` to create a Vertex Buffer\nObject, or a vertex array if VBOs are not supported by the current context.\n\nBuffers can optionally be created \"mappable\" (incorporating the\n`AbstractMappable` mix-in)...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 8, 0, 0.1312, 0.1644, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2155, 0.0014, 0, 0.66, 0.05, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2169, 0.0014, 0, 0.66, ...
[ "'''Low-level graphics rendering.\n\nThis module provides an efficient low-level abstraction over OpenGL. It gives\nvery good performance for rendering OpenGL primitives; far better than the\ntypical immediate-mode usage and, on modern graphics cards, better than using\ndisplay lists in many cases. The module is ...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 1, 0, 0.5217, 0.0109, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 1, 0, 0.5435, 0.0109, 0, 0.66, 0.125, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.5761, 0.0109, 0, ...
[ "from distutils.core import setup", "import os", "script_file = 'astraea.py'", "data_files = []", "for file in os.listdir('res'):\n file = os.path.join('res', file)\n if os.path.isfile(file):\n data_files.append(file)", " file = os.path.join('res', file)", " if os.path.isfile(file):\n...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.0441, 0.0089, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0503, 0.0011, 0, 0.66, 0.0086, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 1, 0, 0.0514, 0.0011, 0, 0.66...
[ "'''A sprite-based game loosely based on the classic \"Asteroids\".\n\nShoot the asteroids, get high score.\n\nLeft/right: Turn ship\nUp: Thrusters\nSpace: Shoot\n'''", "import math", "import os", "import random", "import sys", "import pyglet", "from pyglet.gl import *", "from pyglet import resource",...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.7449, 0.0408, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.7959, 0.0204, 0, 0.66, 0.2, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 14, 0, 0.8367, 0.0204, 0, 0.66, ...
[ "'''Prints all window events to stdout.\n'''", "import pyglet", "window = pyglet.window.Window(resizable=True)", "def on_draw():\n window.clear()", " window.clear()", "window.push_handlers(pyglet.window.event.WindowEventLogger())", "pyglet.app.run()" ]
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.4562, 0.025, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4875, 0.0125, 0, 0.66, 0.0526, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.5, 0.0125, 0, 0.66, ...
[ "'''Demonstrates how to manage OpenGL calls between two independent windows.\n'''", "import pyglet", "from pyglet.gl import *", "def on_resize(width, height):\n glViewport(0, 0, width, height)\n glMatrixMode(GL_PROJECTION)\n glLoadIdentity()\n gluPerspective(60., width / float(height), 1., 100.)\n...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.2184, 0.0632, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2579, 0.0053, 0, 0.66, 0.0714, 526, 0, 3, 0, 0, 526, 0, 0 ], [ 1, 0, 0.2684, 0.0053, 0, 0.66...
[ "'''Displays a rotating torus using OpenGL.\n\nThis example demonstrates:\n\n * Using a 3D projection on a window by overriding the default on_resize\n handler\n * Enabling multisampling if available\n * Drawing a simple 3D primitive using vertex and index arrays", "from math import pi, sin, cos", "from pygle...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.4744, 0.0385, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.5128, 0.0128, 0, 0.66, 0.0833, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.5256, 0.0128, 0, 0.66...
[ "'''A simple demonstration of the HTMLLabel class, as it might be used on a\nhelp or introductory screen.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "import os", "import pyglet", "html = '''\n<h1>HTML labels in pyglet</h1>\n\n<p align=\"center\"><img src=\"pyglet.png\" /></p>\n...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.1083, 0.0059, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1157, 0.003, 0, 0.66, 0.0588, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1187, 0.003, 0, 0.66, ...
[ "'''Audio and video player with simple GUI controls.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "import sys", "from pyglet.gl import *", "import pyglet", "from pyglet.window import key", "def draw_rect(x, y, width, height):\n glBegin(GL_LINE_LOOP)\n glVertex2f(x, y)\n...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.2263, 0.0559, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2626, 0.0056, 0, 0.66, 0.0667, 526, 0, 3, 0, 0, 526, 0, 0 ], [ 1, 0, 0.2737, 0.0056, 0, 0.66...
[ "'''Displays a rotating torus using the pyglet.graphics API.\n\nThis example is very similar to examples/opengl.py, but uses the\npyglet.graphics API to construct the indexed vertex arrays instead of\nusing OpenGL calls explicitly. This has the advantage that VBOs will\nbe used on supporting hardware automatically...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.4878, 0.1098, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.561, 0.0122, 0, 0.66, 0.1667, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.5854, 0.0122, 0, 0.66,...
[ "'''Display an image.\n\nUsage::\n\n display.py <filename>\n\nA checkerboard background is visible behind any transparent areas of the\nimage.", "import sys", "import pyglet", "from pyglet.gl import *", "window = pyglet.window.Window(visible=False, resizable=True)", "def on_draw():\n background.blit...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.5563, 0.1127, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6338, 0.0141, 0, 0.66, 0.0714, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6479, 0.0141, 0, 0.66...
[ "'''Simple example of video playback.\n\nUsage::\n\n video.py <filename>\n\nSee the Programming Guide for a partial list of supported video formats.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import sys", "import pyglet", "if len(sys.argv) < 2:\n print(__doc__)\n sys.ex...
''' A silly demonstration of how to use the Apple remote. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet from pyglet.gl import * import sys class MainWindow(pyglet.window.Window): def __init__(self): super(MainWindow, self).__init__(visible=False) self.set_caption('A...
[ [ 8, 0, 0.0089, 0.0133, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0222, 0.0044, 0, 0.66, 0.125, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0267, 0.0044, 0, 0.66,...
[ "'''\nA silly demonstration of how to use the Apple remote.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "import pyglet", "from pyglet.gl import *", "import sys", "class MainWindow(pyglet.window.Window):\n def __init__(self):\n super(MainWindow, self).__init__(visible...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet from pyglet.gl import * joysticks = pyglet.input.get_joysticks() assert joysticks, 'No joystick device is connected' joystick = joysticks[0] joystick.open() window = pyglet.window.Window() @window.event def on_dr...
[ [ 8, 0, 0.0556, 0.0317, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0952, 0.0159, 0, 0.66, 0.0909, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1111, 0.0159, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "import pyglet", "from pyglet.gl import *", "joysticks = pyglet.input.get_joysticks()", "joystick = joysticks[0]", "joystick.open()", "window = pyglet.window.Window()", "def on_draw():\n x = (0.8*joystick.x + 1) * windo...
#!/usr/bin/python # $Id:$ '''In order to use the new features of OpenGL 3, you must explicitly create an OpenGL 3 context. You can do this by supplying the `major_version` and `minor_version` attributes for a GL Config. This example creates an OpenGL 3 context, prints the version string to stdout, and exits....
[ [ 8, 0, 0.314, 0.4651, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5814, 0.0233, 0, 0.66, 0.2, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 14, 0, 0.7907, 0.0233, 0, 0.66, ...
[ "'''In order to use the new features of OpenGL 3, you must explicitly create\nan OpenGL 3 context. You can do this by supplying the `major_version` and\n`minor_version` attributes for a GL Config.\n\nThis example creates an OpenGL 3 context, prints the version string to stdout,\nand exits.\n\nAt time of writing, o...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.3276, 0.0431, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3621, 0.0086, 0, 0.66, 0.05, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3707, 0.0086, 0, 0.66, ...
[ "'''Bounces balls around a window and plays noises.\n\nThis is a simple demonstration of how pyglet efficiently manages many sound\nchannels without intervention.\n'''", "import os", "import random", "import sys", "from pyglet.gl import *", "import pyglet", "from pyglet.window import key", "BALL_IMAGE...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.553, 0.0303, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.5909, 0.0152, 0, 0.66, 0.1, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6061, 0.0152, 0, 0.66, ...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import pyglet", "from pyglet.window import key", "from pyglet.window import mouse", "window = pyglet.window.Window()", "def on_key_press(symbol, modifiers):\n if symbol == key.A:\n print('The \"A\" key was pressed.')\...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.7019, 0.0385, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.75, 0.0192, 0, 0.66, 0.1429, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.7692, 0.0192, 0, 0.66, ...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import pyglet", "window = pyglet.window.Window()", "image = pyglet.resource.image('kitten.jpg')", "def on_draw():\n window.clear()\n image.blit(0, 0)", " window.clear()", " image.blit(0, 0)", "pyglet.app.run()" ...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.6518, 0.0357, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6964, 0.0179, 0, 0.66, 0.1429, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.7143, 0.0179, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import pyglet", "window = pyglet.window.Window()", "label = pyglet.text.Label('Hello, world', \n font_name='Times New Roman', \n font_size=36,\n x=window.wi...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.5267, 0.1067, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6, 0.0133, 0, 0.66, 0.1, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6133, 0.0133, 0, 0.66, ...
[ "'''Load and display a GIF animation.\n\nUsage::\n\n animation.py [<filename>]\n\nIf the filename is omitted, a sample animation is loaded\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import sys", "import pyglet", "if len(sys.argv) > 1:\n # Load the animation from file path....
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.6887, 0.0377, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.7358, 0.0189, 0, 0.66, 0.3333, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 3, 0, 0.8491, 0.1698, 0, 0.66...
[ "'''Demonstrates a useful pattern for pyglet applications: subclassing Window.\n'''", "import pyglet", "class HelloWorldWindow(pyglet.window.Window):\n def __init__(self):\n super(HelloWorldWindow, self).__init__()\n\n self.label = pyglet.text.Label('Hello, world!')\n\n def on_draw(self):\n ...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.4341, 0.0879, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4945, 0.011, 0, 0.66, 0.125, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 14, 0, 0.5165, 0.011, 0, 0.66, ...
[ "'''A full-screen minute:second timer. Leave it in charge of your conference\nlighting talks.\n\nAfter 5 minutes, the timer goes red. This limit is easily adjustable by\nhacking the source code.\n\nPress spacebar to start, stop and reset the timer.\n'''", "import pyglet", "window = pyglet.window.Window(fullsc...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.4355, 0.1075, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5054, 0.0108, 0, 0.66, 0.1667, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 7, 0, 0.5591, 0.0538, 0, 0.66...
[ "'''Demonstrates how to handle a platform-specific event not defined in\npyglet by subclassing Window. This is not for the faint-hearted!\n\nA message will be printed to stdout when the following events are caught:\n\n - On Mac OS X, the window drag region is clicked.\n - On Windows, the display resolution is chan...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.5923, 0.0923, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6615, 0.0154, 0, 0.66, 0.25, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.6923, 0.0154, 0, 0.66, ...
[ "'''Convert an image to another file format supported by pyglet.\n\nUsage::\n python image_convert.py <src-file> <dest-file>\n\n'''", "import sys", "import pyglet", "def convert(src, dest):\n if '.dds' in src.lower():\n # Compressed textures need to be uploaded to the video card before\n #...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet window = pyglet.window.Window() devices = pyglet.input.get_devices() def watch_control(device, control): @control.event def on_change(value): print '%r: %r.on_change(%r)' % (device, control, value)...
[ [ 8, 0, 0.0833, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1429, 0.0238, 0, 0.66, 0.1111, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1667, 0.0238, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "import pyglet", "window = pyglet.window.Window()", "devices = pyglet.input.get_devices()", "def watch_control(device, control):\n @control.event\n def on_change(value):\n print('%r: %r.on_change(%r)' % (device, con...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet import sys window = pyglet.window.Window() @window.event def on_draw(): window.clear() remote = pyglet.input.get_apple_remote() if not remote: print 'Apple IR Remote not available.' sys.exit(0) remot...
[ [ 8, 0, 0.0479, 0.0274, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0822, 0.0137, 0, 0.66, 0.0455, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0959, 0.0137, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "import pyglet", "import sys", "window = pyglet.window.Window()", "def on_draw():\n window.clear()", " window.clear()", "remote = pyglet.input.get_apple_remote()", "if not remote:\n print('Apple IR Remote not avai...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 8, 0, 0.2788, 0.0897, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3333, 0.0064, 0, 0.66, 0.0769, 531, 0, 1, 0, 0, 531, 0, 0 ], [ 1, 0, 0.3397, 0.0064, 0, 0.66...
[ "'''Demonstrates one way of fixing the display resolution to a certain\nsize, but rendering to the full screen.\n\nThe method used in this example is:\n\n1. Set the OpenGL viewport to the fixed resolution\n2. Render the scene using any OpenGL functions (here, just a polygon)\n3. Copy the framebuffer into a texture"...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
[ [ 1, 0, 0.3429, 0.0095, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3524, 0.0095, 0, 0.66, 0.25, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 1, 0, 0.3714, 0.0095, 0, 0....
[ "import os", "import math", "from pyglet import media", "class PlayerReader(object):\n def __init__(self, player):\n self.player = player\n\n def line(self, line, lineno):\n parts = line.split()\n if parts[0] == 'position':\n if len(parts) < 4:", " def __init__(self,...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
[ [ 1, 0, 0.0609, 0.0016, 0, 0.66, 0, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 1, 0, 0.0625, 0.0016, 0, 0.66, 0.0345, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0658, 0.0016, 0, ...
[ "import math", "import os", "import pyglet", "from pyglet.gl import *", "import reader", "pyglet.resource.path.append('res')", "pyglet.resource.reindex()", "try:\n from pyglet.media import avbin\nexcept ImportError:\n raise ImportError('AVbin is required for this example, see '\n 'http://...
#!/usr/bin/python # $Id:$ import pyglet window = pyglet.window.Window() tablets = pyglet.input.get_tablets() canvases = [] if tablets: print 'Tablets:' for i, tablet in enumerate(tablets): print ' (%d) %s' % (i + 1, tablet.name) print 'Press number key to open corresponding tablet d...
[ [ 1, 0, 0.069, 0.0172, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 14, 0, 0.1034, 0.0172, 0, 0.66, 0.125, 114, 3, 0, 0, 0, 698, 10, 1 ], [ 14, 0, 0.1207, 0.0172, 0, ...
[ "import pyglet", "window = pyglet.window.Window()", "tablets = pyglet.input.get_tablets()", "canvases = []", "if tablets:\n print('Tablets:')\n for i, tablet in enumerate(tablets):\n print(' (%d) %s' % (i + 1, tablet.name))\n print('Press number key to open corresponding tablet device.')\ne...
#!/usr/bin/env python '''Demonstrates basic use of IncrementalTextLayout and Caret. A simple widget-like system is created in this example supporting keyboard and mouse focus. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet class Rectangle(object): '''Draws a rectangle into a batch....
[ [ 8, 0, 0.0342, 0.0342, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0616, 0.0068, 0, 0.66, 0.125, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0685, 0.0068, 0, 0.66,...
[ "'''Demonstrates basic use of IncrementalTextLayout and Caret.\n\nA simple widget-like system is created in this example supporting keyboard and\nmouse focus.\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "import pyglet", "class Rectangle(object):\n '''Draws a rectangle into a ba...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2012 Zdenko Podobný # Author: Zdenko Podobný # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5, 0.25, 0, 0.66, 0.5, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.75, 0.25, 0, 0.66, 1, ...
[ "import os", "import sys", "import ctypes" ]
"""Script to offset by a fixed amount and expose Instructions: load Map.py into your TUI lib/python2.6/TUI/Scripts/TSpec/ directory start up TUI run script! (to test, set sr.debug = True in __init__) History: 2010-10-21 AGinsburg Changed from Nod.py to Map.py, a mapping script! 2008-04-23 ROwen 2008-07-24...
[ [ 8, 0, 0.0301, 0.0556, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0602, 0.0046, 0, 0.66, 0.0769, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 1, 0, 0.0648, 0.0046, 0, 0.66...
[ "\"\"\"Script to offset by a fixed amount and expose\nInstructions:\n load Map.py into your TUI lib/python2.6/TUI/Scripts/TSpec/ directory\n start up TUI\n run script!\n(to test, set sr.debug = True in __init__)\n\nHistory:", "import numpy", "import Tkinter", "import RO.Wdg", "import RO.PhysConst",...
import datetime import os import numpy as np try: import astropy.io.fits as pyfits except ImportError: import pyfits import glob try: import progressbar widgets = [progressbar.FormatLabel('Processed: %(value)d spectra in %(elapsed)s)'), progressbar.Percentage()] progress = progressbar.ProgressBar(w...
[ [ 1, 0, 0.0068, 0.0068, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0137, 0.0068, 0, 0.66, 0.0714, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0205, 0.0068, 0, ...
[ "import datetime", "import os", "import numpy as np", "try:\n import astropy.io.fits as pyfits\nexcept ImportError:\n import pyfits", " import astropy.io.fits as pyfits", " import pyfits", "import glob", "try: \n import progressbar\n widgets = [progressbar.FormatLabel('Processed: %(v...
import aplpy import os import pyfits import matplotlib.pyplot as pl pl.ioff() verbose_global = False # orion-specific ROrion = pyfits.getdata('/Volumes/disk5/Users/adam/observations/Q4CU05/UT121105/Robberto2010Orion.fits') UOrion = pyfits.getdata('/Volumes/disk5/Users/adam/observations/Q4CU05/UT121105/UKIDSS_Orion.fi...
[ [ 1, 0, 0.0156, 0.0156, 0, 0.66, 0, 96, 0, 1, 0, 0, 96, 0, 0 ], [ 1, 0, 0.0312, 0.0156, 0, 0.66, 0.1, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0469, 0.0156, 0, 0.66,...
[ "import aplpy", "import os", "import pyfits", "import matplotlib.pyplot as pl", "pl.ioff()", "verbose_global = False", "ROrion = pyfits.getdata('/Volumes/disk5/Users/adam/observations/Q4CU05/UT121105/Robberto2010Orion.fits')", "UOrion = pyfits.getdata('/Volumes/disk5/Users/adam/observations/Q4CU05/UT1...
""" TripleSpec's slit is centered at coordinates 250,416.4 REVISED: 250.11, 416.53 angle 0.66 degrees length 89.3 pix, height 3.24 pix in the slitviewer (proc coordinates, not raw) Its endpoints are approximately: 207,416 # REVISED 205.6 415.7 293,417 # REVISED 294.9 416.7 """ import numpy as np...
[ [ 8, 0, 0.1912, 0.3529, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4118, 0.0294, 0, 0.66, 0.25, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 7, 0, 0.5147, 0.1765, 0, 0.66, ...
[ "\"\"\"\nTripleSpec's slit is centered at coordinates\n250,416.4 \nREVISED:\n 250.11, 416.53\n angle 0.66 degrees\n length 89.3 pix, height 3.24 pix\nin the slitviewer (proc coordinates, not raw)", "import numpy as np", "try:\n import astropy.io.fits as pyfits\n import astropy.wcs as pywcs\nexcep...
import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as pl pl.ioff() import numpy as np import pyfits verbose_global=False def plot_axy(fn,plow=1,phi=99,verbose=verbose_global): if verbose: print "Plotting %s" % fn prefix = fn.replace('.fits','') axy = pyfits.getdata(prefix+".axy") ...
[ [ 1, 0, 0.0244, 0.0244, 0, 0.66, 0, 75, 0, 1, 0, 0, 75, 0, 0 ], [ 8, 0, 0.0488, 0.0244, 0, 0.66, 0.125, 906, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0732, 0.0244, 0, 0.66,...
[ "import matplotlib", "matplotlib.use('TkAgg')", "import matplotlib.pyplot as pl", "pl.ioff()", "import numpy as np", "import pyfits", "verbose_global=False", "def plot_axy(fn,plow=1,phi=99,verbose=verbose_global):\n if verbose:\n print(\"Plotting %s\" % fn)\n prefix = fn.replace('.fits','...
import datetime def dateobs_to_datetime(fitsstr): """ Converte a DATE-OBS time string to a datetime instance string format should be like: '2012-11-05T08:47:31.549' """ year = int(fitsstr[:4]) month = int(fitsstr[5:7]) day = int(fitsstr[8:10]) hour = int(fitsstr[11:13]) minute ...
[ [ 1, 0, 0.0526, 0.0526, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 2, 0, 0.5263, 0.7895, 0, 0.66, 1, 506, 0, 1, 1, 0, 0, 0, 8 ], [ 8, 1, 0.3421, 0.3158, 1, 0.71, ...
[ "import datetime", "def dateobs_to_datetime(fitsstr):\n \"\"\"\n Converte a DATE-OBS time string to a datetime instance\n\n string format should be like:\n '2012-11-05T08:47:31.549'\n \"\"\"\n year = int(fitsstr[:4])", " \"\"\"\n Converte a DATE-OBS time string to a datetime instance\n\n...
# Step 1: Grab 2MASS catalog # """ import astroquery.irsa ORION = astroquery.irsa.query_gator_box('pt_src_cat','83.808 -5.391',900) import atpy import astropy T = atpy.Table() [T.add_column(n,ORION[n]) for n in ORION.columns] T.write('2MASS_orion_cat.fits') T2 = atpy.Table() T2.add_column('RA',T.ra) T2.add_column('Dec'...
[ [ 8, 0, 0.0363, 0.0534, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1412, 0.0038, 0, 0.66, 0.0526, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 1, 0, 0.145, 0.0038, 0, 0.66,...
[ "\"\"\"\nimport astroquery.irsa\nORION = astroquery.irsa.query_gator_box('pt_src_cat','83.808 -5.391',900)\nimport atpy\nimport astropy\nT = atpy.Table()\n[T.add_column(n,ORION[n]) for n in ORION.columns]\nT.write('2MASS_orion_cat.fits')", "import multiprocessing", "import glob", "import os", "import subpro...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
[ [ 1, 0, 0.3514, 0.0135, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3649, 0.0135, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3784, 0.0135, 0, ...
[ "import os", "import re", "import tempfile", "import shutil", "ignore_pattern = re.compile('^(.svn|target|bin|classes)')", "java_pattern = re.compile('^.*\\.java')", "annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')", "def process_dir(dir):\n files = os.listdir(dir)\n for...
''' yfrog api ''' from upload import *
[ [ 8, 0, 0.1667, 0.1667, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5, 0.1667, 0, 0.66, 1, 920, 0, 1, 0, 0, 920, 0, 0 ] ]
[ "''' yfrog api '''", "from upload import *" ]
#!/usr/bin/env python ''' Client API library to upload images and videos to yfrog.com Using Yfrog public API, as described here: http://yfrog.com/api.php ''' import urllib2_file import urllib2 import socket from mimetypes import guess_type from xml.dom.minidom import parseString from os.path import exists API_UR...
[ [ 8, 0, 0.0301, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0556, 0.0046, 0, 0.66, 0.0909, 299, 0, 1, 0, 0, 299, 0, 0 ], [ 1, 0, 0.0602, 0.0046, 0, 0.66,...
[ "'''\nClient API library to upload images and videos to yfrog.com\n\nUsing Yfrog public API, as described here:\n\nhttp://yfrog.com/api.php\n\n'''", "import urllib2_file", "import urllib2", "import socket", "from mimetypes import guess_type", "from xml.dom.minidom import parseString", "from os.path impo...
#!/usr/bin/env python ''' Client API library for chuncked video uploading to imageshack.us Using "Streaming upload API" as described here: http://code.google.com/p/imageshackapi/wiki/StreamingAPI ''' import os import urllib import httplib import urllib2 from urlparse import urlparse from os.path import exists fro...
[ [ 8, 0, 0.0369, 0.0455, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0682, 0.0057, 0, 0.66, 0.0588, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0739, 0.0057, 0, 0.66...
[ "'''\nClient API library for chuncked video uploading to imageshack.us\n\nUsing \"Streaming upload API\" as described here:\n\nhttp://code.google.com/p/imageshackapi/wiki/StreamingAPI\n\n'''", "import os", "import urllib", "import httplib", "import urllib2", "from urlparse import urlparse", "from os.pat...
''' imageshack api ''' from upload import * from chuncked_upload import Uploader as ChunkedUploader
[ [ 8, 0, 0.25, 0.25, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.75, 0.25, 0, 0.66, 0.5, 920, 0, 1, 0, 0, 920, 0, 0 ], [ 1, 0, 1, 0.25, 0, 0.66, 1, 977, ...
[ "''' imageshack api '''", "from upload import *", "from chuncked_upload import Uploader as ChunkedUploader" ]
#!/usr/bin/env python ''' Client API library to upload images and videos to imageshack.us Using "Unified upload API" as described here: http://reg.imageshack.us/content.php?page=developerpublic ''' import urllib2_file import urllib2 import socket import httplib from mimetypes import guess_type from xml.dom.minido...
[ [ 8, 0, 0.0258, 0.0317, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0476, 0.004, 0, 0.66, 0.0714, 299, 0, 1, 0, 0, 299, 0, 0 ], [ 1, 0, 0.0516, 0.004, 0, 0.66, ...
[ "'''\nClient API library to upload images and videos to imageshack.us\n\nUsing \"Unified upload API\" as described here:\n\nhttp://reg.imageshack.us/content.php?page=developerpublic\n\n'''", "import urllib2_file", "import urllib2", "import socket", "import httplib", "from mimetypes import guess_type", "...
#!/usr/bin/env python import yfrog import sys if __name__ == "__main__": if len(sys.argv)<4: print "Usage upload.py <username> <password> <filename/url> [<text>] [<source>]" sys.exit(1) u = yfrog.Uploader() if len(sys.argv)>=5: msg = sys.argv[4] else: msg = None if...
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 1, 0, 0.6667, 0.3333, 0, 0.66, 1, 509, 0, 1, 0, 0, 509, 0, 0 ] ]
[ "import yfrog", "import sys" ]
#!/usr/bin/env python import imageshack import sys if __name__ == "__main__": if len(sys.argv)!=3: print "Usage upload.py <devkey> <filename/url>" sys.exit(1) u = imageshack.Uploader(sys.argv[1]) try: if sys.argv[2].startswith("http://"): print u.uploadURL(sys.argv[2]...
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 115, 0, 1, 0, 0, 115, 0, 0 ], [ 1, 0, 0.6667, 0.3333, 0, 0.66, 1, 509, 0, 1, 0, 0, 509, 0, 0 ] ]
[ "import imageshack", "import sys" ]
# Copyright 2011 Tom SF Haines # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, softwar...
[ [ 1, 0, 0.0873, 0.0079, 0, 0.66, 0, 193, 0, 1, 0, 0, 193, 0, 0 ], [ 1, 0, 0.0952, 0.0079, 0, 0.66, 0.1667, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.1032, 0.0079, 0, ...
[ "from collections import defaultdict", "import cPickle as pickle", "import bz2", "import numpy", "import numpy.random", "from dec_tree import DecTree", "class SWood:\n \"\"\"A stochastic woodland implimentation (Usually called a random forest:-P). Nothing that fancy - does classification and calculates...
# Copyright 2011 Tom SF Haines # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, softwar...
[ [ 1, 0, 0.0561, 0.0051, 0, 0.66, 0, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 1, 0, 0.0612, 0.0051, 0, 0.66, 0.25, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 1, 0, 0.0663, 0.0051, 0, 0....
[ "import math", "import numpy", "import numpy.random", "import scipy.stats.distributions", "class DecTree:\n \"\"\"A decision tree, uses id3 with the c4.5 extension for continuous attributes. Fairly basic - always grows fully and stores a distribution of children at every node so it can fallback for previou...
# -*- coding: utf-8 -*- # Copyright (c) 2010, Tom SF Haines # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright notice, this list of...
[ [ 1, 0, 0.2941, 0.0196, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3137, 0.0196, 0, 0.66, 0.5, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 3, 0, 0.6863, 0.6078, 0, 0.6...
[ "import sys", "import time", "class ProgBar:\n \"\"\"Simple console progress bar class. Note that object creation and destruction matter, as they indicate when processing starts and when it stops.\"\"\"\n def __init__(self, width = 60, onCallback = None):\n self.start = time.time()\n self.fill = 0\n ...
# -*- coding: utf-8 -*- # Copyright (c) 2010, Tom SF Haines # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright notice, this list of...
[ [ 1, 0, 0.5, 0.0333, 0, 0.66, 0, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.5333, 0.0333, 0, 0.66, 0.5, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 2, 0, 0.8333, 0.3667, 0, 0.66, ...
[ "import inspect", "import hashlib", "def start_cpp(hash_str = None):\n \"\"\"This method does two things - firstly it adds the correct line numbers to scipy.weave code (Good for debugging) and secondly it can optionaly inserts a hash code of some other code into the code. This latter feature is useful for work...