My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef MAP_BG__MAP_BG_H
#define MAP_BG__MAP_BG_H

#include <MapCommon/MapCommon.h>
#include "MipMapGen.h"
#include "MipMap.h"

#define CACHE_PAGE_INIT_SIZE Size(2, 2)
#define CACHE_PAGE_SIZE Size(4, 4)

class MapBG : public IMapRender
{
public:
MapBG(IMapRender* render);
virtual ~MapBG() {}

virtual void Render(Draw* w);
virtual Rect GetRect();

virtual void StatePerformed(dword state, const String& param = String());
virtual bool Load(const char* fp);
virtual bool Zoom(int level);

virtual Rect GetRenderRect() { return GetRect(); }

virtual String GetItemType() { return "MapBG"; }

protected:
Size _cachePageInitSize;
Size _cachePageSize;
int _currLevel;
bool _recalc;
Rect _virtPage;
String _mapDir;

Vector<MipMapLevel> _levels;
};

#endif

Change log

r4180 by Sc0rch on Nov 17, 2011   Diff
MapRender: First release
(FormEditorCommon, FormEditorProperties,
Map, MapBG, MapCommon, MapEditor,
MapRenderTest.
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 812 bytes, 39 lines
Powered by Google Project Hosting