Results 1 to 7 of 7

Thread: I wonder how, I wonder why...

  1. #1
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    102

    I wonder how, I wonder why...

    I wonder how I could do a program-box where I can choose graphics card and resolution, that opens before the game starts, I have a voodoo 2 and I can't use it, irritating...

    If anyone knows where I could get these kind of examples...
    CyBBe

  2. #2

    Re: I wonder how, I wonder why...

    The resolution stuff... In widows you would make a dialog for that and then pass the params to your window setup routine.

    The Voodoo stuff... First get the OpenGL stuff for Voodoo2 from 3dfx. Rename the dll to opengl32.dll and copy into the same dir with your executable. Works.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    102

    Re: I wonder how, I wonder why...

    Hude, I've heard that "change the name of the dll" before, but noone have ever told me WHICH file to rename...
    CyBBe

  4. #4

    Re: I wonder how, I wonder why...

    Heh, I guess it's 3dfxgl.dll or something like that.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    102

    Re: I wonder how, I wonder why...

    Sorry, don't work, but thanx anyway...
    CyBBe

  6. #6

    Re: I wonder how, I wonder why...

    Well, I had Voodoo2 some time ago and that's how it worked.

  7. #7
    Senior Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Melbourne,Victoria,Australia
    Posts
    748

    Re: I wonder how, I wonder why...

    Apparently (I read a vague reference to it) you can get the standard OpenGL to open 3dfxvgl.dll (that's the file you rename).

    HOWEVER... You can (if you feel patient) write a wrapper that uses "LoadLibrary()" and "GetProcAddress()" to load what ever library you choose. Heres a snippit of some code I wrote...

    8<-------------------------------------
    // A custom type defined for the wglCreateContext function.
    typedef HGLRC (WINAPI *CREATECONTEXT)(HDC);

    // A variable that becomes the prototype for the wglCreateContext function.
    CREATECONTEXT wglCreateContext;

    // Get the pointer to the address. The pointer in pGLLibrary is the return from LoadLibrary("3dfxvgl.dll")
    wglCreateContext = (CREATECONTEXT)GetProcAddress(pGLLibrary, "wglCreateContext");
    8<-------------------------------------

    The in my code I call wglCreateContext(hDC); as I would normally.

    Hope this helps...

    PS. Yes this is time consuming - I suggest only doing it as you need each function. I can send you what I have if you want.

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