Mercurial > hg > Members > kono > Cerium
changeset 749:62d94ad0cef3
add ViewerDevice
author | hiroki |
---|---|
date | Mon, 25 Jan 2010 19:18:03 +0900 |
parents | b7376415fa5f |
children | 2eafb52b7563 |
files | Renderer/Engine/ViewerDevice.cc Renderer/Engine/ViewerDevice.h |
diffstat | 2 files changed, 30 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Engine/ViewerDevice.cc Mon Jan 25 19:18:03 2010 +0900 @@ -0,0 +1,9 @@ +#include "ViewerDevice.h" + +ViewerDevice::ViewerDevice() +{ +} + +ViewerDevice::~ViewerDevice() +{ +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Engine/ViewerDevice.h Mon Jan 25 19:18:03 2010 +0900 @@ -0,0 +1,21 @@ +#ifndef INCLUDED_VIEWER_DEV +#define INCLUDED_VIEWER_DEV + +#include "TaskManager.h" +#include "SDL.h" + +class ViewerDevice { +public: + ViewerDevice(); + virtual ~ViewerDevice(); + + ViewerDevice(TaskManager *m) {}; + + /* 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