~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/video/allegro_v.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: allegro_v.h 14630 2008-11-25 19:32:12Z rubidium $ */
 
2
 
 
3
/** @file allegro_v.h Base of the Allegro video driver. */
 
4
 
 
5
#ifndef VIDEO_ALLEGRO_H
 
6
#define VIDEO_ALLEGRO_H
 
7
 
 
8
#include "video_driver.hpp"
 
9
 
 
10
class VideoDriver_Allegro: public VideoDriver {
 
11
public:
 
12
        /* virtual */ const char *Start(const char * const *param);
 
13
 
 
14
        /* virtual */ void Stop();
 
15
 
 
16
        /* virtual */ void MakeDirty(int left, int top, int width, int height);
 
17
 
 
18
        /* virtual */ void MainLoop();
 
19
 
 
20
        /* virtual */ bool ChangeResolution(int w, int h);
 
21
 
 
22
        /* virtual */ bool ToggleFullscreen(bool fullscreen);
 
23
};
 
24
 
 
25
class FVideoDriver_Allegro: public VideoDriverFactory<FVideoDriver_Allegro> {
 
26
public:
 
27
        static const int priority = 5;
 
28
        /* virtual */ const char *GetName() { return "allegro"; }
 
29
        /* virtual */ const char *GetDescription() { return "Allegro Video Driver"; }
 
30
        /* virtual */ Driver *CreateInstance() { return new VideoDriver_Allegro(); }
 
31
};
 
32
 
 
33
#endif /* VIDEO_ALLEGRO_H */