Need 2d opengl tutorial lazarus / 13-General ---------------------------------------------------------------------- daz · 2008-05-10 23:53 Ok so I found some stuff on the wiki, and it uses GLUT and not the openglcontrol thing. Now, I downloaded GLUT so I'm requesting a tutorial for either GLUT or openglcontrol to draw 2d images and 2d animations. Thanks! I don't want to try to make something 3d.. and I don't really want to draw stuff on a tpanel etc. ---------------------------------------------------------------------- Leledumbo · 2008-05-12 08:19 Drawing images under opengl is slightly different than using LCL controls. You can try to learn from NeHe (in C, unfortunately. But Delphi sources are (mostly) available and compiled unmodified (except for the -Sd compiler option or {$mode delphi} directive). About OpenGLControl, why don't you try the example? ---------------------------------------------------------------------- daz · 2008-05-14 00:43 Well I don't see anything on that site about 2d stuff.. OH and I tried to install the glscene packages in lazarus but I got this error: "C:\Documents and Settings\Administrator.MOOSE- PM13I1X4Q\Desktop\glscene\Source\platform\GLLCLViewer.pas(360,26) Error: Identifier not found "TGLSceneViewer" " which is in gllclviewer. Sigh.. ---------------------------------------------------------------------- Leledumbo · 2008-05-14 04:36 OpenGL is made mostly for 3d graphics handling, so 2d stuff should be emulated in 3d world. It can simply be done by moving your objects in x or y direction only, leaving z as 0. This is not really true for the camera if you want to have zoom effect, because the zooming process is done by moving the camera through z axis. QuoteI tried to install the glscene packages in lazarus but I got this error... Search the forum please, someone has posted the correct way to install GLScene on Lazarus. ---------------------------------------------------------------------- daz · 2008-05-14 21:07 Ok thanks I'm trying to follow something I found here: http://www.laza rus.freepascal.org/modules.php?op=modload&name;=News&file;=article&sid ;=177 Stuck on this: "EDITED glscene\source\platform\gllclviewer changing two occasions of TGLSceneViewer. to TGLSceneViewerLCL. and adding the definition TGLSceneViewer = class(TGLSceneViewerLCL); after the definition of TGLSceneViewerLCL." What exactly does he mean by "..adding the definition [blah] after the definition [blah]" Can you give me an example of that definition? Edit:  Ok believe I found it Now if I try to do what it says I get an error Code: [Select] TGLSceneViewerLCL = class (TWinControl)    TGLSceneViewer = class(TGLSceneViewerLCL);       private          { Private Declarations }          FBuffer : TGLSceneBuffer;          FVSync : TVSyncMode;         Lil snippet so you can see around where I'm at. ---------------------------------------------------------------------- Leledumbo · 2008-05-15 06:27 Hmm.. I think you misunderstood a little. The code should be: Code: [Select] TGLSceneViewerLCL = class(TWinControl)   ... // TGLSceneViewerLCL body end; TGLSceneViewer = TGLSceneViewerLCL; Nested class definition is not allowed. ---------------------------------------------------------------------- daz · 2008-05-15 10:39 Tyvm! GOt it to work now!