summaryrefslogtreecommitdiffstats
path: root/Tools/BiomeVisualiser/BiomeVisualiser.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-06 21:43:13 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-06 21:43:13 +0200
commit209ad8702634e72d8cb528d3df181e2300a31115 (patch)
treedd80891eda325a8f21ff9e751d333699e9a9c779 /Tools/BiomeVisualiser/BiomeVisualiser.cpp
parentAdded missing "Colors", Documented the code + Cleanup. (diff)
downloadcuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.gz
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.bz2
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.lz
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.xz
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.zst
cuberite-209ad8702634e72d8cb528d3df181e2300a31115.zip
Diffstat (limited to 'Tools/BiomeVisualiser/BiomeVisualiser.cpp')
-rw-r--r--Tools/BiomeVisualiser/BiomeVisualiser.cpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/Tools/BiomeVisualiser/BiomeVisualiser.cpp b/Tools/BiomeVisualiser/BiomeVisualiser.cpp
new file mode 100644
index 000000000..dc1d490e8
--- /dev/null
+++ b/Tools/BiomeVisualiser/BiomeVisualiser.cpp
@@ -0,0 +1,52 @@
+
+// BiomeVisualiser.cpp
+
+// Implements the cBiomeVisualiser class representing the entire app. Also implements the WinMain() entrypoint
+
+#include "Globals.h"
+#include "time.h"
+#include "BiomeVisualiser.h"
+
+
+
+
+
+int WINAPI WinMain(HINSTANCE a_Instance, HINSTANCE a_PrevInstance, LPSTR a_CmdLine, int a_ShowCmd)
+{
+ cBiomeVisualiser App;
+ return App.Run();
+}
+
+
+
+
+
+cBiomeVisualiser::cBiomeVisualiser(void)
+ // : m_Logger(Printf("BiomeVisualiser_%08x", time(NULL)))
+{
+}
+
+
+
+
+
+int cBiomeVisualiser::Run(void)
+{
+ if (!m_MainWnd.Create(GetDesktopWindow(), TEXT("BiomeVisualiser")))
+ {
+ LOGERROR("Cannot create main window: %d", GetLastError());
+ return 1;
+ }
+
+ MSG msg;
+ while (GetMessage(&msg, NULL, 0, 0))
+ {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ } // while (GetMessage)
+ return msg.lParam;
+}
+
+
+
+