author | rubidium |
Sun, 14 Oct 2007 19:57:15 +0000 | |
changeset 7726 | a9c8beebf2c1 |
parent 6989 | 1768ca0091cb |
child 9111 | 48ce04029fe4 |
permissions | -rw-r--r-- |
6861
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
1 |
/* $Id$ */ |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
2 |
|
6862
8c54e0f4c882
(svn r10102) -Documentation: @file header was wrong
truelight
parents:
6861
diff
changeset
|
3 |
/** @file 8bpp_simple.hpp */ |
6861
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
4 |
|
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
5 |
#ifndef BLITTER_8BPP_SIMPLE_HPP |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
6 |
#define BLITTER_8BPP_SIMPLE_HPP |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
7 |
|
6937
40c760fcf1f6
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
truelight
parents:
6889
diff
changeset
|
8 |
#include "8bpp_base.hpp" |
40c760fcf1f6
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
truelight
parents:
6889
diff
changeset
|
9 |
#include "factory.hpp" |
6861
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
10 |
|
6937
40c760fcf1f6
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
truelight
parents:
6889
diff
changeset
|
11 |
class Blitter_8bppSimple : public Blitter_8bppBase { |
40c760fcf1f6
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
truelight
parents:
6889
diff
changeset
|
12 |
public: |
6878
5cefd3ac59c7
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
truelight
parents:
6862
diff
changeset
|
13 |
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom); |
5cefd3ac59c7
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
truelight
parents:
6862
diff
changeset
|
14 |
/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator); |
6989
1768ca0091cb
(svn r10245) -Codechange: added GetName also to all Blitters, instead of only the Factory
truelight
parents:
6937
diff
changeset
|
15 |
|
1768ca0091cb
(svn r10245) -Codechange: added GetName also to all Blitters, instead of only the Factory
truelight
parents:
6937
diff
changeset
|
16 |
/* virtual */ const char *GetName() { return "8bpp-simple"; } |
6861
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
17 |
}; |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
18 |
|
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
19 |
class FBlitter_8bppSimple: public BlitterFactory<FBlitter_8bppSimple> { |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
20 |
public: |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
21 |
/* virtual */ const char *GetName() { return "8bpp-simple"; } |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
22 |
/* virtual */ const char *GetDescription() { return "8bpp Simple Blitter (relative slow, but never wrong)"; } |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
23 |
/* virtual */ Blitter *CreateInstance() { return new Blitter_8bppSimple(); } |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
24 |
}; |
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
25 |
|
bb680703bab2
(svn r10101) -Codechange: the class is named 8bppSimple, so name the files like that too
truelight
parents:
diff
changeset
|
26 |
#endif /* BLITTER_8BPP_SIMPLE_HPP */ |