source: trunk/orbital/orbital.cpp @ 1245

Last change on this file since 1245 was 1245, checked in by sam, 8 years ago

orbital: start implementing the mesh builder features found in the original.

File size: 921 bytes
Line 
1//
2// Orbital
3//
4// Copyright: (c) 2012 Various People
5//
6
7#if defined HAVE_CONFIG_H
8#   include "config.h"
9#endif
10
11#if defined _WIN32
12#   include <direct.h>
13#endif
14
15#if USE_SDL && defined __APPLE__
16#   include <SDL_main.h>
17#endif
18
19#include "core.h"
20#include "debug/fps.h"
21
22using namespace std;
23using namespace lol;
24
25#include "orbital.h"
26#include "mesh.h"
27
28Orbital::Orbital()
29{
30    m.AppendBox(vec3(1.0, 1.0, 1.0));
31    m.Flush();
32}
33
34void Orbital::TickGame(float deltams)
35{
36    WorldEntity::TickGame(deltams);
37}
38
39void Orbital::TickDraw(float deltams)
40{
41    WorldEntity::TickDraw(deltams);
42}
43
44Orbital::~Orbital()
45{
46    ;
47}
48
49int main(int argc, char **argv)
50{
51    Application app("Orbital", ivec2(1024,576), 60.0f);
52
53#if defined _WIN32 && !defined _XBOX
54    _chdir(".."); /* Temporary Win32 hack */
55#endif
56
57    new DebugFps(2, 370);
58    new Orbital();
59    app.ShowPointer(false);
60    app.Run();
61
62    return EXIT_SUCCESS;
63}
64
Note: See TracBrowser for help on using the repository browser.