rayzor

annotate src/screen.cc @ 11:fe94d9e986ae

optimized 16bpp swap_buffers
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 10 Apr 2014 08:42:33 +0300
parents
children be616b58df99
rev   line source
nuclear@9 1 #include <string.h>
nuclear@9 2 #include "screen.h"
nuclear@9 3
nuclear@9 4 Screen::Screen()
nuclear@9 5 {
nuclear@9 6 name = 0;
nuclear@9 7 }
nuclear@9 8
nuclear@9 9 Screen::~Screen()
nuclear@9 10 {
nuclear@9 11 delete [] name;
nuclear@9 12 }
nuclear@9 13
nuclear@9 14 bool Screen::init()
nuclear@9 15 {
nuclear@9 16 return true;
nuclear@9 17 }
nuclear@9 18
nuclear@9 19 void Screen::shutdown()
nuclear@9 20 {
nuclear@9 21 }
nuclear@9 22
nuclear@9 23 void Screen::set_name(const char *name)
nuclear@9 24 {
nuclear@9 25 delete [] this->name;
nuclear@9 26 this->name = new char[strlen(name) + 1];
nuclear@9 27 strcpy(this->name, name);
nuclear@9 28 }
nuclear@9 29
nuclear@9 30 const char *Screen::get_name() const
nuclear@9 31 {
nuclear@9 32 return name ? name : "<unnamed>";
nuclear@9 33 }
nuclear@9 34
nuclear@9 35 void Screen::update()
nuclear@9 36 {
nuclear@9 37 }
nuclear@9 38
nuclear@9 39 void Screen::handle_keyboard(int key, bool press)
nuclear@9 40 {
nuclear@9 41 }
nuclear@9 42
nuclear@9 43 void Screen::handle_mbutton(int bn, bool press, int x, int y)
nuclear@9 44 {
nuclear@9 45 }
nuclear@9 46
nuclear@9 47 void Screen::handle_mmotion(int x, int y)
nuclear@9 48 {
nuclear@9 49 }