Thread: 2D Programming in OpenGL

  1. #1
    guyver137
    Guest

    2D Programming in OpenGL

    Can someone please point me in the direction a good 2D game programming tutorial for Opengl? I have been to NeHe site, and the OpenGL homepage. However, all these resources are basically for 3D programming on a whole. I much prefer 2D game programming. I would also apperciate any suggestions for a Map Editor for a 2D game as well. If no one has an idea about where to find one of these, I wouldn't mind making one. Thank you in advance for any information you might provide.

  2. #2
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    I would say use SDL if you are just getting into 2D programming. I made my first game in it (its on my geocities website) and it wasn't too hard to learn. I'm planning on making an RPG in the style of either Final Fantasy or Diablo (using very simple gfx of course).

    //napKIN
    "The best way to get answers is to just keep working the problem, recognizing when you are stalled, and directing the search pattern.....Don’t just wait for The Right Thing to strike you – try everything you think might even be in the right direction, so you can collect clues about the nature of the problem."
    -John Carmack

  3. #3
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    usually you do this one of three ways,

    these are described in the most rudimentary sense.

    1. Rasterize everything.

    2. Use textured polygons on an specific type of ortho viewport.

    3. render everything to a texture and then display that.


    i recommend 2 for speed, since 1 is going to be purely software, since virtually no videocards accelerate 2D, and 3, is said to be slow depeding on what you do.
    Last edited by no-one; 01-18-2003 at 09:34 PM.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL and 2D Masking
    By dxfoo in forum Game Programming
    Replies: 7
    Last Post: 03-08-2008, 01:00 PM
  2. Replies: 16
    Last Post: 09-22-2006, 03:39 PM
  3. 2D OpenGL Strategy game
    By Shakti in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 12-15-2005, 12:16 PM
  4. Adding 2D graphics in OpenGL
    By Da-Nuka in forum Game Programming
    Replies: 7
    Last Post: 04-05-2005, 02:26 PM
  5. OpenGL DirectX 2D
    By c++.prog.newbie in forum Game Programming
    Replies: 11
    Last Post: 03-01-2005, 01:54 PM