source: trunk/src/platform/nacl/naclapp.cpp @ 1106

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

core: try to merge Ticker and Emcee. Still not very good.

  • Property svn:keywords set to Id
File size: 1.2 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://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#if defined __native_client__
16#   include <ppapi/cpp/instance.h>
17#   include <ppapi/cpp/module.h>
18#   include <ppapi/cpp/var.h>
19#endif
20
21#include "core.h"
22#include "lolgl.h"
23#include "naclapp.h"
24
25namespace lol
26{
27
28/*
29 * PS3 App implementation class
30 */
31
32class NaClAppData
33{
34    friend class NaClApp;
35
36private:
37#if defined __native_client__
38#endif
39};
40
41/*
42 * Public NaClApp class
43 */
44
45NaClApp::NaClApp(char const *title, ivec2 res, float fps) :
46    data(new NaClAppData())
47{
48#if defined __native_client__
49#endif
50}
51
52void NaClApp::ShowPointer(bool show)
53{
54    ;
55}
56
57void NaClApp::Run()
58{
59    while (!Ticker::Finished())
60    {
61        /* Tick the renderer, show the frame and clamp to desired framerate. */
62        Ticker::TickDraw();
63
64#if defined __native_client__
65#endif
66    }
67}
68
69NaClApp::~NaClApp()
70{
71#if defined __native_client__
72#endif
73    delete data;
74}
75
76} /* namespace lol */
77
Note: See TracBrowser for help on using the repository browser.