181
DotNet / SFML 2 problem
« on: April 20, 2011, 05:59:26 pm »
Also this is the code i have
And this is how i have the CSFML DLL's set up
Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SFML.Audio;
using SFML.Window;
using SFML.Graphics;
namespace GameBase
{
class main
{
static void OnClose(object sender, EventArgs e)
{
// Close the window when OnClose event is received
RenderWindow window = (RenderWindow)sender;
window.Close();
}
static RenderWindow app;
static void Main(string[] args)
{
// Create the main window
app = new RenderWindow(new VideoMode(800, 600), "SFML window");
app.Closed += new EventHandler(OnClose);
// Start the game loop
while (app.IsOpened())
{
// Process events
app.DispatchEvents();
// Clear screen
app.Clear();
// Update the window
app.Display();
}
}
}
}
And this is how i have the CSFML DLL's set up