Problems with SimpleOpenGLControl and Devil

View: New views
1 Messages — Rating Filter:   Alert me  

Problems with SimpleOpenGLControl and Devil

by sinosoidal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm porting a OpenGL app made by me in C# to the SimpleOpenGLControl.

Altough the code should be the same without problems, i cant see the
textures in the SimpleOpenGLControl version.

This is the code i'm using:

void loadImages() {
           
            for (int i=0;i<2;i++) {

                Il.ilLoadImage(imagesName[i]);

                Console.WriteLine("Image name: " + imagesName[i] + "
Width: " + Il.ilGetInteger(Il.IL_IMAGE_WIDTH) + " height: " +
Il.ilGetInteger(Il.IL_IMAGE_HEIGHT));

                Gl.glBindTexture(Gl.GL_TEXTURE_2D, i);
               
                images[i] = Ilut.ilutGLBindTexImage();
               
                if (Il.ilGetError()!=0) Console.WriteLine("Image loading
error report: " + Ilu.iluErrorString(Il.ilGetError()));
       
            }
        }

Is there any kind of imcompabilitie when using SimpleOpenGlControl?

Thx,

Nuno
_______________________________________________
Tao-list mailing list
Tao-list@...
http://galactus.ximian.com/mailman/listinfo/tao-list