Why you should use OpenGL and not DirectX

0 favourites
  • OpenAL is sweet, I can tell firsthand (also: EPIC uses it)

    OOIS I keep hearing about, they say its good but haven't seen any real games that use it.

  • Here's how you draw a quad in OpenGL:

    glVertex3f(0,0,0); // top left corner
    glVertex3f(1,0,0); // top right corner
    glVertex3f(1,1,0); // bottom right corner
    glVertex3f(0,1,0); // bottom left corner
    You might also notice this essentially naturally is a batching system.

    You'll find out that this is called Immediate Mode in OpenGL and is currently deprecated, as it is horribly slow. The fast form is pretty much the same as Microsoft. It's optimal for drawing bunches of things. Meshes shouldn't change most of the time anyway, only transforms.

    Edit: why is it slow? because you send all the data to the video card for each frame. The other mode (batched?) is in DirectX's fashion, as you get everything buffered in the video card, indexing avoids duplicate vertexes thus saving precious VRAM and then you just instance those buffers, which frees up a WHOLE BUNCH of bandwidth. Going with immediate mode would make the OpenGL version slower than the DirectX version.

    List of OpenGL ways of drawing (some are named as extensions and now may be core to OGL4)


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Wow, that's quite a bump.

    From the "new posts" page, it looked like Deadeye had posted!!!!

    I didn't think it was him.

    He's been gone a couple of months now.


Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)