Last change
on this file since 1087 was
1084,
checked in by sam, 12 years ago
|
nacl: the Mandelbrot zoomer is starting to work on NaCl.
|
-
Property svn:keywords set to
Id
|
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://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 | |
---|
25 | namespace lol |
---|
26 | { |
---|
27 | |
---|
28 | /* |
---|
29 | * PS3 App implementation class |
---|
30 | */ |
---|
31 | |
---|
32 | class NaClAppData |
---|
33 | { |
---|
34 | friend class NaClApp; |
---|
35 | |
---|
36 | private: |
---|
37 | #if defined __native_client__ |
---|
38 | #endif |
---|
39 | }; |
---|
40 | |
---|
41 | /* |
---|
42 | * Public NaClApp class |
---|
43 | */ |
---|
44 | |
---|
45 | NaClApp::NaClApp(char const *title, ivec2 res, float fps) : |
---|
46 | data(new NaClAppData()) |
---|
47 | { |
---|
48 | #if defined __native_client__ |
---|
49 | #endif |
---|
50 | } |
---|
51 | |
---|
52 | void NaClApp::ShowPointer(bool show) |
---|
53 | { |
---|
54 | ; |
---|
55 | } |
---|
56 | |
---|
57 | void NaClApp::Run() |
---|
58 | { |
---|
59 | while (!Ticker::Finished()) |
---|
60 | { |
---|
61 | /* Tick the game */ |
---|
62 | Ticker::TickGame(); |
---|
63 | |
---|
64 | /* Tick the renderer, show the frame and clamp to desired framerate. */ |
---|
65 | Ticker::TickDraw(); |
---|
66 | |
---|
67 | #if defined __native_client__ |
---|
68 | #endif |
---|
69 | |
---|
70 | Ticker::ClampFps(); |
---|
71 | } |
---|
72 | } |
---|
73 | |
---|
74 | NaClApp::~NaClApp() |
---|
75 | { |
---|
76 | #if defined __native_client__ |
---|
77 | #endif |
---|
78 | delete data; |
---|
79 | } |
---|
80 | |
---|
81 | } /* namespace lol */ |
---|
82 | |
---|
Note: See
TracBrowser
for help on using the repository browser.