Skip to main content
GameDev.net gamedev.net
🔒 Locked

how to use GL.glTexImage2D () using CSGL Library in C#

Started by MGS 2 Nov 30, 2003 at 3:51 PM 1 replies 2.9k views
Original Post
MGS 2
MGS 2
i was wonder how to use this commnad using Bitmaps ;for example 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 ); notice that latest parameter in glteximage2d() is a pointer so this way is not possible ; please help me how can i pass my bmp file in parameter correctly cause i need it in my project ; i,m new opengl programmer ; Thanks New Trend toward emulation [edited by - MGS 2 on November 30, 2003 6:15:03 PM]
New TRen toward emulation
MGS 2
MGS 2
Thanks for help ; now i can understand understand how to do this and thanks for your advice

[edited by - MGS 2 on December 1, 2003 7:23:57 PM]
New TRen toward emulation

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.