mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 10:35:35 -04:00
4ebe69e1fd
The current working directory is changed on the fly when loading/previewing a scene so that every filename in a project is relative to the project directory. Adapted to changes in GDL/GDCore. Added MillionthVector in Credits. git-svn-id: svn://localhost@745 8062f311-0dae-4547-b526-b8ab9ac864a5
48 lines
926 B
C++
48 lines
926 B
C++
/** \file
|
|
* Game Develop
|
|
* 2008-2012 Florian Rival (Florian.Rival@gmail.com)
|
|
*/
|
|
#ifndef RENDERDIALOG_H
|
|
#define RENDERDIALOG_H
|
|
|
|
//(*Headers(RenderDialog)
|
|
#include "wxSFMLCanvas.hpp"
|
|
#include <wx/dialog.h>
|
|
//*)
|
|
class SceneCanvas;
|
|
|
|
/**
|
|
* \brief Window used to mimic a sf::RenderWindow.
|
|
*/
|
|
class RenderDialog: public wxDialog
|
|
{
|
|
public:
|
|
|
|
RenderDialog(wxWindow* parent, SceneCanvas * sceneCanvasNotifiedOnClose = NULL);
|
|
virtual ~RenderDialog();
|
|
|
|
void SetSizeOfRenderingZone(unsigned int width, unsigned int height);
|
|
|
|
//(*Declarations(RenderDialog)
|
|
wxSFMLCanvas* renderCanvas;
|
|
//*)
|
|
|
|
protected:
|
|
|
|
//(*Identifiers(RenderDialog)
|
|
static const long ID_CUSTOM1;
|
|
//*)
|
|
|
|
private:
|
|
|
|
//(*Handlers(RenderDialog)
|
|
void OnClose(wxCloseEvent& event);
|
|
//*)
|
|
|
|
SceneCanvas * toBeNotifiedOnClose; ///< Optional scene canvas that can be notified when the window is closed.
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
#endif
|