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

« back to all changes in this revision

Viewing changes to src/blitter/32bpp_optimized.hpp

  • 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: 32bpp_optimized.hpp 11078 2007-09-09 23:16:01Z truelight $ */
 
1
/* $Id: 32bpp_optimized.hpp 13639 2008-06-26 15:46:19Z smatz $ */
2
2
 
3
 
/** @file 32bpp_optimized.hpp */
 
3
/** @file 32bpp_optimized.hpp Optimized 32 bpp blitter. */
4
4
 
5
5
#ifndef BLITTER_32BPP_OPTIMIZED_HPP
6
6
#define BLITTER_32BPP_OPTIMIZED_HPP
10
10
 
11
11
class Blitter_32bppOptimized : public Blitter_32bppSimple {
12
12
public:
 
13
        struct SpriteData {
 
14
                uint32 offset[ZOOM_LVL_COUNT][2];
 
15
                byte data[VARARRAY_SIZE];
 
16
        };
 
17
 
13
18
        /* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
14
19
        /* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
15
20
 
16
21
        /* virtual */ const char *GetName() { return "32bpp-optimized"; }
 
22
 
 
23
        template <BlitterMode mode> void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom);
17
24
};
18
25
 
19
26
class FBlitter_32bppOptimized: public BlitterFactory<FBlitter_32bppOptimized> {