Questions tagged [sdl.net]

SDL.NET is a set of object-oriented CLS-compliant .NET bindings for the SDL gaming library.

SDL.NET is a set of object-oriented CLS-compliant .NET bindings for the SDL gaming library. It provides high-level access to audio, keyboard, mouse, joystick, TrueType fonts, various image formats, sound mixing, MPEG-1 movies, and 2D video framebuffer.

See also:

14 questions
5
votes
2 answers

moving SDL video surface

Does anyone know how to move my SDL.net video surface around the screen programtically? Surface videoContext = Video.SetVideoMode(1024, 768, 32, false, false, false, true, true); var a =…
gingerbreadboy
  • 7,386
  • 5
  • 36
  • 62
3
votes
1 answer

Why one variable is initialized, but other is null?

I can't understand why one variable initialises ok and other is null, though both methods are described here Surface (System.Drawing.Bitmap bitmap) Create a SdlImage instance from a System.Drawing.Bitmap object. Loads a bitmap from a…
Klemkas
  • 107
  • 1
  • 8
3
votes
3 answers

Different objects added to the list become same

i'm trying to learn C# with graphics, using sdl.net at the moment. I wanted to learn how to create objects on screen, but stuck on this crazy thing for three days. Googled everything i could think of, but can't solve this on my own and i'm asking…
Klemkas
  • 107
  • 1
  • 8
1
vote
1 answer

Colors in SDL acting very weird

I'm making a program in SDL.NET, where I need to draw a filled polygon. I figured it might be good to reuse the polygon surface instead of remaking it every time i need to draw, so I make the surface like this, and then save it to a dictionary…
Bevin
  • 952
  • 6
  • 19
  • 35
1
vote
2 answers

SDL.Net application not working without SDL.NET SDK

I have a game that I have made in C# and it installs and runs as expected under Windows XP. However when I install it on a Windows 7 machine, then it either simply doesn't work (without any error message) or it gives a generic error message. Is…
Christopher B. Adkins
  • 3,499
  • 2
  • 26
  • 29
1
vote
1 answer

SDL.NET runtime without installation?

With plain old sdl in C i would copy the dlls i need into the exe directory and was able to run without install. Now i am using sdl.net. I tried doing that but had no luck. Not even a clue to what dlls are missing as i did in the old C way. How can…
user34537
1
vote
1 answer

How to add sdl.net window to a C# windows form application?

I have a mostly complete C# winform app (it is huge, so I can't really rewrite it from scratch), and I want to add an sdl.net window to it, so as to show some of what my app does in a complex graphical manner (the sdl.net window must in some way get…
1
vote
1 answer

SDL.NET (VB/C#): What should the startup object and application type be?

I eventually couldn't get any further with my program due to the various shortcomings of VB.NET (bad audio support, no reading events in the middle of execution, very weak keyboard input, etc). So I tried SDL.NET 6.1. Despite its terrible…
Exp HP
  • 695
  • 6
  • 24
0
votes
1 answer

Passing in multiple enum flags based on boolean value

In my application I want the user to be able to set various properties from the settings, such as whether the application is fullscreen or whether VSync is enabled, however when creating my window and renderer the flags are passed into a function…
Wolf
  • 53
  • 6
0
votes
1 answer

SDL.NET SDL_Flip() equivalent

SDL has an SDL_Flip() function for swapping screen buffers. What is the equivalent in SDL.NET? There is no Screen.Flip() method.
Buggieboy
  • 4,636
  • 4
  • 55
  • 79
0
votes
1 answer

How to initialize surface variable in sdl.net?

I'm working with Visual C# 2010 Express and SDL.net graphics library. I try to paint on winform with SurfaceControl Class, and can't create an empty surface to draw on. I found only one working example with bitmap, although there is such method in…
Klemkas
  • 107
  • 1
  • 8
0
votes
1 answer

sdl dot net mp3 support?

When I load and play a ogg file I hear sound no problem. When I change no code and specify a file that ends with mp3 I get an SdlException "Unrecognized sound file type". The autocomplete text says it supports wave, mp3, ogg and others but it…
user34537
0
votes
1 answer

Using Video.Screen instead of Surface object in SdlDotNet

Every SDL or SdlDotNet tutorial I have seen has used a defined Surface as the main screen. For example private static Surface videoscreen; videoscreen = SetVideoMode(800, 600, 16, false, false, false,…
DaveH15
  • 1
  • 2
0
votes
1 answer

sdl.net keyboard event not raised on SurfaceControl

I'm using SdlDotNet 6.1 and i love it :) My SurfaceControl WinForm control (pictureBox), i don't receive key up and down events All others events (MouseDown, MouseMotion, Tick) seems working only after call Events.Run() (which lock the…
Baud
  • 182
  • 1
  • 1
  • 8