source: trunk/src/platform/xbox/xboxapp.cpp @ 2812

Last change on this file since 2812 was 2787, checked in by sam, 9 years ago

build: fix the X360 port.

File size: 1.3 KB
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://www.wtfpl.net/ for more details.
9//
10
11#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#if defined _XBOX
16#   include <xtl.h>
17#endif
18
19#include "core.h"
20#include "xboxapp.h"
21#include "xboxinput.h"
22
23namespace lol
24{
25
26/*
27 * XboxApp implementation class
28 */
29
30class XboxAppData
31{
32    friend class XboxApp;
33
34private:
35#if defined _XBOX
36#endif
37};
38
39/*
40 * Public XboxApp class
41 */
42
43XboxApp::XboxApp(char const *title, ivec2 res, float fps) :
44    data(new XboxAppData())
45{
46#if defined _XBOX
47    Ticker::Setup(fps);
48    Video::Setup(res);
49
50    /* Autoreleased objects */
51    new XboxInput();
52#endif
53}
54
55void XboxApp::ShowPointer(bool show)
56{
57    ;
58}
59
60void XboxApp::Tick()
61{
62    /* Tick the renderer, show the frame and clamp to desired framerate. */
63    Ticker::TickDraw();
64
65#if defined _XBOX
66    D3DDevice *d3d_dev = (D3DDevice *)g_renderer->GetDevice();
67    d3d_dev->Present(nullptr, nullptr, nullptr, nullptr);
68#endif
69}
70
71XboxApp::~XboxApp()
72{
73#if defined _XBOX
74#endif
75    delete data;
76}
77
78} /* namespace lol */
79
Note: See TracBrowser for help on using the repository browser.