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 wxSFMLCanvas : public wxControl, public sf::RenderWindow {
- public:
- wxSFMLCanvas(wxWindow* Parent = NULL, wxWindowID Id = -1, const wxPoint& Position = wxDefaultPosition, const wxSize& Size = wxDefaultSize, long Style = 0);
- virtual ~wxSFMLCanvas() {};
- private :
- sf::Texture m_texture;
- sf::Sprite m_sprite;
- 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