PDA

View Full Version : Viewer Program



jjcheng
07-14-2005, 12:43 PM
I helped create a program that is for viewing meshes. Though the program only views on mesh at a time, and now I am trying to make it so that it can view several meshes without having to run several instances of the program.

I am not sure how to do this though, can someone give me some help?

dvm
07-14-2005, 01:52 PM
Well, you could seperate your world coordinates and draw your meshes in various parts, top left, top right etc. You could have a zoom in/out function to allow the user to see a mesh closer.

jjcheng
07-18-2005, 11:08 AM
Is it possible to make the program run multiple instances of the viewer?

07-22-2005, 09:15 AM
Is it possible to make the program run multiple instances of the viewer?You need to clarify your question a little.

1) You can use your window API to create multiple viewport windows/splitters for each view.

2) You can also arrange viewports arbitrarily in opengl by calling glViewport, as dvm pointed out.

Most commercial editors prefer 1.