author | truelight |
Wed, 13 Jun 2007 10:31:40 +0000 | |
changeset 6889 | 2160bf28040b |
child 6937 | 40c760fcf1f6 |
permissions | -rw-r--r-- |
6889
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
1 |
/* $Id$ */ |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
2 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
3 |
/** @file 32bpp_simple.hpp */ |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
4 |
|
2160bf28040b
(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 |
2160bf28040b
(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 |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
7 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
8 |
#include "blitter.hpp" |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
9 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
10 |
class Blitter_32bppSimple : public Blitter { |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
11 |
public: |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
12 |
/* virtual */ uint8 GetScreenDepth() { return 32; } |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
13 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
14 |
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom); |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
15 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
16 |
/* virtual */ void DrawColorMappingRect(void *dst, int width, int height, int pal); |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
17 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
18 |
/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator); |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
19 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
20 |
/* virtual */ const char *GetRenderer() { return "32bpp"; } |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
21 |
}; |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
22 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
23 |
class FBlitter_32bppSimple: public BlitterFactory<FBlitter_32bppSimple> { |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
24 |
public: |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
25 |
/* virtual */ const char *GetName() { return "32bpp-simple"; } |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
26 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
27 |
/* virtual */ const char *GetDescription() { return "32bpp Simple Blitter (no palette animation)"; } |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
28 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
29 |
/* virtual */ Blitter *CreateInstance() { return new Blitter_32bppSimple(); } |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
30 |
}; |
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
31 |
|
2160bf28040b
(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer
truelight
parents:
diff
changeset
|
32 |
#endif /* BLITTER_32BPP_SIMPLE_HPP */ |