logo.png

 

FERRA 0.1 DOCUMENTATION

 


What is Ferra?

Ferra is a pyglet wrapper providing new functions and classes,

For example sprite.RotatingSprite,

For specific documentation on each file please refer to the HTML file with the corresponding name.

What can Ferra be used for?

Anything you can use pyglet for, there is something I want to include in it:

Ferra.pygame, it is for pygame users who are new in pyglet or if you want to use pygame preferences, for example:

It will set the origin of the window to the topleft corner.

It will be included in a later version(i.e. once I know how to do it!)

I am:

1.) An amateur in python

2.) An amateur in python and pygame

3.) A beginner in python and pyglet

4.) I am fairly familiar with OpenGL(PyOpenGL)

There are some example files: ferra_1.py, ferra_2.py, ferra_3.py

Check them out.

The examples in this documentation will assume that:

You have a basic understanding of python, pyglet.

If not please refer to:

The python docs: http://docs.python.org/

The pyglet programming guide: http://pyglet.org/programming_guide/

                                                                                                                                                                                                                            

WINDOW

Okay now to get you started with the window class,

First the clear method has been updated so you can specify your own color without using glClearColor()

And you can specify whatever arguments you would to pyglet.window.Window()

 


Keyhandler

As it’s name suggests it is a key handler

Usage:

MyKeyHandler = Ferra.KeyHandler()

if MyKeyHandler[Ferra.key.x]:

    do stuff

where x is the key or modifier.

 

Enjoy programming with Ferra!

Copyright © Akinyemi Victor Temiloluwa 2012.

All rights reserved.

http://ferra.wapka.mobi

The official home page is currently being developed.