flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Windows > OpenGL Extensions | 
  
| Author | 
  | 
              
| 
                  
                   wisepenguin 10 Oct 2006, 07:35 
                  havent tested it, but i imagine like this
 
                  
                Code: wglSwapIntervalEXT_Name db "wglSwapIntervalEXT", 0 wglSwapIntervalEXT rd 1 push wglSwapIntervalEXT_Name invoke wglGetProcAddress mov [wglSwapIntervalEXT], eax ; wglSwapIntervalEXT is defined as a function pointer ; to call it... call [wglSwapIntervalEXT]  | 
              |||
                  
  | 
              
| 
                  
                   Rbraz 10 Oct 2006, 15:49 
                  Thank you very much wisepenguin, it works fine  
                  
                Code: stdcall [wglSwapIntervalEXT],1 ; to enable OGL vertical sync stdcall [wglSwapIntervalEXT],0 ; to disable OGL vertical sync  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.