Permalink
Browse files

Remove ext_windows.go

  • Loading branch information...
1 parent 868b228 commit 5c213164b06d281c01d01b8e3857101c82df6e23 @ccherng ccherng committed Jul 25, 2012
Showing with 0 additions and 45 deletions.
  1. +0 −45 gl42/ext_windows.go
View
@@ -1,45 +0,0 @@
-// +build windows
-
-package gl42
-
-// #include <stdlib.h>
-// #define WIN32_LEAN_AND_MEAN 1
-// #include <windows.h>
-//
-// #ifndef APIENTRY
-// #define APIENTRY
-// #endif
-// #ifndef APIENTRYP
-// #define APIENTRYP APIENTRY *
-// #endif
-//
-// typedef unsigned char GLboolean;
-// typedef int GLint;
-//
-// void* goglGetProcAddress(const char* name);
-//
-// GLboolean (APIENTRYP ptrwglSwapIntervalEXT)(GLint interval);
-//
-// GLboolean gowglSwapIntervalEXT(GLint interval) {
-// return (*ptrwglSwapIntervalEXT)(interval);
-// }
-//
-// int init_WGL() {
-// ptrwglSwapIntervalEXT = goglGetProcAddress("wglSwapIntervalEXT");
-// if(ptrwglSwapIntervalEXT == NULL) return 1;
-// return 0;
-// }
-import "C"
-import "errors"
-
-func InitWgl() error {
- var ret C.int
- if ret = C.init_WGL(); ret != 0 {
- return errors.New("unable to initialize WGL")
- }
- return nil
-}
-
-func SwapInterval(interval Int) Boolean {
- return (Boolean)(C.gowglSwapIntervalEXT((C.GLint)(interval)))
-}

0 comments on commit 5c21316

Please sign in to comment.