Results 1 to 2 of 2

Thread: OpenGL and D3D wrapper

  1. #1
    Member Contributor
    Join Date
    Sep 2006
    Location
    Mexico
    Posts
    63

    OpenGL and D3D wrapper

    Hi,

    probably this has been asked before, just want to know if anybody have experience with both OpenGL and D3D, how easy/difficult would be to make a wrapper for both ?, I know OpenGL but nothing about D3D, I would appreciate if someone can point out some tutorials/docs on learning D3D, and tips on how to do it.
    Basically I want to render primitives and sprites (2D only) with a few blendings (nothing fancy I guess).

    Many Thanks.

  2. #2
    Senior Member OpenGL Pro k_szczech's Avatar
    Join Date
    Feb 2006
    Location
    Poland
    Posts
    1,107

    Re: OpenGL and D3D wrapper

    Wrapper for the basic functionality you mentioned could be written in 2-3 days assuming one knows both DirectX and OpenGL enough and has an idea of how to write such wrapper and what the wrapper's API would look like.

    Main difference is that D3D doesn't have immediate mode - everything is done using vertex arrays.
    Emulating immediate mode in D3D would require a simple functionality - put all data passed in immediate mode into array and call glDrawArray when there's enough elements (array full) or glEnd is called.

    Other differences are mostly related to more advanced functionality.

    If you want to learn D3D then simply download DirectX SDK.

Similar Threads

  1. OpenGL C++ wrapper
    By aqnuep in forum OpenGL: General
    Replies: 22
    Last Post: 11-21-2010, 01:16 PM
  2. .NET wrapper for OpenGL
    By mikeheck in forum OpenGL: Windows
    Replies: 4
    Last Post: 09-12-2010, 01:13 PM
  3. OpenGL wrapper
    By _NK47 in forum OpenGL: User Software
    Replies: 0
    Last Post: 02-16-2009, 10:56 AM
  4. Looking for an OpenGL Wrapper.
    By Vozy in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 04-11-2005, 01:12 PM
  5. opengl to d3d wrapper?
    By azncrip4lif in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 08-23-2004, 10:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean