Hi!
    I wrote a program with opengl, now I want to rewrite the program with OSG. 
But I don't know how to rewrite the following code:
 
glGenTextures(1, &texture[l]); 
glBindTexture(GL_TEXTURE_2D, texture[l]);
glTexParameteri(GL_TEXTURE_2D,GL_GENERATE_MIPMAP_SGIS, GL_TRUE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);   
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB_FLOAT16_ATI, WaterTexSize,       
        WaterTexSize, 0, GL_RGBA, GL_FLOAT, pBuf);
 
    This code generates a texture using the data saved in pBuf. How to rewrite 
this code with OSG? 
    Thank you!
                                                         RHX
 
 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to