1
//================================================== -*- Mode: C++ -*-
2
// Copyright (C) 2002,2003 Daniel Heck
4
// This program is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU General Public License
6
// as published by the Free Software Foundation; either version 2
7
// of the License, or (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License along
15
// with this program; if not, write to the Free Software Foundation, Inc.,
16
// 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18
// $Id: display-lua.pkg,v 1.3 2004/05/27 20:30:36 dheck Exp $
19
//======================================================================
21
$#include "display.hh"
22
$#include "d_models.hh"
23
$using namespace display;
28
Surface *GetSurface (const char *name);
29
Surface *CropSurface (const Surface *s, Rect r);
30
void DefineImageModel (const char *name, Surface *s);
34
typedef int FollowMode;
36
FOLLOW_SCROLLING, // Scroll the screen
37
FOLLOW_SCREEN, // Flip the screen region
38
FOLLOW_SCREENSCROLLING, // Scroll to the next screen
39
FOLLOW_SMOOTH // Follow pixel by pixel
41
void SetFollowMode (FollowMode m);
42
void SetScrollBoundary (double boundary);
44
void ResizeGameArea (int w, int h);
46
/* -------------------- Functions -------------------- */
48
int DefineImage(const char *name, const char *fname,
49
int xoff, int yoff, int padding = 0);
50
int DefineSubImage(const char *name, const char *fname,
51
int xoff, int yoff, Rect r);
52
void DefineRandModel(const char *name, int n, const char *names[n]);
53
void DefineShadedModel(const char *name, const char *model,
55
void DefineOverlayImage (const char *name, int n,
56
const char *images[n]);
57
void DefineComposite (const char *name,
60
void DefineAnim (const char *name, bool loop_p);
61
void AddFrame (const char *name, const char *model, double time);
62
void DefineAlias (const char *name, const char *othername);