mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
switch back to ARB functions with glext include
This commit is contained in:
parent
9095508238
commit
d394035e7e
5 changed files with 10 additions and 6 deletions
|
@ -5,8 +5,10 @@ project(interface)
|
|||
if (APPLE)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreServices -framework Carbon")
|
||||
set(GLUT_HEADER_INCLUDE "<GLUT/glut.h>")
|
||||
set(GL_EXT_INCLUDE "<OpenGL/glext.h>")
|
||||
else (APPLE)
|
||||
set(GLUT_HEADER_INCLUDE "<GL/glut.h>")
|
||||
set(GLUT_HEADER_INCLUDE "<GL/gl.h>")
|
||||
set(GL_EXT_INCLUDE "<GL/glext.h>")
|
||||
endif (APPLE)
|
||||
|
||||
configure_file(InterfaceConfig.h.in ${PROJECT_BINARY_DIR}/includes/InterfaceConfig.h)
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
#ifndef interface__InterfaceConfig__
|
||||
#define interface__InterfaceConfig__
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES 1
|
||||
#include @GLUT_HEADER_INCLUDE@
|
||||
#include @GL_EXT_INCLUDE@
|
||||
|
||||
#endif
|
||||
|
|
|
@ -57,9 +57,9 @@ void Cloud::render() {
|
|||
glPointSize( maxSize );
|
||||
|
||||
|
||||
glPointParameterfv( GL_POINT_DISTANCE_ATTENUATION, particle_attenuation_quadratic );
|
||||
glPointParameterf( GL_POINT_SIZE_MAX, maxSize );
|
||||
glPointParameterf( GL_POINT_SIZE_MIN, 0.001f );
|
||||
glPointParameterfvARB( GL_POINT_DISTANCE_ATTENUATION_ARB, particle_attenuation_quadratic );
|
||||
glPointParameterfARB( GL_POINT_SIZE_MAX_ARB, maxSize );
|
||||
glPointParameterfARB( GL_POINT_SIZE_MIN_ARB, 0.001f );
|
||||
|
||||
glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE );
|
||||
glEnable( GL_POINT_SPRITE_ARB );
|
||||
|
|
|
@ -95,7 +95,7 @@ void render_vector(glm::vec3 * vec)
|
|||
glEnd();
|
||||
float particle_attenuation_quadratic[] = { 0.0f, 0.0f, 2.0f }; // larger Z = smaller particles
|
||||
|
||||
glPointParameterfv( GL_POINT_DISTANCE_ATTENUATION, particle_attenuation_quadratic );
|
||||
glPointParameterfvARB( GL_POINT_DISTANCE_ATTENUATION_ARB, particle_attenuation_quadratic );
|
||||
|
||||
glEnable(GL_POINT_SMOOTH);
|
||||
glPointSize(10.0);
|
||||
|
|
|
@ -598,7 +598,7 @@ void display(void)
|
|||
Audio::render(WIDTH, HEIGHT);
|
||||
|
||||
//drawvec3(100, 100, 0.15, 0, 1.0, 0, myHead.getPos(), 0, 1, 0);
|
||||
glPointParameterfv( GL_POINT_DISTANCE_ATTENUATION, pointer_attenuation_quadratic );
|
||||
glPointParameterfvARB( GL_POINT_DISTANCE_ATTENUATION_ARB, pointer_attenuation_quadratic );
|
||||
|
||||
// myFinger.render();
|
||||
|
||||
|
|
Loading…
Reference in a new issue