PDA

View Full Version : how creat window opengl in delphi7



karika
07-04-2015, 05:22 AM
hi all ,
this is code c++


#include <GL/glut.h>

int main (int argc , char** argv)

{

glutInit(&argc,argv);

glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);

glutInitWindowPosition(200,200);

glutInitWindowSize(320,320);

glutCreateWindow("My First Window !!);

return 0;

}


but iam using delphi 7....

karika
07-04-2015, 06:13 PM
hi all ,
this is code c++


#include <GL/glut.h>

int main (int argc , char** argv)

{

glutInit(&argc,argv);

glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);

glutInitWindowPosition(200,200);

glutInitWindowSize(320,320);

glutCreateWindow("My First Window !!);

return 0;

}


but iam using delphi 7....
upppppppppppppppppppppppppppppppppppp

Dark Photon
07-04-2015, 08:27 PM
Delphi 7 was released in 2002. Check the docs on your Delphi package. If no hits there, you're going to have to search around on the net and see if you can find anything useful for it 13 years later.

Here are a few web search hits you might check out. Feel free to search for more. Or just use C++.

* http://www.sulaco.co.za/opengl.htm
* http://wiki.delphigl.com/index.php/Archiv:dglOpenGL
* http://wiki.delphigl.com/index.php/dglOpenGL.pas/en
* http://wiki.delphigl.com/