Results 1 to 2 of 2

Thread: how can I call the function wglSwapIntervalEXT

  1. #1
    Newbie Newbie
    Join Date
    Aug 2014
    Posts
    2

    how can I call the function wglSwapIntervalEXT

    i want to use it, to disable vsync.

    in wglext.h its defined as:

    Code :
    #ifdef WGL_WGLEXT_PROTOTYPES
    extern BOOL WINAPI wglSwapIntervalEXT (int interval);
    extern int WINAPI wglGetSwapIntervalEXT (void);
    #endif /* WGL_WGLEXT_PROTOTYPES */

    When I try to compile the program, I get:

    Code :
    'wglSwapIntervalEXT': identifier not found

  2. #2
    Senior Member Regular Contributor Agent D's Avatar
    Join Date
    Sep 2011
    Location
    Innsbruck, Austria
    Posts
    281
    You have to load a pointer to this function using wglGetProcAddress while the context is current. You may then call the pointer returned by this function.

Similar Threads

  1. Is the following function call valid?
    By Lvl80retpaladin in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-08-2010, 05:14 PM
  2. Offset into all bound VBO's with a function call?
    By Mars_999 in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 09-04-2006, 03:18 AM
  3. [Q] When I call glDeleteTexture function..
    By wonwoolee in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-21-2002, 09:57 AM
  4. call back function for stdin
    By hakko in forum OpenGL: Linux
    Replies: 2
    Last Post: 11-07-2001, 02:29 AM
  5. what is call back function
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-19-2000, 05:03 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