Thread: is win good enough?

  1. #1
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377

    is win good enough?

    I need to make a 2d game with sprites, they all should rotate, scale, alpha blend.
    I'm gonna use double buffering.
    So what do you think is windows good enough for this, i mean is it possible to create
    such game, and have high preformence. I gues it's much slower than DirectDraw.
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    you could use the SDL or Allegro libraries if you find DirectDraw intimidating. They are fast and portable and quite easy to program.

  3. #3
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    but could i use win?
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    but could i use win?
    Yes. Keep in mind it is probably easier to use a graphics library like opengl, but you could certantly do it using the windows GDI functions.

  5. #5
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    and is it gonna be slow like hell, or what??? ( i mean the FPS compared to OpenGL )
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  6. #6
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    >> and is it gonna be slow like hell, or what??? ( i mean the FPS compared to OpenGL )

    It would be slower, yes.

  7. #7
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Rotating bitmaps in GDI and using alpha blending in GDI+ is still going to be extremely slow.

    Use DX or OpenGL.

    GDI is good for creating GUI apps, editors, tools, utilities, word processors, etc, but not really good for large games. You can get away with Tetris or other small games but when it comes to full-scale sprite games it gets a little messy.

  8. #8
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    i thought so...
    well allegro here i come!
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  9. #9
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    acctualy i want to learn DirectX, any good tutorial links?
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  10. #10
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  11. #11
    Registered User
    Join Date
    Mar 2004
    Posts
    220
    If I were you, I would stay far, far away from DirectX. This isn't one of those "DirectX sucks" opinions at all, it's just really not the easiest API to learn.

    OpenGL will create your game with ease, and it will be a hell of alot easier to program in than DirectX. OpenGL's function and variable naming schemes are compact, consistent, and understandable. Compared to DirectX, OpenGL is alot easier to learn and understand from the start.

    The learning curve for DirectX is just a bit steeper than with OpenGL. DirectX is a very powerful API, but the features you'll be using in your game will be much easier to program with the OpenGL API.
    Last edited by Tronic; 01-02-2006 at 12:39 PM.
    OS: Windows XP Pro CE
    IDE: VS .NET 2002
    Preferred Language: C++.

  12. #12
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    SDL uses OpenGL, therefor i will use SDL!
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  13. #13
    Registered User
    Join Date
    Mar 2004
    Posts
    220
    Excellent! SDL is also alot simpler than using OpenGL directly. XD.
    OS: Windows XP Pro CE
    IDE: VS .NET 2002
    Preferred Language: C++.

  14. #14
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    Do you know any good tutorials?
    The ones on site are german (two of them), and others don't cover graphics.
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  15. #15
    Registered User
    Join Date
    Mar 2004
    Posts
    220
    Man....this is so wrong =/. I sware, someone hates me somewhere. I've lost all of my cool links -_-; First the MP3 Encoding / Decoding API, and now my SDL tutorial...gah. Maybe I'll find it again x.x, but I can't promise anything.
    OS: Windows XP Pro CE
    IDE: VS .NET 2002
    Preferred Language: C++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Good C++ books for a begginer
    By Rare177 in forum C++ Programming
    Replies: 13
    Last Post: 06-22-2004, 04:30 PM
  2. win api literature
    By DMaxJ in forum Windows Programming
    Replies: 5
    Last Post: 04-30-2004, 03:25 PM
  3. Good sound storage method
    By VirtualAce in forum Game Programming
    Replies: 1
    Last Post: 10-14-2003, 05:18 AM
  4. linked list recursive function spaghetti
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2003, 02:53 PM
  5. Anyone Know any Good VC++/C++ Win tuts?
    By ii3ejoe in forum C++ Programming
    Replies: 2
    Last Post: 02-09-2002, 11:23 AM