MGS 2
11-30-2003, 02:47 PM
Hi , i was wonder how to load bmp images in C# and pass it as a pointer for GL.glteximage2d() ; for example i want to do like this :
Bitmap BMP = new Bitmap(FILE_Name);
GL.glTexImage2D (GL.GL_TEXTURE_2D ,0,4,BMP.Width ,BMP.Height ,0,GL.GL_RGBA ,GL.GL_UNSIGNED_BYTE ,&BMP );
But that not run ; please help me how to do that correctly case i need it in my project ; the latest parameter is a pointer and can,t know how to do that ; Thanks
Bitmap BMP = new Bitmap(FILE_Name);
GL.glTexImage2D (GL.GL_TEXTURE_2D ,0,4,BMP.Width ,BMP.Height ,0,GL.GL_RGBA ,GL.GL_UNSIGNED_BYTE ,&BMP );
But that not run ; please help me how to do that correctly case i need it in my project ; the latest parameter is a pointer and can,t know how to do that ; Thanks