wget http://www.icare3d.org/files/GeometryShaderTut/testg80_v1.4.zip
http://kheb.homelinux.org/~michel/x3d/ShaderTests/
glxinfo | grep GL_ARB_fragment_program
http://www.lighthouse3d.com/opengl/glsl/index.php?oglprogram
Testing on debian :
wget -c http://www.lighthouse3d.com/opengl/glsl/examples/glutglsl5.zip cc *.cpp -lglut -lGLEW -lGL -L/usr/local/lib/ && ./a.out # if (GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader)
# http://packages.debian.org/cgi-bin/search_contents.pl?word=gl.h&searchmode=searchfiles&case=insensitive&version=stable&arch=i386 apt-get install xlibmesa-gl-dev
Stupid man pages (of cygwin & Debian 200404) , dont believe liers :
# man glTexImage2D ... 2n+2(border) for some integer n. All implementations ...
I Suppose the 'n' in 2n+2 was noted as an exposant, and the ntroff filter ommited the '^' in 2^n+2
http://sourceforge.net/tracker/index.php?func=detail&atid=100003&aid=949337&group_id=3
<RzR> sous opengl on peut charger des textures de tailles 2n+2 x 2m+2 ? je croyais que c t 2^n x 2^m <rem`> RzR: si t'as l'extension pr avoir des textures rectangulaires :) <RzR> ha c bien ce ke je pensais <rem`> GL_EXT_texture_rectangle, GL_NV_texture_rectangle <RzR> sinon faut faire du padding a la main
makeCheckImage(); GLuint* gltexturename_ = new GLuint[[1]]; glGenTextures(1, gltexturename_ );
glTexImage2D(GL_TEXTURE_2D, 0, 3, 64, 64, 0 , 0, GL_UNSIGNED_BYTE, p_texture_default_ );
assert( glIsTexture( *gltexturename_ ) ); //crash why ?
Do not use Accum buffer :
glBlendFunc(GL_SRC_ALPHA,GL_ONE); glColor4f(1.0f, 1.0f, 1.0f, 0.5);
glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_BLEND); glColor4d(1,1,1, (GLdouble) a); glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_PRIORITY, (GLfloat) a );