PDA

View Full Version : DLL Using OpenGl



nilu12
07-22-2008, 03:04 AM
Hello,

I am new to OpenGL. I have to create a dll using OpenGL that will take the pdc from an application and set the camera and other properties of the AutoCAD(ViewPort) so that AutoCAD can draw pointcloud efficiently.

dletozeun
07-22-2008, 03:15 AM
please excuse my ignorance, but what is pdc?

Zengar
07-22-2008, 04:11 AM
If I understand you correctly you want to write an Autocad plugin. I doubt that anyone here can help you with that. Please ask some Autocad people...

nilu12
07-22-2008, 05:16 AM
Context Device (CDC*) is class in VC++.Pdc can be an Object of this Class which helps to draw on canvas.

nilu12
07-22-2008, 05:19 AM
Yes, you are right, but the thing is the Points,Camera Angle and other view Port properties would be passed to my DLL and I will have to render it.I am new to OpenGL and do not know the various classes available GLUT Library.

nilu12
07-22-2008, 05:22 AM
sorry class of MFC

dletozeun
07-22-2008, 08:11 AM
Ok thank you nilu12.

I am not sure to understand, you need to call opengl commands to draw in the autoCAD viewport or do you draw in a seprate window?

First case, Zengar is right and you should read how to write a AutoCAD plugin, I doubt that you have to render directly in in the viewport.

Second case, if you need information about glut, this tutorial (http://www.lighthouse3d.com/opengl/glut/) is good. Then, you can find more information about opengl in NeHe tutorials.