Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __wxSFML__
- #define __wxSFML__
- #include <SFML/Graphics.hpp>
- #include <wx/wx.h>
- class wxSFML : public wxControl, public sf::RenderWindow {
- public:
- wxSFML(wxWindow* Parent = NULL, wxWindowID Id = -1, const wxPoint& Position = wxDefaultPosition, const wxSize& Size = wxDefaultSize, long Style = 0);
- virtual ~wxSFML();
- private:
- DECLARE_EVENT_TABLE()
- virtual void OnUpdate();
- void OnIdle(wxIdleEvent&);
- void OnPaint(wxPaintEvent&);
- void OnEraseBackground(wxEraseEvent&);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement