mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
30 lines
600 B
C++
30 lines
600 B
C++
#ifndef SFMLWIDGET_H_INCLUDED
|
|
#define SFMLWIDGET_H_INCLUDED
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
#include <gtkmm/widget.h>
|
|
#include <gdkmm/general.h>
|
|
|
|
class SFMLWidget : public Gtk::Widget
|
|
{
|
|
protected:
|
|
sf::VideoMode m_vMode;
|
|
|
|
virtual void on_size_allocate(Gtk::Allocation& allocation);
|
|
virtual void on_realize();
|
|
virtual void on_unrealize();
|
|
|
|
Glib::RefPtr<Gdk::Window> m_refGdkWindow;
|
|
public:
|
|
sf::RenderWindow renderWindow;
|
|
|
|
SFMLWidget(sf::VideoMode mode, int size_request=-1);
|
|
virtual ~SFMLWidget();
|
|
|
|
void invalidate();
|
|
void display();
|
|
void show3D();
|
|
};
|
|
|
|
#endif
|