301
SFML projects / Re: GIPE Framework
« on: October 12, 2013, 01:04:00 pm »
Now i'm testing all this stuff in Linux (Ubuntu 12.04). Several problems because of migrating from MS VS were solved. Game using GIPE works fine, but not Editor based on wxWidgets. I've modified wxWindow class to return direct handle to X window:
unsigned long wxWindowGTK::GetLowLevelWindow() const
{
return GDK_WINDOW_XID(gtk_widget_get_window(m_widget));
}
Then modified my own wxRenderWindow (natural child of sf::RenderWindow and wxPanel) class:{
return GDK_WINDOW_XID(gtk_widget_get_window(m_widget));
}
void wxRenderWindow::CreateSFMLWindow()
{
#ifdef __WXGTK__
wxWindowGTK* wnd = (wxWindowGTK*) this;
this->create( wnd->GetLowLevelWindow() );
#else
this->create(GetHandle());
#endif
}
So, i have fully functional editor except one big problem - SFML RenderWindow reacts only on MouseEnter and MouseLeave events. I can't get other events from pollEvent(). =( Any ideas why?
{
#ifdef __WXGTK__
wxWindowGTK* wnd = (wxWindowGTK*) this;
this->create( wnd->GetLowLevelWindow() );
#else
this->create(GetHandle());
#endif
}