34 lines
899 B
C
34 lines
899 B
C
|
// ==============================================================
|
||
|
// This file is part of Glest (www.glest.org)
|
||
|
//
|
||
|
// Copyright (C) 2001-2008 Martio Figueroa
|
||
|
//
|
||
|
// You can redistribute this code and/or modify it under
|
||
|
// the terms of the GNU General Public License as published
|
||
|
// by the Free Software Foundation; either version 2 of the
|
||
|
// License, or (at your option) any later version
|
||
|
// ==============================================================
|
||
|
|
||
|
#ifndef _MAPEDITOR_RENDERER_H_
|
||
|
#define _MAPEDITOR_RENDERER_H_
|
||
|
|
||
|
#include "map_preview.h"
|
||
|
|
||
|
using namespace Shared::Map;
|
||
|
|
||
|
namespace MapEditor {
|
||
|
|
||
|
// ===============================================
|
||
|
// class Renderer
|
||
|
// ===============================================
|
||
|
|
||
|
class Renderer {
|
||
|
public:
|
||
|
void init(int clientW, int clientH);
|
||
|
void renderMap(MapPreview *map, int x, int y, int clientW, int clientH, int cellSize);
|
||
|
};
|
||
|
|
||
|
}// end namespace
|
||
|
|
||
|
#endif
|