This tiny application simply moves three gray objects around the screen. Each new position of the lead object is chosen randomly, and the trailing two objects follow.
|Lines of source:||40|
Your friendly Togra icon, animated! (created by Jan Schmidt).
|Lines of source:||65|
This application demonstrates bezier-interpolation of paths, re-use of transformed paths, and re-use of objects, and is also a good benchmark for raw polygons handled by the framework. 10 spheres float around the screen.
User keypresses are also handled - 'q' will quit and ' ' will pause.
|Lines of source:||70|
Funky intertwining blue and red spheres (created by Jan Schmidt).
|Lines of source:||67|
This application provides a (very) simple game of snake. Control is through 'a', 's', 'w' and 'd'. The game can be paused using the space bar, and quit with 'q'.
As a test application for Togra, snake.py provides colour testing, interpolated path testing (all of the components of the snake are attached to the same path), and also sets the stage for future, more interesting games.
|Lines of source:||170|
This application demonstrates Texture handling in togra. Space pauses and 'q' quits.
|Lines of source:||55|
Example of using the ODE physics modelling library to implement a spring loaded network of nodes.
|Lines of source:||273|
Using the GStreamer media framework to load a movie onto a texture for playback.
|Lines of source:||108|
Another example using GStreamer to load 4 movies onto the side of a cube, with audio fading in and out as the cube rotates. This example was put together for Linux.conf.au 2005 (hence the logo)
|Lines of source:||737|
|View code:||texture-gst-cube.py and cube_gst_new.py|