~ubuntu-branches/ubuntu/trusty/enigma/trusty-proposed

« back to all changes in this revision

Viewing changes to src/display-lua.pkg

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2013-04-06 14:54:02 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130406145402-jgjrtk7hac8gtvza
Tags: 1.20-dfsg.1-1
* New upstream release (Closes: #704595)
  (Repacked: dropped zipios++ source and main menu music)
* Update watch file, sf.net again.
* Fix documentation links (Closes: #653508)
* Conflict with enigma-level-previews to encourage deinstallation
  (Pregenerated level previews were only used with version 1.01)
* Use dh7 for building instead of CDBS
* Update to policy 3.9.4.0 (no changes)
* Register documentation with doc-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//==================================================  -*- Mode: C++ -*-
2
 
// Copyright (C) 2002,2003 Daniel Heck
3
 
//
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.
8
 
//
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.
13
 
//
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.
17
 
//
18
 
// $Id: display-lua.pkg,v 1.3 2004/05/27 20:30:36 dheck Exp $
19
 
//======================================================================
20
 
 
21
 
$#include "display.hh"
22
 
$#include "d_models.hh"
23
 
$using namespace display;
24
 
$using ecl::Rect;
25
 
$using ecl::Surface;
26
 
 
27
 
 
28
 
Surface *GetSurface (const char *name);
29
 
Surface *CropSurface (const Surface *s, Rect r);
30
 
void     DefineImageModel (const char *name, Surface *s);
31
 
 
32
 
module display
33
 
{
34
 
    typedef int FollowMode;
35
 
    enum 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
40
 
    };
41
 
    void SetFollowMode (FollowMode m);
42
 
    void SetScrollBoundary (double boundary);
43
 
 
44
 
    void ResizeGameArea (int w, int h);
45
 
 
46
 
/* -------------------- Functions -------------------- */
47
 
 
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,
54
 
                           const char *shade);
55
 
    void DefineOverlayImage (const char *name, int n,
56
 
                             const char *images[n]);
57
 
    void DefineComposite (const char *name,
58
 
                          const char *bgname,
59
 
                          const char *fgname);
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);
63
 
}