ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ll_util.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef WATCHMAKER_LL_UTIL_H
23 #define WATCHMAKER_LL_UTIL_H
24 
25 #include "watchmaker/game.h"
26 #include "watchmaker/globvar.h"
27 #include "watchmaker/t3d.h"
28 #include "watchmaker/work_dirs.h"
29 #include "watchmaker/renderer.h"
30 
31 namespace Watchmaker {
32 
33 int32 LoadDDBitmap(WGame &game, const char *n, uint8 flags);
34 void LoadFont(WGame &game, struct SFont *f, const char *n);
35 void UpdateRoomVisibility(WGame &game);
36 t3dMESH *LinkMeshToStr(Init &init, const Common::String &str);
37 int16 getRoomFromStr(Init &init, const Common::String &s);
38 void ChangeRoom(WGame &game, Common::String n, uint8 pos, int32 an);
39 bool SetBndLevel(WGame &game, const char *roomname, int32 lev);
40 int32 GetBndLevel(char *roomname);
41 void GetDDBitmapExtends(Renderer &renderer, struct SRect *r, struct SDDBitmap *b);
42 void DisplayDDBitmap(Renderer &, int32 tnum, int32 px, int32 py, int32 ox, int32 oy, int32 dx, int32 dy);
43 void DisplayDDBitmap_NoFit(Renderer &renderer, int32 tnum, int32 px, int32 py, int32 ox, int32 oy, int32 dx, int32 dy);
44 void UpdateRoomInfo(WGame &game);
45 bool CheckRect(Renderer &renderer, struct SRect p, int32 cmx, int32 cmy);
46 void DisplayD3DTriangle(Renderer &, int32 x1, int32 y1, int32 x2, int32 y2, int32 x3, int32 y3, uint8 r, uint8 g, uint8 b, uint8 al);
47 void DisplayD3DRect(Renderer &, int32 px, int32 py, int32 dx, int32 dy, uint8 r, uint8 g, uint8 b, uint8 al);
48 int32 CreateTooltipBitmap(Renderer &renderer, char *tooltip, FontColor color, uint8 r, uint8 g, uint8 b);
49 int32 WhatObj(WGame &game, int32 mx, int32 my, uint8 op);
50 void DebugVideo(Renderer &renderer, int32 px, int32 py, const char *format, ...);
51 
52 } // End of namespace Watchmaker
53 
54 #endif // WATCHMAKER_LL_UTIL_H
Definition: 2d_stuff.h:30
Definition: str.h:59