diff options
| author | Japa | 2010-04-09 14:24:27 +0000 |
|---|---|---|
| committer | Japa | 2010-04-09 14:24:27 +0000 |
| commit | 114df922d3073bd296b38cf522997f520fb17850 (patch) | |
| tree | c4cf372825118c3663cd77e18c69a6c3b59d070f /GUI.h | |
| parent | 81aefc8e03ff3f647494012e18bcdc8f33f4de42 (diff) | |
| download | stonesense-114df922d3073bd296b38cf522997f520fb17850.tar.gz stonesense-114df922d3073bd296b38cf522997f520fb17850.tar.bz2 stonesense-114df922d3073bd296b38cf522997f520fb17850.tar.xz | |
updated trunk to the new graphics engine, and the latest DFhack
Diffstat (limited to 'GUI.h')
| -rw-r--r-- | GUI.h | 49 |
1 files changed, 49 insertions, 0 deletions
@@ -0,0 +1,49 @@ +#pragma once
+
+#include "common.h"
+
+void ScreenToPoint(int x,int y,int &x1, int &y1, int &z1);
+void pointToScreen(int *inx, int *iny, int inz);
+Crd2D WorldBlockToScreen(int32_t x, int32_t y, int32_t z);
+Crd2D LocalBlockToScreen(int32_t x, int32_t y, int32_t z);
+void DrawCurrentLevelOutline(bool backPart);
+void DrawMinimap();
+void paintboard();
+void draw_textf_border(const ALLEGRO_FONT *font, float x, float y, int flags, const char *format, ...);
+void draw_text_border(const ALLEGRO_FONT *font, float x, float y, int flags, const char *ustr);
+void draw_ustr_border(const ALLEGRO_FONT *font, float x, float y, int flags, const ALLEGRO_USTR *ustr);
+ALLEGRO_BITMAP* getImgFile(int index);
+void flushImgFiles();
+//returns index into getImgFile. Will only create new bitmaps when needed
+int loadImgFile(char* filename);
+int loadImgFile(ALLEGRO_PATH* filepath);
+void DrawSpriteFromSheet( int spriteNum,ALLEGRO_BITMAP* spriteSheet, int x, int y);
+ALLEGRO_BITMAP * CreateSpriteFromSheet( int spriteNum, ALLEGRO_BITMAP* spriteSheet);
+ALLEGRO_BITMAP* load_bitmap_withWarning(char* path);
+void DrawSpriteIndexOverlay(int i);
+void DoSpriteIndexOverlay();
+void loadGraphicsFromDisk();
+void saveScreenshot();
+void saveMegashot();
+void saveImage(ALLEGRO_BITMAP* image);
+void draw_particle_cloud(int count, float centerX, float centerY, float rangeX, float rangeY, ALLEGRO_BITMAP *sprite);
+extern WorldSegment* viewedSegment;//current, loaded
+extern int DisplayedSegmentX;
+extern int DisplayedSegmentY;
+extern int DisplayedSegmentZ;
+extern int DisplayedRotation;
+
+extern int MiniMapTopLeftX;
+extern int MiniMapTopLeftY;
+extern int MiniMapBottomRightX;
+extern int MiniMapBottomRightY;
+extern int MiniMapSegmentWidth;
+extern int MiniMapSegmentHeight;
+extern double oneBlockInPixels;
+
+extern ALLEGRO_BITMAP* IMGIcon;
+extern ALLEGRO_BITMAP* IMGObjectSheet;
+extern ALLEGRO_BITMAP* IMGCreatureSheet;
+extern ALLEGRO_BITMAP* IMGRampSheet;
+
+extern Crd3D debugCursor;
\ No newline at end of file |
