Updated the C and .Net bindings according to the previous modifications
This commit is contained in:
parent
10ebd94ee7
commit
6676d77ea1
10 changed files with 11 additions and 43 deletions
|
@ -13,10 +13,8 @@ namespace opengl
|
|||
/// </summary>
|
||||
static void Main()
|
||||
{
|
||||
string path = System.IO.Directory.GetCurrentDirectory();
|
||||
|
||||
// Create main window
|
||||
RenderWindow window = new RenderWindow(new VideoMode(800, 600), "SFML.Net OpenGL");
|
||||
RenderWindow window = new RenderWindow(new VideoMode(800, 600), "SFML.Net OpenGL", Styles.Default, new ContextSettings(32, 0));
|
||||
|
||||
// Setup event handlers
|
||||
window.Closed += new EventHandler(OnClosed);
|
||||
|
|
|
@ -15,7 +15,7 @@ Module OpenGL
|
|||
Sub Main()
|
||||
|
||||
' Create main window
|
||||
window = New RenderWindow(New VideoMode(800, 600), "SFML.Net OpenGL (Visual Basic)")
|
||||
window = New RenderWindow(New VideoMode(800, 600), "SFML.Net OpenGL (Visual Basic)", Styles.Default, new ContextSettings(32, 0))
|
||||
|
||||
' Create a sprite for the background
|
||||
Dim backgroundImage = New Image("resources/background.jpg")
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace window
|
|||
static void Main()
|
||||
{
|
||||
// Create the main window
|
||||
Window window = new Window(new VideoMode(640, 480, 32), "SFML.Net Window");
|
||||
Window window = new Window(new VideoMode(640, 480, 32), "SFML.Net Window", Styles.Default, new ContextSettings(32, 0));
|
||||
|
||||
// Setup event handlers
|
||||
window.Closed += new EventHandler(OnClosed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue