Page 1 of 2 12 LastLast
Results 1 to 10 of 26

Thread: Which OpenGL Version to use for 2d games

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Which OpenGL Version to use for 2d games

    Ok, I would like to make a simple 2d game in OpenGL. I have followed a few OpenGL 2 tutorials and think I could get my head around it. Is it worth learning opengl 3 or 4 simply for a 2d game?

  2. #2
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    if your just making 2d games probable not, you should check out zengl it might save you some time

  3. #3
    Quote Originally Posted by 3Shrike3 View Post
    Ok, I would like to make a simple 2d game in OpenGL. I have followed a few OpenGL 2 tutorials and think I could get my head around it. Is it worth learning opengl 3 or 4 simply for a 2d game?
    You may want OpenGL 2 for compatibility with some older hardware, but if you are going to use raw OpenGL, if you stick with OpenGL 3 (Core functionality), it will be much less confusing and you will learn modern OpenGL a lot faster. My suggestion is to learn OpenGL 3 (ignore anything that is lower than this) and stick with it. As a bonus, you will find transition into OpenGL ES (iOS, Android) easier, should you decide later to pursue it.

  4. #4
    Was it that some of OpenGL 2 and earlier commands don't even work on OpenGL ES?

  5. #5
    Quote Originally Posted by User137 View Post
    Was it that some of OpenGL 2 and earlier commands don't even work on OpenGL ES?
    Yes, that's right. Fixed-function pipeline don't work in OpenGL ES 2 along with some other deprecated functionality. This is why if you stick to core OpenGL 3, you get relatively clean API, which should be mostly exchangeable with OpenGL ES 2.

    OpenGL ES 1.1 still has some legacy functions, but it is a deprecated API.

  6. #6
    How do I load the dglopengl.pas file into my game as there is no .lpk?

  7. #7
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    you can make your own .lpk and add it to the list

  8. #8
    Since it's not including any components or such there is no need for a package. Just add it to your uses clausel and put it in a directory where Lazarus can find (either where your game's sources are located or any of Lazarus' search paths).

  9. #9
    Ok, so I've decided to learn opengl 3+. Noob question time: So I have to install dglOpenGL and what should I use for windowing if I want my game to be cross-platorm? Because glut is old I think.

  10. #10
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    http://www.spacesimulator.net/index.php?p=home
    I don't think we have any multi platform solutions at this time sdl2 would be a good choice if we had working header files. I'm using xlib at the moment. there is enough here to get you started if you speak a little C++

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •