Provides input to the Context. More...
#include <layer.h>
Inherits Entry, and JSyncThread.
Inherited by AudioLayer, FlashLayer, GeneratorLayer, GenLayer, GeoLayer, ImageLayer, UnicapLayer, V4lGrabber, and VideoLayer.
Public Member Functions | |
| Layer () | |
| Layer constructor. | |
| virtual | ~Layer () |
| Layer destructor. | |
| virtual int | start () |
| virtual bool | open (const char *file)=0 |
| open the file (first called) | |
| virtual bool | init (int w=0, int h=0, int bpp=0) |
| initializes the layer (this will call also the layer implementation's init) | |
| virtual void | close ()=0 |
| close the layer (ready to open a new one) | |
| virtual bool | set_parameter (int idx) |
| activate the setting on parameter pointed by idx index number | |
| virtual void | set_position (int x, int y) |
| Get Layer's filename. | |
| virtual void | set_zoom (double x, double y) |
| Zoom (resize) a Layer. | |
| virtual void | set_rotate (double angle) |
| Rotate a Layer. | |
| virtual void * | do_filters (void *tmp_buf) |
| process all filters on a buffer | |
| int | do_iterators () |
| process all registered iterators | |
| virtual char * | get_blit () |
| return the name of the currently seleted Blit | |
| virtual bool | set_blit (const char *bname) |
| select a Blit by name | |
| void * | js_constructor (Context *env, JSContext *cx, JSObject *obj, int argc, void *aargv, char *err_msg) |
| javascript layer constructor | |
Public Attributes | |
| Type | type |
| type of the layer | |
| Linklist< Parameter > * | parameters |
| Parameter list for the layer. | |
| Linklist< FilterInstance > | filters |
| Filter list of effects applied on the Layer. | |
| Geometry | geo |
| Geometrical information about the Layer. | |
| Geometry | geo_rotozoom |
| Geometrical information about the Rotozoom. | |
| Linklist< Iterator > | iterators |
| Iterator list of value modifiers. | |
| Blitter * | blitter |
| Blitter interface for this Layer. | |
| Blit * | current_blit |
| currently set Blit on this Layer | |
| ViewPort * | screen |
| ViewPort on which the Layer is blitted. | |
| void * | buffer |
| RGBA pixel buffer returned by the layer. | |
| unsigned int | textureID |
| opengl texture id | |
| int | frame_rate |
| value set by implemented layer type | |
Protected Member Functions | |
| virtual bool | _init ()=0 |
| implementation specific _init() to be present in all layers | |
Provides input to the Context.
This class describes methods and properties common to all Layers in FreeJ: it is the main interface for functionalities like blit changes, filter management and position changes.
The public methods hereby described are matching the javascript API which is made available by the internal parser.
Methods implemented to create and destroy a Layer:
Miscellaneus operations made available for the Layer:
Blitter interface of the Layer
LinkList of Filter instances added to the Layer:
LinkList of Parameters available for the Layer:
Geometrical informations about the layer:
Definition at line 81 of file layer.h.
| virtual bool Layer::_init | ( | ) | [protected, pure virtual] |
| void * Layer::do_filters | ( | void * | tmp_buf | ) | [virtual] |
| virtual bool Layer::open | ( | const char * | file | ) | [pure virtual] |
open the file (first called)
Open a file or resource for the layer
| file | string describing the path to the file, can be also an url |
| void Layer::set_position | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
| void Layer::set_rotate | ( | double | angle | ) | [virtual] |
| void Layer::set_zoom | ( | double | x, | |
| double | y | |||
| ) | [virtual] |
| virtual int Layer::start | ( | ) | [inline, virtual] |
| void* Layer::buffer |
1.6.1