OpenGL, Linux lazarus / 1-Linux ---------------------------------------------------------------------- Vlad1997 · 2010-02-25 18:08 Where can I get unit OpenGL for Ubuntu? ---------------------------------------------------------------------- sasa · 2010-02-25 18:42 OpenGL in Lazarus? http://wiki.lazarus.freepascal.org/OpenGL Or you can use GLScene. ---------------------------------------------------------------------- Vlad1997 · 2010-02-25 18:53 Thank you:) ---------------------------------------------------------------------- Vlad1997 · 2010-02-25 19:07 In Glut: Code: [Select]procedure glutInit(argcp: PInteger; argv: PPChar); mode_inline;Can't find method. What should I do? ---------------------------------------------------------------------- Wodzu · 2010-02-25 22:21 Hi, This is not a glut procedure. Read tutorial here: http://wiki.freepascal.org/OpenGL_Tutorial ---------------------------------------------------------------------- Vlad1997 · 2010-02-26 08:49 This error occurs when I create any event ---------------------------------------------------------------------- Leledumbo · 2010-02-26 09:30 what error? ---------------------------------------------------------------------- Vlad1997 · 2010-02-26 10:49 Like " 'end' expected but 'mode_inline' found " Code: [Select]OLD_glutGameModeGet:function(mode : GLenum): integer; extdecl; procedure glutInit(argcp: PInteger; argv: PPChar); mode_inline; ---------------------------------------------------------------------- Wodzu · 2010-02-26 10:59 I've reported it already here: http://bugs.freepascal.org/view.php?id=15615 Download latest snapshot and it will be fine ---------------------------------------------------------------------- Vlad1997 · 2010-02-26 11:11 Does not work ... "Widgetset Win32/Win64" - maybe that's why? ---------------------------------------------------------------------- Marc · 2010-02-27 13:20 No, the "mode_inline" modifier is not recognized. No clue what is supposed to do, I never saw it before ---------------------------------------------------------------------- Wodzu · 2010-02-27 15:43 I guess mode_inline is a Delphi inline directive equivalent. ---------------------------------------------------------------------- Vlad1997 · 2010-02-27 18:03 When I start any OpenGL program I see this error: Project raised exception class "Unknown" ---------------------------------------------------------------------- Wodzu · 2010-02-27 18:48 Download a glut.dll and put it to the catalog with your .exe file. ---------------------------------------------------------------------- Vlad1997 · 2010-02-27 19:03 Wodzu, QuoteWhere can I get unit OpenGL for Ubuntu?It is Linux ---------------------------------------------------------------------- Vlad1997 · 2010-02-27 19:07 Thank you! I have installed in the Synaptic. Now all is working ---------------------------------------------------------------------- Wodzu · 2010-02-27 19:11 Glad I could help :-) ---------------------------------------------------------------------- Vlad1997 · 2010-02-27 19:22 Is there a difference between "inline" and "mode_inline"? The same error - " 'end' expected but 'mode_inline' found ". Those links don't help. ---------------------------------------------------------------------- Marc · 2010-02-28 11:42 Yes there is. Inline is a valid modifier, while i never have heard of mode_inline. I don't know something new to fpc, but I guess not. I've never seen modifier with an _ so I guess that this piece of code is a bad translation of some C code. ---------------------------------------------------------------------- Wodzu · 2010-02-28 13:19 Vlad, I've already told you. Download the latest snapshot of Lazarus and it will work. http://www.hu.freepascal.org/lazarus/