Hello there,
I am New for OpenGL.
I have image information (pixels, color, depth, etc)in the ASCII file. I wanted to display image with the pure openGL cdoe. The file information format is like follow:
image Heiight: 500
Image Width : 500
Object x1 y1 x2 y2 Color(R,G,B) depth
Line1 20 10 20 55 (254,120,126) x
Line2 30 10 60 5 (25,120,226) x
Rect 99 30 200 170 (225,225,225) x
Line3 20 10 20 55 (154,120,126) x
Rect 10 20 100 70 (150,30,150) x
Above is table represents the information of image. I want to display image with OpenGL
How can i do this with OpenGL.
Is there any sample code available? please help me … …
Kedar