Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
ios_lxs.hpp
1 //////////////////////////////
2 //
3 // File: platform/ios/ios_lxs.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Feb 7 2013
9 // This file is part of Project Labyrinth
10 // This file is going to be released under terms of GNU GPL in near future
11 //
12 //////////////////////////////
13 
14 #ifndef __iOS_LXS_HPP_
15 #define __iOS_LXS_HPP_
16 #include "lxs/coregraphics/camera.hpp"
17 #include "lxs/system/servicethread.hpp"
18 #include "lxs/system/lxs.hpp"
19 namespace LxS
20 {
21  namespace System
22  {
23  class AssetLoader;
24  //! @brief implement iOS class for interfacing between iPhone and LxS codebase
25  //!
26  //! note that this class implementation uses entry-points located in ios_secondary_main.cpp
27  class iOSLxS: public LxS
28  {
29  public:
30  virtual ~iOSLxS();
31  iOSLxS();
32  virtual void DrawFrame();
33  virtual void Init(); // called by ctor;
34  virtual void Deinit(); // called by dtor;
35  //! an event passed from ObjectiveC API
36  void TouchBegan(int x, int y);
37  //! an event passed from ObjectiveC API
38  void TouchMoved(int x, int y);
39 
40  //! an event passed from ObjectiveC API
41  void TouchEnded(int x, int y);
42  //! an event passed from ObjectiveC API
43  void SetWH(int w, int h) {width=w; height=h;}
44  };
45  }
46 
47 }
48 #endif