Re: [fpc-pascal] Looking for SDL_opengl header

2010-12-08 Thread Darius Blaszyk
On Tue, 2010-12-07 at 19:15 -0500, Andrew Haines wrote:
 On 12/07/10 18:23, Darius Blaszyk wrote:
  Has anyone ever converted the SDL_opengl header to FPC? Couldn't find it
  in the repository, but perhaps someone knows if it is part of another
  project.
  
 
 Is there one included with jedi sdl??
Couldn't find it there, although there are some examples with SDL and
OpenGL available with Jedi-SDL. So perhaps I don't need a specific
SDL_opengl header (I'm porting a C app).

Darius

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Working Free Pascal android JNI example

2010-12-08 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said:
  In fact I think this is one of the more easy things.
  The main problem seems to me that you need to support things like pointers,
  which is something deeply embedded in Pascal.
 
  I think the suitable RTL is a reference to an earlier discussion about
  this subject, where this (pointers) was also said, and that maintaining an
  native RTL without pointers was not desirable.
 
 I think 'RTl' is way too limited in scope. 

It goes of course even more for libraries above that level. I don't see any
future for code sharing (rtl,libs) between bytecode and native. I've seen
the mess with Delphi.NET on the delphi side, and don't want a slippery slope
in that direction.

The pointers are just the first thing. Object model, RTTI etc are next.

But if the overlap with the bytecode generator is only in the compiler, then
that satisfies me, and is it something for the compiler devels to decide. 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Working Free Pascal android JNI example

2010-12-08 Thread Jürgen Hestermann

Matt Emson schrieb:
Native is bad, and only come in to existence to compete with other 
platforms with purely native compilation -
I disagree. Just the opposite. There were already lots of attempts to 
create a processor independend programming layer (i.e. USCD-Pascal with 
the p-code in the seventies) but none of them survived very long. They 
all had a great disadvantage: Bad performance. And it is quite evident, 
that if you would have a universal API layer then all processors would 
be the same. There would be no need to create new processors because 
they all would compute the same commands from the one and only API 
layer. I doubt that this idea will survive long.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] 2D Dynamic arrays and BlockRead

2010-12-08 Thread Jürgen Hestermann



STat = Array[0..W-1] Of Single ; { Static array }
DST = Array Of STat ; { One dimension dynamic, the other static }
D2T = Array Of Array Of Single ; { Two dynamic dimensions }

STat always means the address starting with STat[0] (context 
independend).

Also DST always means the address where DST[0].
Nope, there is a difference between DST and DST[0]. DST won't give you 
the first element.
Yes, you are right. I missread the definition. What I had in mind was 
that the first level of the array being static and only the second one 
dynamic but actualy it was vice versa.


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Looking for SDL_opengl header

2010-12-08 Thread Matt Emson

On 08/12/2010 09:42, Darius Blaszyk wrote:


Couldn't find it there, although there are some examples with SDL and
OpenGL available with Jedi-SDL. So perhaps I don't need a specific
SDL_opengl header (I'm porting a C app).

Darius



Did you try here? http://www.freepascal-meets-sdl.net/
Or here? http://www.pascalgamedevelopment.com/content.php

Also, I used to work with a guy called Dominique Louis (he now owns 
Savage Software, who seem to still be around) and he was an extremely 
big Delphi/Pascal game development advocate. I believe he had a hand in 
the Jedi SDL conversion, at least for FreePascal. It might be worth 
trying to get in contact with him. He might even be on this list.


M

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Looking for SDL_opengl header

2010-12-08 Thread Paul Nicholls
- Original Message - 
From: Matt Emson memson.li...@googlemail.com

To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org
Sent: Thursday, December 09, 2010 4:11 AM
Subject: Re: [fpc-pascal] Looking for SDL_opengl header



On 08/12/2010 09:42, Darius Blaszyk wrote:


Couldn't find it there, although there are some examples with SDL and
OpenGL available with Jedi-SDL. So perhaps I don't need a specific
SDL_opengl header (I'm porting a C app).

Darius



Did you try here? http://www.freepascal-meets-sdl.net/
Or here? http://www.pascalgamedevelopment.com/content.php

Also, I used to work with a guy called Dominique Louis (he now owns 
Savage Software, who seem to still be around) and he was an extremely 
big Delphi/Pascal game development advocate. I believe he had a hand in 
the Jedi SDL conversion, at least for FreePascal. It might be worth 
trying to get in contact with him. He might even be on this list.




You can also find Dominique on these forums:

www.pascalgamedevelopment.com

See his profile page here:

http://www.pascalgamedevelopment.com/member.php?10-savage

and here is Savage Software:

http://www.savagesoftwaresolutions.com/

He is/was the main guy doing the Jedi-SDL project :)

cheers,
Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Looking for SDL_opengl header

2010-12-08 Thread Michalis Kamburelis
Darius Blaszyk wrote:
 Has anyone ever converted the SDL_opengl header to FPC? Couldn't find it
 in the repository, but perhaps someone knows if it is part of another
 project.
 

SDL_opengl.h is just (one of the) cross-platform ways to include OpenGL
stuff in C programs. We don't need it in FPC, just use GL, GLU, GLExt
units as usual.

(BTW, Jedi-sdl indeed includes also a version of GL, GLU, GLExt units,
but these are (at least, were not) suitable for FPC. See my notes at the
bottom of http://wiki.lazarus.freepascal.org/Talk:FPC_and_SDL).

Michalis
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal