1. anatoly techtonik
  2. pyglet

Commits

Show all
Author Commit Message Date Builds
r1chardj0n3s
Added docs from wiki
Branches
new_sprites
r1chardj0n3s
add missing files
Branches
new_sprites
r1chardj0n3s
Lots of stuff implemented and fixed. Lots of tests pass, lots of tests still fail. Index: tests/scene2d/LOAD_RECTMAP.py =================================================================== --- tests/scene2d/LOAD_RECTMAP.py (revision 708) +++ tests/scene2d/LOAD_RECTMAP.py (working copy) @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -'''Testing loading of a map. - -You should see a simple map with a circular road on it. -The tiles are not well-designed :) - -Press escape or close the …
Branches
new_sprites
r1chardj0n3s
Fix up ImageSpriteRep to correctly cache reps, and draw_many to draw correctly. Don't nuke id in image resource load. Migrate examples/image_test.py examples/driving.py works again. Index: pyglet/image/__init__.py =================================================================== --- pyglet/image/__init__.py (revision 708) +++ pyglet/image/__init__.py (working copy) @@ -1197,7 +1197,6 @@ r = z / float(owner.images) self.tex_coords = ((u1, v1, r), (u2, v1, r), (u2, v2, r), (u1, v2, r)) - def _get_image_data(self): image_data = self.owner.get_…
Branches
new_sprites
r1chardj0n3s
New Sprite implementation, half-assed.
Branches
new_sprites
r1chardj0n3s
update from trunk
Branches
new_sprites
r1chardj0n3s
switch to new API
Branches
new_sprites
r1chardj0n3s
merge from trunk
Branches
new_sprites
r1chardj0n3s
Branches
new_sprites
r1chardj0n3s
branch for new sprites implementation
Branches
new_sprites
r1chardj0n3s
Fix scene2d tests so they work with the new image API. Even if this is temporary while scene2d mutates horribly into THE HULK!!!!!!!1!11! Index: trunk/tests/scene2d/SPRITE_MODEL.py =================================================================== --- trunk/tests/scene2d/SPRITE_MODEL.py (revision 675) +++ trunk/tests/scene2d/SPRITE_MODEL.py (working copy) @@ -11,7 +11,7 @@ import unittest from pyglet.window import Window -from pyglet.image import Image +from pyglet.image import SolidColorImagePattern from pyglet.scene2d import…
Alex.Holkner
Fix PIL image save when both pitch and format are converted. Fixes issue #34 (DEPTH_SAVE). Index: pyglet/image/codecs/pil.py =================================================================== --- pyglet/image/codecs/pil.py (revision 674) +++ pyglet/image/codecs/pil.py (working copy) @@ -55,11 +55,10 @@ format = 'JPEG' image = image.image_data - image.pitch = -(image.width * len(image.format)) - - # Only save in RGB or RGBA formats. if imag…
Alex.Holkner
Fix carbon text. Fix image data pitch correction. Fix checkerboard test. Make property methods private. Add docstrings to new image methods. Index: tests/image/CHECKERBOARD.py =================================================================== --- tests/image/CHECKERBOARD.py (revision 673) +++ tests/image/CHECKERBOARD.py (working copy) @@ -32,7 +32,7 @@ glClearColor(1, 1, 1, 1) glClear(GL_COLOR_BUFFER_BIT) glLoadIdentity() - self.texture.blit_to_buffer(0, 0, 0) + self.texture.blit(0, 0, 0) …
Alex.Holkner
Create Texture3D from ImageGrid. Index: tests/image/TEXTURE_GRID.py =================================================================== --- tests/image/TEXTURE_GRID.py (revision 669) +++ tests/image/TEXTURE_GRID.py (working copy) @@ -31,8 +31,8 @@ data += (width * '\0') * rowpad assert len(data) == width * height self.image = ImageData(width, height, 'L', data) - self.grid = TextureGrid.…
tobias.sargeant
fix gl errors in blur.py 1) taps should have been a vec2, not a vec4. 2) the cube display list had a stray glEnd()
r1chardj0n3s
some cleanup of blur.py but it still doesn't work :)
Alex.Holkner
Fix TextureGrid after Texture3D broke it. Index: pyglet/image/__init__.py =================================================================== --- pyglet/image/__init__.py (revision 669) +++ pyglet/image/__init__.py (working copy) @@ -1442,8 +1442,13 @@ item_width=None, item_height=None, row_padding=0, column_padding=0): image = image.texture - texture = \ - cl…
Alex.Holkner
Whoops, missed test files. Index: tests/image/TEXTURE_3D.py =================================================================== --- tests/image/TEXTURE_3D.py (revision 0) +++ tests/image/TEXTURE_3D.py (revision 0) @@ -0,0 +1,62 @@ +#!/usr/bin/env python + +''' +''' + +__docformat__ = 'restructuredtext' +__version__ = '$Id: $' + +import unittest + +from pyglet.gl import * +from pyglet.image import * +from pyglet.window impo…
Alex.Holkner
Test cases for Texture3D Index: pyglet/image/__init__.py =================================================================== --- pyglet/image/__init__.py (revision 667) +++ pyglet/image/__init__.py (working copy) @@ -724,8 +724,8 @@ memmove(buf, self._current_data, len(self._current_data)) self._current_data = buf.raw if self._current_skip_rows: - self._current_data =…
Alex.Holkner
Texture3D, untested. Index: pyglet/image/__init__.py =================================================================== --- pyglet/image/__init__.py (revision 666) +++ pyglet/image/__init__.py (working copy) @@ -322,10 +322,29 @@ '''Draw `source` on this image.''' raise ImageException('Cannot blit images onto %r.' % self) - def blit_to_texture(self, target, level, x, y, depth=0): + def blit_…
Alex.Holkner
TextureRegion stores its offset. Index: pyglet/image/__init__.py =================================================================== --- pyglet/image/__init__.py (revision 665) +++ pyglet/image/__init__.py (working copy) @@ -926,6 +926,8 @@ region_class = None # Set to TextureRegion after it's defined tex_coords = ((0, 0, 0), (1, 0, 0), (1, 1, 0), (0, 1, 0)) level = 0 + images = 1 + x = y = z = 0 def _…
Alex.Holkner
Test cases for TextureGrid, fixes to ImageData and TextureRegion. Index: tests/image/TEXTURE_GRID.py =================================================================== --- tests/image/TEXTURE_GRID.py (revision 0) +++ tests/image/TEXTURE_GRID.py (revision 0) @@ -0,0 +1,100 @@ +#!/usr/bin/env python + +''' +''' + +__docformat__ = 'restructuredtext' +__version__ = '$Id: $' + +import unittest + +from pyglet.gl import * +from pyglet.image import * +from pyglet.wind…
Alex.Holkner
TextureGrid, untested. Index: pyglet/image/__init__.py =================================================================== --- pyglet/image/__init__.py (revision 663) +++ pyglet/image/__init__.py (working copy) @@ -1342,16 +1342,120 @@ # TODO mask methods class TextureSequence(object): - def __init__(self, texture): - self.texture = texture - def __getitem__(self, slice): - raise ImageExcep…
Alex.Holkner
Fix hex constant parsing in wraptypes; updated gl* wrappers (still to do: agl and wgl). Index: tools/gengl.py =================================================================== --- tools/gengl.py (revision 661) +++ tools/gengl.py (working copy) @@ -214,9 +214,9 @@ print >> sys.stderr, ' %s' % ' '.join(modules.keys()) if not options.dir: - options.dir = os.path.join(script_dir, os.path.pardir, 'pyglet', 'GL') + options.dir = os.path.join(script_dir, os.…
Alex.Holkner
Automatic GL error checking after all function calls. (Exposes an error in glext_*.py, which breaks blur.py, sorry). Index: pyglet/__init__.py =================================================================== --- pyglet/__init__.py (revision 661) +++ pyglet/__init__.py (working copy) @@ -14,3 +14,7 @@ if not tuple(have) >= tuple(req): raise ImportError('pyglet requires ctypes %s or later.' % version) _require_ctypes_version('1.0.0') + +options = { + 'gl_error_check': True, +} Index: pyglet/g…
Alex.Holkner
Merge image_refactor branch -r 640:660 into head.
Alex.Holkner
Internal docs for wraptypes. Class diagram is svg, so we need a rest writer that will convert that to something viewable in a web browser.
Alex.Holkner
Internal docs for gl and generation process.
Alex.Holkner
User docs for pyglet.gl.
Alex.Holkner
New news.
  1. Prev
  2. Next