Page 8 of 8 FirstFirst ... 678
Results 71 to 72 of 72

Thread: There's A Direct3D 9.0 Gallium3D State Tracker

  1. #71
    Join Date
    Feb 2009
    Posts
    158

    Default

    You sure can link C to C++. But when you introduce pure (or not) virtual interfaces, then vtables get used.
    Plus, an application that supports multiple renderers (d3d/ogl) will probably call LoadLibrary on d3d9.dll.

  2. #72
    Join Date
    Jan 2010
    Posts
    23

    Default

    Quote Originally Posted by mdias View Post
    an application that supports multiple renderers (d3d/ogl) will probably call LoadLibrary on d3d9.dll.
    That could actually raise a concern under linux. Luckily again for us though, the vtable won't ever change on the C++ objects, as the API has already been decided upon (and somewhat abandoned).
    Looking through some WINE headers reveals that the COM way of doing this is actually exactly the same as your example. That is to say, expose functions as virtual.

    EDIT: On windows though, MS will always provide you with both OpenGL32.dll and d3d[something].dll (which is probably the latest version out anyway), so most developers probably don't care about runtime loading.
    Last edited by zhasha; 01-26-2010 at 01:01 AM.

Posting Permissions

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