Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 908 vs 909 for /trunk/Source Code/Core/Headers/PlatformContext.h

Diff revisions: vs.
  @@ -40,6 +40,7 @@
40 40 class GFXDevice;
41 41 class SFXDevice;
42 42 class PXDevice;
43 + class Application;
43 44 class LocalClient;
44 45 class XMLEntryData;
45 46 class Configuration;
  @@ -51,7 +52,8 @@
51 52
52 53 class PlatformContext {
53 54 public:
54 - explicit PlatformContext(std::unique_ptr<GFXDevice> gfx,
55 + explicit PlatformContext(Application& app,
56 + std::unique_ptr<GFXDevice> gfx,
55 57 std::unique_ptr<SFXDevice> sfx,
56 58 std::unique_ptr<PXDevice> pfx,
57 59 std::unique_ptr<GUI> gui,
  @@ -65,6 +67,9 @@
65 67 void idle();
66 68 void terminate();
67 69
70 + inline Application& app() { return _app; }
71 + inline const Application& app() const { return _app; }
72 +
68 73 inline GFXDevice& gfx() { return *_gfx; }
69 74 inline const GFXDevice& gfx() const { return *_gfx; }
70 75
  @@ -93,6 +98,8 @@
93 98 inline const DebugInterface& debug() const { return *_debug; }
94 99
95 100 private:
101 + /// Main application instance
102 + Application& _app;
96 103 /// Access to the GPU
97 104 std::unique_ptr<GFXDevice> _gfx;
98 105 /// The graphical user interface