This repository has been archived by the owner on Mar 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed device info to store on GPU memory
- Loading branch information
Kurt Robert Rudolph
committed
Apr 21, 2011
1 parent
59e1f4a
commit c5fc2a0
Showing
2 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
#ifndef __RUDY_GL_H__ | ||
#define __RUDY_GL_H__ | ||
|
||
#ifdef _WIN64 | ||
#define GLUT_NO_LIB_PRAGMA | ||
#pragma comment (lib, "opengl32.lib") /* link with Microsoft OpenGL lib */ | ||
#pragma comment (lib, "glut64.lib") /* link with Win64 GLUT lib */ | ||
#endif //_WIN64 | ||
|
||
|
||
#ifdef _WIN32 | ||
/* On Windows, include the local copy of glut.h and glext.h */ | ||
#include "GL/glut.h" | ||
#include "GL/glext.h" | ||
|
||
#define GET_PROC_ADDRESS( str ) wglGetProcAddress( str ) | ||
|
||
#else | ||
|
||
/* On Linux, include the system's copy of glut.h, glext.h, and glx.h */ | ||
#if defined(__APPLE__) || defined(MACOSX) | ||
#include <GLUT/glut.h> | ||
#else | ||
#include <GL/glut.h> | ||
#include <GL/glext.h> | ||
#include <GL/glx.h> | ||
#endif | ||
#define GET_PROC_ADDRESS( str ) glXGetProcAddress( (const GLubyte *)str ) | ||
|
||
#endif //_WIN32 | ||
|
||
|
||
#endif //__RUDY_GL_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters