Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Graphic engine for .NET anyone?

Graphic engine for .NET anyone?

Scheduled Pinned Locked Moved C#
csharpgraphicsc++game-devquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alastair Stell
    wrote on last edited by
    #1

    I would like to build an application which incoporates 2D graphics. Macromedia / Shockwave jumps to mind in terms of the graphic content I would like to aim for. I've considered using DirectX but this seems like overkill, and besides there is presently no C# interface to DirectX and I would need to program in C++ to use the SDK (correct me if this statement is wrong, please!). I'm not out to build a web enabled program and I don't need cross-platform portability. Does anyone know if there is a 2D graphic engine / library out there which works with .NET? (prefereably C# but C++ is okay). Thanks in advance! Only change is constant

    D R S L 4 Replies Last reply
    0
    • A Alastair Stell

      I would like to build an application which incoporates 2D graphics. Macromedia / Shockwave jumps to mind in terms of the graphic content I would like to aim for. I've considered using DirectX but this seems like overkill, and besides there is presently no C# interface to DirectX and I would need to program in C++ to use the SDK (correct me if this statement is wrong, please!). I'm not out to build a web enabled program and I don't need cross-platform portability. Does anyone know if there is a 2D graphic engine / library out there which works with .NET? (prefereably C# but C++ is okay). Thanks in advance! Only change is constant

      D Offline
      D Offline
      David Stone
      wrote on last edited by
      #2

      Have you looked into using the System.Drawing.2D namespace? That is .NET's interface to GDI+. If 2D is all you're going to do, you may just want to use that. David Stone But Clinton wasn't a predictable, boring, aging, lying, eloquent, maintainer-of-the-status-quo. He was a predictable, boring-but-trying-to-look-hip, aging-and-fat-but-seemingly-oblivious-to-it, lying-but-in-sadly-blatant-ways, not-eloquent-but-trying-to-make-up-for-it-by-talking-even-more, bringer-in-of-scary-and-potentially-dangerous-new-policies. And there was also Al Gore. It just wasn't *right*. Shog9

      1 Reply Last reply
      0
      • A Alastair Stell

        I would like to build an application which incoporates 2D graphics. Macromedia / Shockwave jumps to mind in terms of the graphic content I would like to aim for. I've considered using DirectX but this seems like overkill, and besides there is presently no C# interface to DirectX and I would need to program in C++ to use the SDK (correct me if this statement is wrong, please!). I'm not out to build a web enabled program and I don't need cross-platform portability. Does anyone know if there is a 2D graphic engine / library out there which works with .NET? (prefereably C# but C++ is okay). Thanks in advance! Only change is constant

        R Offline
        R Offline
        Rickard Andersson20
        wrote on last edited by
        #3

        Alastair Stell wrote: I've considered using DirectX but this seems like overkill, and besides there is presently no C# interface to DirectX and I would need to program in C++ to use the SDK (correct me if this statement is wrong, please!). I've seen on websites that people has done games in C# using DirectX.... if they're dreaming or what, I don't know! :) But I'm pretty sure it is a DirectX for C#! Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

        1 Reply Last reply
        0
        • A Alastair Stell

          I would like to build an application which incoporates 2D graphics. Macromedia / Shockwave jumps to mind in terms of the graphic content I would like to aim for. I've considered using DirectX but this seems like overkill, and besides there is presently no C# interface to DirectX and I would need to program in C++ to use the SDK (correct me if this statement is wrong, please!). I'm not out to build a web enabled program and I don't need cross-platform portability. Does anyone know if there is a 2D graphic engine / library out there which works with .NET? (prefereably C# but C++ is okay). Thanks in advance! Only change is constant

          S Offline
          S Offline
          Stephane Rodriguez
          wrote on last edited by
          #4

          Many developers have made fine games using VB, thus using C# should be more or less the same. Of course there are bottlenecks. For instance a .Net application needs at least 4 seconds before it starts (time required for the CLR to compile IL code into assembly code). So don't expect much about time response. You have at least two options : - use plenty of ActiveX, for instance the one from Macromedia - use the System.Drawing assembly, even though you'll end up as with Java 1.0 back 4 years ago : in other words, 1. anything you do requires you to manage your own double buffers, and optimized drawing so the screen does not flicker. 2. the object model is primitive : for instance you cannot draw an arrow. 3. Transparency API ? play with caution, some features will work only on W2K/XP systems. 4. DirectX ? never assume that what works fine on your computer will work on someoneelse's computer. That's the conclusion I made after 2 years of DirectX struggle (where the so-called hardware abstraction at the basis of the whole stuff, is in fact a complete lie). Besides that, manipulating all interface versions will require a full-time job just for it.:((


          And I swallow a small raisin.

          1 Reply Last reply
          0
          • A Alastair Stell

            I would like to build an application which incoporates 2D graphics. Macromedia / Shockwave jumps to mind in terms of the graphic content I would like to aim for. I've considered using DirectX but this seems like overkill, and besides there is presently no C# interface to DirectX and I would need to program in C++ to use the SDK (correct me if this statement is wrong, please!). I'm not out to build a web enabled program and I don't need cross-platform portability. Does anyone know if there is a 2D graphic engine / library out there which works with .NET? (prefereably C# but C++ is okay). Thanks in advance! Only change is constant

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            You mite want to consider DirectDraw as it will provide wit an overlay layer if available allowing the CPU to be freed up alot. But its only really worth it if you are using alot of drawing. Alternative is what is said above, using the Shockwave Flash ActiveX control in you application. Search the forum for FLASH , i put some code in a post a while back on how to use the ActiceX control. Hope this helps :) MYrc : A .NET IRC client with C# Plugin Capabilities. See http://sourceforge.net/projects/myrc for more info. :-D

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups