System.Drawing - what kind of environment

This is a discussion on System.Drawing - what kind of environment within the C# Programming forums, part of the General Programming Boards category; I'm designing a 2D game, and originally decided to do it in C++ because of Graphics libraries. I do however, ...

  1. #1
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913

    System.Drawing - what kind of environment

    I'm designing a 2D game, and originally decided to do it in C++ because of Graphics libraries. I do however, vastly prefer C#, and the System.Drawing namespace andit's associated classes caught my eye, and I am now seriously considering this as a possibility.

    I've seen System.Drawing used in VB to customize a window. But will I be able to use it in a console app? I've been reading on MSDN, and while I'm not yet finished, I haven't seen anything to suggest either way.

    If anyone can recommend a particular good C# graphics tutorial, I would greatly appreciate that also.

    Thanks a lot,
    Sean.

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    You will be able to use it in a console application, but I wonder where you want to paint. A Console itself is text-based...
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    (Yes, I did completely rewrite this post after the third edit, for anyone who's wondering)

    I found a good tutorial on how to use GDI+ and System.Drawing, etc... I just have two more questions about it's usage:

    1) It's not necesarily a console application, but I want it to be full screen, like any other full screen game. Is this possible, and how?

    2) It sounds like GDI and GDI+ are the "Windows" Graphics Driver Interfaces. Does this mean my .NET program won't be able to run on other OSs using something like Mono? I had one idea about maximizing a form and removing all the exit, etc... buttons - would that make it look full screen? I was shying away from this option because that may still have the same problems of being used on Windows only.
    Last edited by sean; 07-21-2004 at 09:40 AM.

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    Any fullscreen application, even your latest DirectX shooter is running in a window. So yes, a fullscreen window is the way to go.

    I'm not sure if Windows.Forms and Drawing are available on other platforms, the easiest way to check this would be downloading Mono and compile a smale BitBlt example form
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  5. #5
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Well as it turns out - GDI+ is just for windowing. Although a full screen borderless window would give me exactly what I wanted, it would remove the cross-platform functionality. DavidP (and indirectly some guys at gamedev) turned me on to SDL (www.libsdl.org), which runs on almost every OS I can think of (except DOS), including portability to old game consoles!!! That things perfect!

    Apparenty Mono is close to finishing it's implementation of Windowing to be put on a Linux platform (although there is debate as to whether or not MS can sue), and then there's also Rotor, put out by MS to run .NET on BSD OSs.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (VC++ related) Unicode or Multi-byte environment?
    By PaulBlay in forum C Programming
    Replies: 3
    Last Post: 05-22-2009, 08:42 AM
  2. Replies: 8
    Last Post: 05-07-2009, 11:31 AM
  3. Replies: 6
    Last Post: 07-21-2008, 03:10 AM
  4. Draw distance through environment mapping
    By VirtualAce in forum Game Programming
    Replies: 1
    Last Post: 05-14-2006, 11:52 AM
  5. What kind of job...
    By Discolemonade in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 08-15-2005, 08:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21