Drawing points held in a text file

Hi,

I am trying to write an application that displays a 3D cube that can display points plotted within it, like a scatterplot. I am using OpenGL with MFC c++ although I am new to OpenGL, and relatively new to MFC. I have my 3D cube rendered to the screen and can rotate it with the mouse however I am having problems displaying the data points within the cube. I have tried using the Serialize function in MFC to get the coordinates from the text file and transferring them from variables into glVertex3f() however does not seem to work!

Is there a structure, array …, available in OpenGl that will handle this for me or a more appropriate one in c++ that is compatible with glVertex3f()?

Any help would be much appreciated as I am really stuck with this.

Thanks in advance for assistance.

Admin can you please delete one of these messages as I have double posted in error.

Sorry and thanks

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.