1
DotNet / GTKSharp for SFML
« on: October 07, 2010, 06:32:36 pm »
Thanks a lot man ! I will test it and post result. Thanks a lot again for help !
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Failed to get device context of window -- cannot create OpenGL
using System;
using Gtk;
using SFML.Graphics;
using SFML.Window;
public partial class MainWindow : Gtk.Window
{
public MainWindow () : base(Gtk.WindowType.Toplevel)
{
Build ();
RenderWindow render = new RenderWindow(this.Handle);
render.Clear();
render.Display();
}
protected void OnDeleteEvent (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
}
}