added OpenCL cloth demo, contributed by AMD.
updated GpuSoftBodySolvers updated DirectCompute cloth demo
This commit is contained in:
34
Demos/OpenCLClothDemo/gl_win.hpp
Normal file
34
Demos/OpenCLClothDemo/gl_win.hpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef __GL_WIN_HDR__
|
||||
#define __GL_WIN_HDR__
|
||||
|
||||
#ifdef _WIN32//for glut.h
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
//think different
|
||||
#if defined(__APPLE__) && !defined (VMDMESA)
|
||||
#include <OpenGL/OpenGL.h>
|
||||
#include <OpenGL/gl.h>
|
||||
#include <OpenGL/glu.h>
|
||||
#include <GLUT/glut.h>
|
||||
#else
|
||||
|
||||
|
||||
#ifdef _WINDOWS
|
||||
#include <windows.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#else
|
||||
#include <GL/glut.h>
|
||||
#endif //_WINDOWS
|
||||
#endif //APPLE
|
||||
|
||||
|
||||
#include <string>
|
||||
|
||||
void goGL(void);
|
||||
void preInitGL(int argc, char ** argv);
|
||||
|
||||
int getVBO( std::string, int size );
|
||||
|
||||
#endif //__GL_WIN_HDR__
|
||||
Reference in New Issue
Block a user