Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (46 sloc) 1.472 kb
437584b Jordi Vilalta Prat Added initial scene handling, loading elements just once, not for each f...
jvprat authored
1 /* Residual - A 3D game interpreter
2 *
3 * Residual is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the AUTHORS
5 * file distributed with this source distribution.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11
12 * This library 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 GNU
15 * Lesser General Public License for more details.
16
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20 *
21 * $URL$
22 * $Id$
23 *
24 */
25
26 #ifndef STARK_SCENE_H
27 #define STARK_SCENE_H
28
777bdc2 Einar Johan Trøan Sømåen STARK: Update includes to fix compile
somaen authored
29 #include "common/array.h"
437584b Jordi Vilalta Prat Added initial scene handling, loading elements just once, not for each f...
jvprat authored
30 #include "engines/stark/sceneelement.h"
31
32 namespace Stark {
33
202ef15 Scott Thomas Add some (short) class/method level comments
authored
34 /**
35 * Manager for the current game scene
36 */
437584b Jordi Vilalta Prat Added initial scene handling, loading elements just once, not for each f...
jvprat authored
37 class Scene {
38 public:
39 Scene(GfxDriver *gfx);
40 ~Scene();
41
202ef15 Scott Thomas Add some (short) class/method level comments
authored
42 /**
43 * Render the scene
44 *
45 * @param delta Time offset (in ms) since last frame render
46 */
2da54a0 Scott Thomas Feed time-delta down down to scene elements. Skeletons now animate!
authored
47 void render(uint32 delta);
437584b Jordi Vilalta Prat Added initial scene handling, loading elements just once, not for each f...
jvprat authored
48
49 private:
50 GfxDriver *_gfx;
51 Common::Array<SceneElement *> _elements;
52 };
53
54 } // End of namespace Stark
55
56 #endif // STARK_SCENE_H
Something went wrong with that request. Please try again.