view Renderer/Engine/ViewerDevice.h @ 895:bed529c55eda

add alignment of classes in SPU width and height are automatically set in frame buffer API
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 16 Jul 2010 17:23:49 +0900
parents 4f77768d7a7f
children a193a851b5e3
line wrap: on
line source

#ifndef INCLUDED_VIEWER_DEV
#define INCLUDED_VIEWER_DEV

#include "TaskManager.h"
#include "SDL.h"

class ViewerDevice {
public:
    ViewerDevice();    
    virtual ~ViewerDevice();

    ViewerDevice(TaskManager *m) {};

    int width;
    int height;
    int bpp;

    /* override function */
    virtual Uint32 *video_init(TaskManager *manager, int bpp, int width, int height) = 0;
    virtual void clean_pixels() = 0;
    virtual void clear_screen() = 0;
    virtual void free_device() = 0;    
};

#endif