author | Tero Marttila <terom@fixme.fi> |
Tue, 22 Jul 2008 23:20:33 +0300 | |
changeset 11184 | 88c967f1422b |
parent 10429 | 1b99254f9607 |
permissions | -rw-r--r-- |
7385
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
1 |
/* $Id$ */ |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
2 |
|
10429
1b99254f9607
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
7485
diff
changeset
|
3 |
/** @file 32bpp_simple.hpp Simple 32 bpp blitter. */ |
7385
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
4 |
|
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
5 |
#ifndef BLITTER_32BPP_SIMPLE_HPP |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
6 |
#define BLITTER_32BPP_SIMPLE_HPP |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
7 |
|
7433
8e410e7ec0d7
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
truelight
parents:
7385
diff
changeset
|
8 |
#include "32bpp_base.hpp" |
8e410e7ec0d7
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
truelight
parents:
7385
diff
changeset
|
9 |
#include "factory.hpp" |
7385
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
10 |
|
7433
8e410e7ec0d7
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
truelight
parents:
7385
diff
changeset
|
11 |
class Blitter_32bppSimple : public Blitter_32bppBase { |
8e410e7ec0d7
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
truelight
parents:
7385
diff
changeset
|
12 |
public: |
7385
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
13 |
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom); |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
14 |
/* virtual */ void DrawColorMappingRect(void *dst, int width, int height, int pal); |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
15 |
/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator); |
7485
68e3df6c477e
(svn r10245) -Codechange: added GetName also to all Blitters, instead of only the Factory
truelight
parents:
7433
diff
changeset
|
16 |
|
68e3df6c477e
(svn r10245) -Codechange: added GetName also to all Blitters, instead of only the Factory
truelight
parents:
7433
diff
changeset
|
17 |
/* virtual */ const char *GetName() { return "32bpp-simple"; } |
7385
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
18 |
}; |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
19 |
|
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
20 |
class FBlitter_32bppSimple: public BlitterFactory<FBlitter_32bppSimple> { |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
21 |
public: |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
22 |
/* virtual */ const char *GetName() { return "32bpp-simple"; } |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
23 |
/* virtual */ const char *GetDescription() { return "32bpp Simple Blitter (no palette animation)"; } |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
24 |
/* virtual */ Blitter *CreateInstance() { return new Blitter_32bppSimple(); } |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
25 |
}; |
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
26 |
|
dc6e404283bc
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
27 |
#endif /* BLITTER_32BPP_SIMPLE_HPP */ |