2013-07-29 07:13:03 -04:00
|
|
|
|
|
|
|
// BiomeViewWnd.h
|
|
|
|
|
|
|
|
// Declares the cBiomeViewWnd class representing the window that displays biomes
|
|
|
|
|
2013-11-28 09:57:34 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2013-07-29 07:13:03 -04:00
|
|
|
#include "WndProcThunk.h"
|
|
|
|
#include "BiomeRenderer.h"
|
|
|
|
#include "BiomeCache.h"
|
|
|
|
#include "Pixmap.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-11-28 09:57:34 -05:00
|
|
|
// fwd:
|
|
|
|
class cBiomeGen;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-29 07:13:03 -04:00
|
|
|
class cBiomeViewWnd
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cBiomeViewWnd(void);
|
|
|
|
|
|
|
|
bool Create(HWND a_ParentWnd, LPCTSTR a_Title);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
HWND m_Wnd;
|
|
|
|
CWndProcThunk<cBiomeViewWnd> m_Thunk;
|
|
|
|
|
|
|
|
cBiomeRenderer m_Renderer;
|
|
|
|
cPixmap m_Pixmap;
|
|
|
|
|
2013-11-28 09:57:34 -05:00
|
|
|
/// The generator that is to be visualised
|
|
|
|
cBiomeGen * m_BiomeGen;
|
|
|
|
|
2013-07-29 07:13:03 -04:00
|
|
|
bool m_IsLButtonDown;
|
|
|
|
POINT m_MouseDown;
|
|
|
|
|
2013-11-28 09:57:34 -05:00
|
|
|
|
|
|
|
void InitBiomeView(void);
|
|
|
|
|
2013-07-29 07:13:03 -04:00
|
|
|
LRESULT WndProc(HWND a_Wnd, UINT a_Msg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
// Message handlers:
|
|
|
|
LRESULT OnClose (void);
|
|
|
|
LRESULT OnCommand (WPARAM wParam, LPARAM lParam);
|
|
|
|
LRESULT OnLButtonDown(WPARAM wParam, LPARAM lParam);
|
|
|
|
LRESULT OnMouseMove (WPARAM wParam, LPARAM lParam);
|
|
|
|
LRESULT OnLButtonUp (WPARAM wParam, LPARAM lParam);
|
|
|
|
LRESULT OnPaint (void);
|
|
|
|
LRESULT OnTimer (WPARAM wParam);
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|