ViewPort Class Reference

Output screen where results are visualized. More...

#include <screen.h>

Inherits Entry.

Inherited by AaScreen, GlScreen, NullScreen, SdlGlScreen, SdlScreen, SdlXvScreen, and SoftScreen.

List of all members.

Public Member Functions

bool init (int w=0, int h=0, int bpp=0)
 general initialization
virtual fourcc get_pixel_format ()=0
 return the pixel format
virtual void * get_surface ()=0
 returns direct pointer to video memory
virtual void * coords (int x, int y)=0
 returns pointer to pixel (slow! use it once and then move around)
virtual void blit (Layer *src)=0
 operate the blit
virtual void setup_blits (Layer *lay)=0
 setup available blits on added layer
virtual bool add_layer (Layer *lay)
 add a new layer to the screen
virtual void rem_layer (Layer *lay)
 remove a layer from the screen
bool add_encoder (VideoEncoder *enc)
 add a new encoder for the screen
void save_frame (char *file)
 save a screenshot of the current frame into file

Public Attributes

Linklist< Layerlayers
 linked list of registered layers
Linklist< VideoEncoderencoders
 linked list of registered encoders
ringbuffer_t * audio
 FIFO ringbuffer for audio.

Protected Member Functions

virtual bool _init ()=0
 implemented initialization

Detailed Description

Output screen where results are visualized.

This class provides a generic interface common to all different output screens present in FreeJ: its methods and properties are affecting the visualization of mixed results in output.

Definition at line 92 of file screen.h.


The documentation for this class was generated from the following files:

Generated on Mon May 10 15:34:13 2010 for FreeJ C++ API by  doxygen 1.6.1