資源簡介
opengl glee 擴展應用 opengl擴展庫
圖形繪制
代碼片段和文件信息
/***************************************************************************
*
*?GLee.c
*?GLee?(OpenGL?Easy?Extension?library)????????
*?Version?:?5.4
*
*?Copyright?(c)2009??Ben?Woodhouse??All?rights?reserved.
*
*?Redistribution?and?use?in?source?and?binary?forms?with?or?without
*?modification?are?permitted?provided?that?the?following?conditions?are?
*?met:
*?1.?Redistributions?of?source?code?must?retain?the?above?copyright
*?notice?this?list?of?conditions?and?the?following?disclaimer?as
*?the?first?lines?of?this?file?unmodified.
*?2.?Redistributions?in?binary?form?must?reproduce?the?above?copyright
*?notice?this?list?of?conditions?and?the?following?disclaimer?in?the
*?documentation?and/or?other?materials?provided?with?the?distribution.
*
*?THIS?SOFTWARE?IS?PROVIDED?BY?BEN?WOODHOUSE?‘‘AS?IS‘‘?AND?ANY?EXPRESS?OR
*?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE?IMPLIED?WARRANTIES
*?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE?ARE?DISCLAIMED.
*?IN?NO?EVENT?SHALL?BEN?WOODHOUSE?BE?LIABLE?FOR?ANY?DIRECT?INDIRECT
*?INCIDENTAL?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL?DAMAGES?(INCLUDING?BUT
*?NOT?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR?SERVICES;?LOSS?OF?USE
*?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)?HOWEVER?CAUSED?AND?ON?ANY
*?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT?LIABILITY?OR?TORT
*?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE?OF
*?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
*?Web:?http://elf-stone.com/glee.php
*
*?[This?file?was?automatically?generated?by?GLeeGen?7.0
*
***************************************************************************/
#ifdef?_MSC_VER
#pragma?optimize(?“g“?off?)
#endif
#include?
#include?
#include?
#include?“GLee.h“
#if?defined(__APPLE__)?||?defined(__APPLE_CC__)
#include?
#endif
typedef?GLuint(*GLEE_link_FUNCTION)(void);
GLboolean?__GLeeInited=GL_FALSE;
#ifndef?_WIN32
#define?__stdcall??/*?nothing?*/
#endif?
void?*?__GLeeGetProcAddress(const?char?*extname)
{
#ifdef?WIN32
return?(void*)wglGetProcAddress(extname);
#elif?defined(__APPLE__)?||?defined(__APPLE_CC__)
????CFBundleRef?bundle;
????CFURLRef?bundleURL?=?CFURLCreateWithFileSystemPath(kCFAllocatorDefault?CFSTR(“/System/Library/frameworks/OpenGL.framework“)?kCFURLPOSIXPathstyle?true);
????CFStringRef?functionName?=?CFStringCreateWithCString(kCFAllocatorDefault?extname?kCFStringEncodingASCII);
????void?*function;
????bundle?=?CFBundleCreate(kCFAllocatorDefault?bundleURL);
????assert(bundle?!=?NULL);
????function?=?CFBundleGetFunctionPointerForName(bundle?functionName);
????CFRelease(bundleURL);
????CFRelease(functionName);
????CFRelease(bundle);
????return?function;
#else
return?(void*)glXGetProcAddressARB((const?GLubyte?*)extname);
#endif
}
/*?Extension?querying?variables?*/
GLboolean?_GLEE_VERSION_1_2?=?GL_FALSE;
GLbo
- 上一篇:藍牙控制單片機開關
- 下一篇:視頻插幀 幀率上轉換程序 FRUC MCFI
評論
共有 條評論