Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - michax

Pages: [1]
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 !

2
DotNet / GTKSharp for SFML
« on: April 12, 2010, 03:09:36 am »
Hi,

I tried to include sfml RenderView in Gtk.Window, but i get in Console:

Code: [Select]
Failed to get device context of window -- cannot create OpenGL

Some details:
App launched without any exceptions. GTK window appeard but without
black screen of RenderWindow.

Is it possible to put SFML in Window or Custom Widget ? I tried both with
the same "bad" result. I tried to include RenderWindow in Window Form and it work flawless.

Code of Class extended by Gtk.Window

Code: [Select]

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;
}

}

Pages: [1]