Thread: SDL OpenGL Question! 2D Engine

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    55

    SDL OpenGL Question! 2D Engine

    Hey !

    I am making a 2D RPG.
    So far i have written it in C++, using SDL libraries, but more and more i am finding people using SDL but then using OpenGL for the graphics part of the engine.
    Why is this?
    Can SDL handle an entire games graphics by itself?
    Do people use OpenGL because it's easier?
    I am confused why anyone would use OpenGL for a 2D graphics engine, if SDL can do this on it's own?

    Thanks.

  2. #2
    The Reel Thing
    Join Date
    Jun 2005
    Posts
    44
    OpenGL is hardware accelerated, meaning that it's faster on most of the machines out there than SDL, which uses software for rendering. Also, SDL can't to 3D rendering natively either, without going through OpenGL.
    Bagpipes – putting the fun back in funeral.

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    I think as more and more people find out how simple it is to create both an OpenGL framework and DirectX framework, most choose to create their own.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL and OpenGL
    By ElastoManiac in forum Game Programming
    Replies: 2
    Last Post: 11-22-2006, 04:47 AM
  2. Replies: 5
    Last Post: 11-27-2005, 09:50 PM
  3. Widgets with OpenGL, DirectX or SDL?
    By nickname_changed in forum Game Programming
    Replies: 1
    Last Post: 09-25-2004, 11:33 PM
  4. SDL or GLUT for Opengl?
    By drdroid in forum Game Programming
    Replies: 1
    Last Post: 07-17-2003, 01:54 AM
  5. OpenGL question
    By Malek in forum Windows Programming
    Replies: 1
    Last Post: 09-10-2001, 12:00 PM