source: trunk/src/platform/nacl/nacl-app.cpp @ 2183

Last change on this file since 2183 was 2183, checked in by sam, 10 years ago

build: fix the WTFPL site URL in all code comments.

  • Property svn:keywords set to Id
File size: 1.1 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#include "core.h"
16
17#include "nacl-app.h"
18#include "nacl-instance.h"
19
20namespace lol
21{
22
23/*
24 * PS3 App implementation class
25 */
26
27class NaClAppData
28{
29    friend class NaClApp;
30
31private:
32#if defined __native_client__
33#endif
34};
35
36/*
37 * Public NaClApp class
38 */
39
40NaClApp::NaClApp(char const *title, ivec2 res, float fps) :
41    data(new NaClAppData())
42{
43    Ticker::Setup(fps);
44#if defined __native_client__
45#endif
46}
47
48void NaClApp::ShowPointer(bool show)
49{
50    ;
51}
52
53void NaClApp::Run()
54{
55#if defined __native_client__
56    NaClInstance::MainSignal();
57#endif
58
59    /* Wait forever */
60    Queue<int, 1> q;
61    q.Pop();
62}
63
64NaClApp::~NaClApp()
65{
66#if defined __native_client__
67#endif
68    delete data;
69}
70
71} /* namespace lol */
72
Note: See TracBrowser for help on using the repository browser.