Commits

Author Commit Message Labels Comments Date
r1chardj0n3s
notes
r1chardj0n3s
Cleanup of the png module and added some docs and ideas. Big problem though: libpng uses longjmp if there's an error in the PNG file. I have no idea how we could handle this in python / ctypes. Mind you, I've never actually *used* setjmp/longjmp either. I'm sure we can't setjmp *in* Python code.
r1chardj0n3s
finish migration of old pyglet/image.py
r1chardj0n3s
duh
r1chardj0n3s
just some possible todo items
r1chardj0n3s
added some code organisation ideas
r1chardj0n3s
works in OSX now
r1chardj0n3s
fixes
r1chardj0n3s
oops
r1chardj0n3s
use glTexSubImage2D and a blank slate - a bit nicer than the measure-and-fill approach
r1chardj0n3s
More cleanup of the image stuff. Implemented creating Texture from pyglet.image.Image and the png_test now uses that.
Alex.Holkner
Fix texture test: initialise a GL context before you do anything with it.
r1chardj0n3s
Some image / texture work. It's not working :( I'm pretty sure I'm loading the PNG correctly, but I can't texture it onto the quad in tests/png_test.py Feel free to trash the refactoring I've done of the image.py module. It's not complete - the texturing class' support function _gen_texture is still working on SDL Images, hence none of that code is actually used in tests/png_test.py We'd most likely want to look into Toby's texture/etc. clas…
r1chardj0n3s
Added move and resize to xlib window events. All the xlib events are implemented at a basic level. There's still stuff that could be done to improve them (like getting the correct window initial position from the WM). Also I added correct type names to the event definitions 'cos that was bugging me.
Alex.Holkner
Allocate depth buffer.
r1chardj0n3s
nicer camera positioning
r1chardj0n3s
oops
r1chardj0n3s
some initial OBJ file loading and testing
r1chardj0n3s
removed blur.py at Toby's request - he wants to work on it some more before committing
r1chardj0n3s
Code from Toby Sargeant. Has some promising classes in it: Surface, TextureParam FrameBuffer ShaderMaterial
r1chardj0n3s
Fix a couple of bugs in the GL modules (auto-generation problems) Implement mouse position delta handling. Windows get a "mouse" attribute which has postition and button status. Added symbolic names for mouse buttons. Implement expose, enter, leave, resize in xlib (bare minimum) The gl_tree_test script demonstrates some of the new events (mouse pos, button press, mouse button state on XCrossingEvent, etc).
rjonescg
just a whitespace cleanup
rjonescg
Man, I wish Google included diffs in commit emails... This checkin refactors and cleans up the events implementation: 1. cleaned out the garbage from pyglet/event.py 2. implemented EventDispatcher in pyglet/event.py 3. modified window events code to use EventDispatcher 4. moved the old _event_dispatchers code in pyglet/window/xlib/__init__.py onto the XlibWindow class and renamed to __translate_X and __event_translators.
rjonescg
sys should be a builtin
rjonescg
use platform to figure which windowing system to try, and don't squash errors
anatoly techtonik
Close dead branch holkner_1
Branches
holkner_1
Alex.Holkner
Fix potential bug in Xlib event polling.
Alex.Holkner
Branch while working away from net.
Branches
holkner_1
Alex.Holkner
Test two windows drawing GL with different contexts.
Alex.Holkner
Fixes to GLU versions. Windows has only GLU 1.1 (!). gl_test.py now works on Windows.
  1. Prev
  2. Next