Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: wglSwapIntervalEXT

Hybrid View

  1. #1
    Intern Newbie
    Join Date
    Feb 2012
    Posts
    32

    wglSwapIntervalEXT

    i use wglext for wglSwapIntervalEXT
    but i cant resovle the link error. what dll do i need ofr wglext functions>

  2. #2
    Member Regular Contributor
    Join Date
    Nov 2003
    Location
    Czech Republic
    Posts
    318
    You must obtain a pointer to this functions. It cannot be directly linked. For example use this
    PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = wglGetProcAddress("wglSwapIntervalEXT");
    Last edited by mfort; 05-26-2012 at 12:23 PM. Reason: typo

  3. #3
    Intern Newbie
    Join Date
    Feb 2012
    Posts
    32
    I get that the function was already defined in wglext, and that PROC cant be converted int PFNWGLSWAPINTERVALEXTPROC

  4. #4
    Member Regular Contributor
    Join Date
    Nov 2003
    Location
    Czech Republic
    Posts
    318
    Just cast it to the right type:
    PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) wglGetProcAddress("wglSwapIntervalEXT");

  5. #5
    Intern Newbie
    Join Date
    Feb 2012
    Posts
    32
    thanks man

Posting Permissions

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