Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 977 vs 978 for /trunk/Source Code/Core/Headers/Application.h

Diff revisions: vs.
  @@ -45,6 +45,16 @@
45 45 class ApplicationTask;
46 46 };
47 47
48 + struct SizeChangeParams {
49 + /// The new width and height
50 + U16 width = 0u;
51 + U16 height = 0u;
52 + /// Is it a window size change or a rendering resolution change?
53 + bool window = false;
54 + /// Is the window that fired the event fullscreen?
55 + bool isFullScreen = false;
56 + };
57 +
48 58 /// Lightweight singleton class that manages our application's kernel and window
49 59 /// information
50 60 class Application {
  @@ -80,8 +90,9 @@
80 90 inline bool mainLoopPaused() const;
81 91 inline void mainLoopPaused(bool state);
82 92
83 - void onChangeWindowSize(U16 w, U16 h) const;
84 - void onChangeRenderResolution(U16 w, U16 h) const;
93 + // Whenever the host window or the rendering resolution is changed, call this
94 + // Use "window" to determine if the window changed size or if the resolution did
95 + void onSizeChange(const SizeChangeParams& params) const;
85 96
86 97 inline void throwError(ErrorCode err);
87 98 inline ErrorCode errorCode() const;