You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
520 B
25 lines
520 B
#ifndef MAP_VIEW_H
|
|
#define MAP_VIEW_H MAP_VIEW_H
|
|
|
|
#include "SDL.h"
|
|
#include "tile_collection.h"
|
|
|
|
class MapView{
|
|
int width, height;
|
|
int offsetx, offsety;
|
|
SDL_Window *window;
|
|
public:
|
|
TileCollection tiles;
|
|
int zoom;
|
|
MapView(SDL_Window *window, int width, int height, int zoom);
|
|
void center_coords(double lat, double lng);
|
|
void move_by(int dx, int dy);
|
|
void zoom_at(int x, int y);
|
|
void zoom_in();
|
|
void zoom_out();
|
|
void resize(int width, int height);
|
|
void update_bounds();
|
|
void render();
|
|
};
|
|
|
|
#endif
|