Re: [fpc-pascal]Graphics cards, VGALIB
> I tried the SDL4Freepascal headers and they seem to work. Just can't > see how to display text. And they don't appear to work on Macintosh. > JEDI-SDL supposedly works on a "modified" version of Freepascal on a > Mac. > Any Mac people out there using JEDI-SDL? Anyone have Freepascal > examples? Not yet on a Mac, but I had most examples running on FreeBSD. They are in cvs under projects/contrib/sdl ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]Graphics cards, VGALIB
On 1 sep 2004, at 00:13, Jeff Weeks wrote: I tried the SDL4Freepascal headers and they seem to work. Just can't see how to display text. And they don't appear to work on Macintosh. JEDI-SDL supposedly works on a "modified" version of Freepascal on a Mac. Any Mac people out there using JEDI-SDL? Anyone have Freepascal examples? The main problem is currently that you have to change the Darwin system unit, by renaming the "main" procedure in rtl/bsd/system.pp to "SDLMain" and then recompile the system unit. Of course, afterwards that system unit is only usable to create SDL programs. So we have to implement a way to specify the name of the routine when compiling the program, but that means it must be moved to the main program and "generated" inside the compiler. Because it receives parameters, this is non trivial (unless I hardcode the parameter locations, but that's dirty and non-portable). Jonas ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]Where is the error?
On Wed, 1 Sep 2004, Marc Santhoff wrote: > Am Di, den 31.08.2004 schrieb Michalis Kamburelis um 22:25: > > When you compile using -S2 parameter you are compiling in objfpc mode. > > This mode is not exactly compatible with Delphi. In this particular > > case, the problem is that in objfpc mode method parameters can't have > > the same name as the object properties and fields (that's what > > "Duplicate identifier ..." errors mean). That's often very nice > > safety-check, however it makes many Delphi code invalid in objfpc mode. > > > > Solution is to compile in delphi mode: > >fpc -Mdelphi mat.pas > > works OK. > > This leads me to the question: > > Is it "legal" to link together objects compiled in different modes? (I > haven't tried if it is possible at all ...) > > For example Alan would compile his matrix stuff in delphi mode and link > to other object files compiled in objpas mode? This is not a problem. The generated code is the same, independent of the mode. The mode only affects the parsing, and how identifiers are interpreted. Michael. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]Where is the error?
04-09-01 09.29, skrev [EMAIL PROTECTED] följande: > > > On Wed, 1 Sep 2004, Marc Santhoff wrote: > >> Am Di, den 31.08.2004 schrieb Michalis Kamburelis um 22:25: >>> When you compile using -S2 parameter you are compiling in objfpc mode. >>> This mode is not exactly compatible with Delphi. In this particular >>> case, the problem is that in objfpc mode method parameters can't have >>> the same name as the object properties and fields (that's what >>> "Duplicate identifier ..." errors mean). That's often very nice >>> safety-check, however it makes many Delphi code invalid in objfpc mode. >>> >>> Solution is to compile in delphi mode: >>> fpc -Mdelphi mat.pas >>> works OK. >> >> This leads me to the question: >> >> Is it "legal" to link together objects compiled in different modes? (I >> haven't tried if it is possible at all ...) >> >> For example Alan would compile his matrix stuff in delphi mode and link >> to other object files compiled in objpas mode? > > This is not a problem. The generated code is the same, independent of the > mode. The mode only affects the parsing, and how identifiers are > interpreted. But can Delphi classes be used if you are in e g TP mode ? ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]Where is the error?
Am Mi, den 01.09.2004 schrieb [EMAIL PROTECTED] um 09:29: [...] > > This leads me to the question: > > > > Is it "legal" to link together objects compiled in different modes? (I > > haven't tried if it is possible at all ...) > > > > For example Alan would compile his matrix stuff in delphi mode and link > > to other object files compiled in objpas mode? > > This is not a problem. The generated code is the same, independent of the > mode. The mode only affects the parsing, and how identifiers are > interpreted. Ah, I see. Thank you very much, Marc ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]Where is the error?
On Wed, 1 Sep 2004, Olle Raab wrote: > 04-09-01 09.29, skrev [EMAIL PROTECTED] följande: > > > > > > > On Wed, 1 Sep 2004, Marc Santhoff wrote: > > > >> Am Di, den 31.08.2004 schrieb Michalis Kamburelis um 22:25: > >>> When you compile using -S2 parameter you are compiling in objfpc mode. > >>> This mode is not exactly compatible with Delphi. In this particular > >>> case, the problem is that in objfpc mode method parameters can't have > >>> the same name as the object properties and fields (that's what > >>> "Duplicate identifier ..." errors mean). That's often very nice > >>> safety-check, however it makes many Delphi code invalid in objfpc mode. > >>> > >>> Solution is to compile in delphi mode: > >>> fpc -Mdelphi mat.pas > >>> works OK. > >> > >> This leads me to the question: > >> > >> Is it "legal" to link together objects compiled in different modes? (I > >> haven't tried if it is possible at all ...) > >> > >> For example Alan would compile his matrix stuff in delphi mode and link > >> to other object files compiled in objpas mode? > > > > This is not a problem. The generated code is the same, independent of the > > mode. The mode only affects the parsing, and how identifiers are > > interpreted. > > But can Delphi classes be used if you are in e g TP mode ? No. You need objfpc or delphi mode for that. Michael. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]Any OpenGL mesh handling units?
Does anyone know of any mesh handling units for FreePascal? It would be nice if poses/animation were also supported. - JH. _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]Any OpenGL mesh handling units?
Joseph Hewitt wrote: Does anyone know of any mesh handling units for FreePascal? It would be nice if poses/animation were also supported. - JH. You can take a look at my programs at http://www.camelot.homedns.org/~michalis/ I have there programs to handle VRML 1.0 and 3DS files (and basic Wavefront OBJ). Most important is viewer for 3d models, view3dscene, at http://www.camelot.homedns.org/~michalis/view3dscene.php There are also two small games using the same VRML 1.0 code. One of them (lets_take_a_walk) has also spatial sound using OpenAL. There's also command-line raytracer. I consider VRML 1.0 handling almost complete. Also conversion from 3DS to VRML 1.0 is implemented. Models can be viewed using interactive OpenGL rendering, you can walk in the scene (with collision detection). Also simple raytracer (classic and basic path-tracer) is implemented. Everything is pure ObjectPascal code and compiles and works under Linux, Windows and FreeBSD (someone is also working on porting this to Darwin+PowerPC). Whole sources are available on GNU GPL terms. I was going to move my development to sourceforge.net and to submit all these things to FPC "contributed units" page. But first I wanted to translate many comments in sources to English (as many comments are now in Polish). I wanted to do it in August... but I didn't find enough time. But I will surely do it within a month (or two). Have fun. -- Michalis ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal