author | truelight |
Sun, 09 Sep 2007 23:57:47 +0000 | |
changeset 8051 | ec4e97b7b70c |
parent 7485 | 68e3df6c477e |
child 10429 | 1b99254f9607 |
permissions | -rw-r--r-- |
7348
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
1 |
/* $Id$ */ |
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
2 |
|
7358
b18e60d8287a
(svn r10102) -Documentation: @file header was wrong
truelight
parents:
7352
diff
changeset
|
3 |
/** @file 8bpp_optimized.hpp */ |
7348
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
4 |
|
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
5 |
#ifndef BLITTER_8BPP_OPTIMIZED_HPP |
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
6 |
#define BLITTER_8BPP_OPTIMIZED_HPP |
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
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 "8bpp_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" |
7348
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
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_8bppOptimized : public Blitter_8bppBase { |
8e410e7ec0d7
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
truelight
parents:
7385
diff
changeset
|
12 |
public: |
7374
54c06f06ecc8
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
truelight
parents:
7363
diff
changeset
|
13 |
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom); |
54c06f06ecc8
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
truelight
parents:
7363
diff
changeset
|
14 |
/* 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
|
15 |
|
68e3df6c477e
(svn r10245) -Codechange: added GetName also to all Blitters, instead of only the Factory
truelight
parents:
7433
diff
changeset
|
16 |
/* virtual */ const char *GetName() { return "8bpp-optimized"; } |
7348
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
17 |
}; |
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
18 |
|
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
19 |
class FBlitter_8bppOptimized: public BlitterFactory<FBlitter_8bppOptimized> { |
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
20 |
public: |
7363
9f2d21c77592
(svn r10107) -Fix (r10092): Missing 'i' in 'optimized'
peter1138
parents:
7358
diff
changeset
|
21 |
/* virtual */ const char *GetName() { return "8bpp-optimized"; } |
7348
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
22 |
/* virtual */ const char *GetDescription() { return "8bpp Optimized Blitter (compression + all-ZoomLevel cache)"; } |
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
23 |
/* virtual */ Blitter *CreateInstance() { return new Blitter_8bppOptimized(); } |
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
24 |
}; |
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
25 |
|
becce3f57dc7
(svn r10092) -Codechange: code-seperated the spriteloader and blitter from the rest of the code
truelight
parents:
diff
changeset
|
26 |
#endif /* BLITTER_8BPP_OPTIMIZED_HPP */ |