25 #include "glm/mat4x4.hpp" 26 #include "glm/gtc/type_ptr.hpp" 27 #include "glm/gtc/matrix_transform.hpp" 38 float mapPt1X,
float mapPt1Y,
float mapPt2X,
float mapPt2Y,
39 float worldPt1X,
float worldPt1Y,
float worldPt2X,
float worldPt2Y) :
40 _mapQuad(
"lbl_map" + map, 0, 0, 512, 256), _northAxis(northAxis),
41 _mapPt1X(mapPt1X), _mapPt1Y(mapPt1Y), _mapPt2X(mapPt2X), _mapPt2Y(mapPt2Y),
42 _worldPt1X(worldPt1X), _worldPt1Y(worldPt1Y), _worldPt2X(worldPt2X), _worldPt2Y(worldPt2Y) {
46 glm::mat4 projection(glm::ortho(0.0f, 120.0f, 0.0f, 120.0f, -1.0f, 1.0f));
52 glm::mat4 transformation;
54 float scaleX, scaleY, relX, relY;
61 transformation = glm::translate(transformation, glm::vec3(-(relX * 435) + 60, -(256 - relY * 256) + 60, 0));
69 transformation = glm::translate(transformation, glm::vec3(-(relX * 435) + 60, -(256 - relY * 256) + 60, 0));
A class holding an UTF-8 string.
void add(Renderable *renderable)
Add a renderable to the sub scene.
void setProjectionMatrix(const glm::mat4 &projection)
Utility templates and functions.
void warning(const char *s,...)
void setGlobalTransformationMatrix(const glm::mat4 &transformation)
Minimap(const Common::UString &map, int northAxis, float mapPt1X, float mapPt1Y, float mapPt2X, float mapPt2Y, float worldPt1X, float worldPt1Y, float worldPt2X, float worldPt2Y)
Graphics::Aurora::GUIQuad _mapQuad
void setPosition(float x, float y)