sdl4fp-users Mailing List for SDL4Freepascal (Page 2)
Brought to you by:
trixx
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(30) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(4) |
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(6) |
Aug
(26) |
Sep
(3) |
Oct
(1) |
Nov
|
Dec
(3) |
2006 |
Jan
(8) |
Feb
(15) |
Mar
(4) |
Apr
(21) |
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2007 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
From: Matthias <ma...@gm...> - 2006-04-22 15:49:39
|
Hi there. I have strange behaviour if I blit outside screen area. I used = SDL_SETCLIPRECT to define the clipping area (the error described next = occurs if I don't define clip area, too). The clip area is exactly the = screen area (it returns TRUE).=20 I noticed that if I clipped an image outside the area and later try to = blit it to the visible area the image won't be seen.=20 Next I tried to clip an image (200 x 200) at a position (for example = x=3D 200, y=3D -100) so it would be partially in visible area and other = part outside screen area. Then, as expected, the partial part inside = screen area is shown. - But if I try to clip it to another part of the = screen, so the whole image should be seen, only the partial part is = seen.=20 Most curious thing about this: I blitted the image, after the clipping = half outside the screen as described before, at position (0,0)... = instead of an [200 x 200]-Image with the first part (200 x 100) cleared = I just got the shown part at (0,0) so it seems as if the image got cut = or shrinked by half. But if I check the value of width and height of = image it stayed 200 x 200. I am really not sure how to explain this.=20 Any hints how to let images be blitable after blitting them to outside = area? What is the reason why it does not work as described? Thanks a lot! Greets, Matthias |
From: Matthias <ma...@gm...> - 2006-04-22 15:31:54
|
Thanks. ----- Original Message ----- From: "Elio Cuevas Gómez" <el...@mi...> To: <sdl...@li...> Sent: Saturday, April 22, 2006 3:43 AM Subject: Re: [Sdl4fp-users] Fast access to surfaces on heap? In practice there isn't really a big diference. You'll save some memory if you use only one surface which is good. El Mié 19 Abr 2006 13:25, Matthias escribió: > Hi there, > > Well I would like to know if it leads to faster access (eg for blitting) > if > you have several images on one surface (lets say for a sprite) and blit > them using rects or is it faster if the images of the sprite are > seperately > in separated surfaces? > > Thanks. > Matthias ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 _______________________________________________ Sdl4fp-users mailing list Sdl...@li... https://lists.sourceforge.net/lists/listinfo/sdl4fp-users |
From: Elio C. <el...@mi...> - 2006-04-22 01:41:05
|
In practice there isn't really a big diference. You'll save some memory if = you=20 use only one surface which is good. El Mi=E9 19 Abr 2006 13:25, Matthias escribi=F3: > Hi there, > > Well I would like to know if it leads to faster access (eg for blitting) = if > you have several images on one surface (lets say for a sprite) and blit > them using rects or is it faster if the images of the sprite are seperate= ly > in separated surfaces? > > Thanks. > Matthias |
From: Matthias <ma...@gm...> - 2006-04-19 18:25:23
|
Hi there, Well I would like to know if it leads to faster access (eg for blitting) = if you have several images on one surface (lets say for a sprite) and = blit them using rects or is it faster if the images of the sprite are = seperately in separated surfaces? Thanks. Matthias |
From: Matthias <ma...@gm...> - 2006-04-03 20:50:46
|
Hi there. Made new page update of my sdl4fp tutorial page. Any feedback welcome.=20 Greets, Matthias |
From: Matthias <ma...@gm...> - 2006-03-27 01:24:03
|
Hi there, got a problem. I load a common 24 bit bitmap graphic file to an image (SDL_LOADBMP) = then the surface should have surface^.format.bitsperpixel of 24 but = instead I got 32, why? Thanks for your effort and help. Greets, Matthias |
From: Matthias <ma...@gm...> - 2006-03-12 16:37:58
|
Thanks for your help! Matthias ----- Original Message ----- From: "Florian Sievert" <ph...@gm...> To: <sdl...@li...> Sent: Tuesday, February 28, 2006 10:40 PM Subject: Re: [Sdl4fp-users] SDL_net support? > Hi, >>> I would like t try internet programming. Anyhow I couldn't find any unit >>> for net support? In original SDL there is a header called SDL_NET. Is >>> there >>> any translation yet for free pascal? >>> >> >> SDL_Net is a diferent library, not part of SDL, but usually used with it. >> I >> think there is a translation in Jedi, but i have never used it. > Yes, the JEDIs do have a SDL_Net port and I used it in a project > already. No problem so far. It's save to use. > > Regards, > Florian > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Sdl4fp-users mailing list > Sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdl4fp-users > |
From: Daniel F M. <dmo...@gr...> - 2006-03-04 20:32:37
|
On Fri, 2006-02-10 at 10:09 +0100, Andreas K. Foerster wrote: > Hello, >=20 > I am new on this list. I am the author of the software package AKFQuiz. > The program grquiz in this package can be compiled with SDL4Freepascal. >=20 > Homepage:=20 > http://akfoerster.de/akfquiz/ >=20 > You can see the interface I have written for SDL4fp in this file: > http://akfoerster.de/akfquiz/src/sdlgrph.pas.html >=20 > I think about also implementing sound support, but I haven't had success > yet. Is there any example code for that on the net? >=20 > I also sometimes use GNU Pascal. So most parts of AKFQuiz can also be > compiled with GNU Pascal. Are there plans to port SDL4fp to GNU Pascal? Andreas: It would be nice to port this library to GNU Pascal, however I have no experience with it. So probably there will be no GNU Pascal ports unless some GNU Pascal programmer wants to contribute that work (in that case I will be glad to include that support) Regards, Daniel --=20 "Why program by hand in five days what you can spend five years of your life automating." -- Terrence Parr, ANTLR author |
From: Daniel F M. <dmo...@gr...> - 2006-03-04 20:29:58
|
On Tue, 2006-02-28 at 19:51 +0100, Matthias wrote: > Hi Samuel, > =20 > thanks for your answer. Do you know why I don't have to allocate > surface pointer even though it is a pointer, too? You usually write: var my_surface: PSDL_Surface; ... my_surface :=3D SDL_CreateRGBSurface (...); And the function SDL_CreateRGBSurface allocates the surface. So, you are allocating it, you just didn't know. D. --=20 "Why program by hand in five days what you can spend five years of your life automating." -- Terrence Parr, ANTLR author |
From: Matthias <ma...@gm...> - 2006-02-28 21:45:39
|
Thanks for your fast replies. Greets, Matthias |
From: Florian S. <ph...@gm...> - 2006-02-28 21:41:07
|
Hi, >> I would like t try internet programming. Anyhow I couldn't find any unit >> for net support? In original SDL there is a header called SDL_NET. Is there >> any translation yet for free pascal? >> > > SDL_Net is a diferent library, not part of SDL, but usually used with it. I > think there is a translation in Jedi, but i have never used it. Yes, the JEDIs do have a SDL_Net port and I used it in a project already. No problem so far. It's save to use. Regards, Florian |
From: Elio C. <el...@mi...> - 2006-02-28 20:57:19
|
El Mar 28 Feb 2006 12:59, Matthias escribi=F3: > Hi there! Hi! > > I would like t try internet programming. Anyhow I couldn't find any unit > for net support? In original SDL there is a header called SDL_NET. Is the= re > any translation yet for free pascal? SDL_Net is a diferent library, not part of SDL, but usually used with it. I= =20 think there is a translation in Jedi, but i have never used it. I'm plannin= g=20 i translate SDL_net for SDL4FP sometime in the future, but i don't have muc= h=20 time right now, of course any help is apreciated if you want to=20 volunteer :-). > > Thanks for any hints! > > Greets, > Matthias > > PS.: Otherwise i have to use other units independent of SDL4Freepascal I > think. What do you think about Lightwheight Network unit? > (http://members.chello.sk/ales/about.html) I have never heard of that, so i don't know. |
From: Matthias <ma...@gm...> - 2006-02-28 18:59:14
|
Hi there! I would like t try internet programming. Anyhow I couldn't find any unit = for net support? In original SDL there is a header called SDL_NET. Is = there any translation yet for free pascal?=20 Thanks for any hints! Greets, Matthias PS.: Otherwise i have to use other units independent of SDL4Freepascal I = think. What do you think about Lightwheight Network unit? = (http://members.chello.sk/ales/about.html) |
From: Matthias <ma...@gm...> - 2006-02-28 18:52:25
|
Hi Samuel, thanks for your answer. Do you know why I don't have to allocate surface = pointer even though it is a pointer, too? Bye, Matthias ----- Original Message -----=20 From: Samuel Lid=E9n Borell=20 To: sdl...@li...=20 Sent: Saturday, February 25, 2006 11:05 PM Subject: Re: [Sdl4fp-users] Event handling Hi You're using a pointer that you haven't allocated yet (then it will be = NIL). Either you have to allocate it like this: VAR event_test:pSDL_EVENT; BEGIN New(event_test); Or you can use a record variable and pass it as a pointer to the = SDL_PollEvent function (this is what the C code does): USES SDL, SDL_VIDEO, SDL_EVENTS; VAR event_test: SDL_EVENT; ... SDL_INIT(SDL_INIT_VIDEO); ... WHILE SDL_POLLEVENT(@event_test)=3D1 do BEGIN CASE event_test.eventtype OF SDL_KEYDOWN: ... SDL_EVENTQUIT: ... END; END; /Samuel Matthias wrote:=20 Anytime the compiler gets to the line with expression = event_test^.eventtype it stops because protection fault. Actually = event_test^.eventtype should store an integer-value but allocating it to = a variable of such kind will also lead to abortion. What am I doing wrong? Thanks for your help. Matthias |
From: <sam...@br...> - 2006-02-25 22:05:53
|
Hi You're using a pointer that you haven't allocated yet (then it will be NIL). Either you have to allocate it like this: VAR event_test:pSDL_EVENT; BEGIN New(event_test); Or you can use a record variable and pass it as a pointer to the SDL_PollEvent function (this is what the C code does): USES SDL, SDL_VIDEO, SDL_EVENTS; VAR event_test: *SDL_EVENT*; ... SDL_INIT(SDL_INIT_VIDEO); ... WHILE SDL_POLLEVENT(*@*event_test)=1 do BEGIN CASE event_te*st.eve*nttype OF SDL_KEYDOWN: ... SDL_EVENTQUIT: ... END; END; /Samuel Matthias wrote: > Anytime the compiler gets to the line with expression > event_test^.eventtype it stops because protection fault. Actually > event_test^.eventtype should store an integer-value but allocating it > to a variable of such kind will also lead to abortion. > > What am I doing wrong? > > Thanks for your help. > > Matthias |
From: Matthias <ma...@gm...> - 2006-02-25 19:27:54
|
Hi there! I have tried to figure out how to use the event handling in SDL. I finally tried to translate c code. But anyhow I am running anytime = into a runtime error (216, dereferencing NIL pointer). Here is the example code you can find in many variations in the = internet. C CODE BEGIN: while(SDL_PollEvent(&event)){ /* Loop until there are no events left on = the queue */ switch(event.type){ /* Process the appropiate event type */ case SDL_KEYDOWN: /* Handle a KEYDOWN event */ =20 printf("Oh! Key press\n"); break; case SDL_MOUSEMOTION: . . . C CODE END; Here is what i tried: FP CODE BEGIN: ... USES SDL, SDL_VIDEO, SDL_EVENTS; VAR event_test:pSDL_EVENT; ... SDL_INIT(SDL_INIT_VIDEO); ... WHILE SDL_POLLEVENT(event_test)=3D1 do BEGIN CASE event_test^.eventtype OF SDL_KEYDOWN: ... SDL_EVENTQUIT: ... END; END; ... FP CODE END; Anytime the compiler gets to the line with expression = event_test^.eventtype it stops because protection fault. Actually = event_test^.eventtype should store an integer-value but allocating it to = a variable of such kind will also lead to abortion. What am I doing wrong? Thanks for your help. Matthias |
From: Matthias <ma...@gm...> - 2006-02-25 18:19:22
|
I am :), at least. ----- Original Message ----- From: "James Mills" <pro...@sh...> To: <sdl...@li...> Sent: Friday, February 24, 2006 11:21 PM Subject: Re: [Sdl4fp-users] Anybody there? > On Thu, Feb 23, 2006 at 09:33:33PM +0100, Andreas K. Foerster wrote: >> Hello, > > Hi There :) > >> is there anybody on this list? >> I just wonder, why nobody answers my mail. > > Yes there are people on this list. I don't know > how many... > > cheers > James > > -- > -- > -"Problems are Solved by Method" > - > - James Mills <pro...@sh...> > - HomePage: http://shortcircuit.net.au/~prologic/ > - Phone: +61732166379 > - Mobile: +61404270962 > - Skype: therealprologic > - MSN: pro...@sh... > - ICQ: 98888663 > - IRC: irc://shortcircuit.net.au#se > > Please avoid sending me Word or PowerPoint attachments. > See http://www.gnu.org/philosophy/no-word-attachments.html > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Sdl4fp-users mailing list > Sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdl4fp-users > |
From: James M. <pro...@sh...> - 2006-02-24 22:21:44
|
On Thu, Feb 23, 2006 at 09:33:33PM +0100, Andreas K. Foerster wrote: > Hello, Hi There :) > is there anybody on this list? > I just wonder, why nobody answers my mail. Yes there are people on this list. I don't know how many... cheers James -- -- -"Problems are Solved by Method" - - James Mills <pro...@sh...> - HomePage: http://shortcircuit.net.au/~prologic/ - Phone: +61732166379 - Mobile: +61404270962 - Skype: therealprologic - MSN: pro...@sh... - ICQ: 98888663 - IRC: irc://shortcircuit.net.au#se Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html |
From: Andreas K. F. <li...@AK...> - 2006-02-24 07:34:10
|
Hello, is there anybody on this list? I just wonder, why nobody answers my mail. -- AKFoerster |
From: Andreas K. F. <li...@AK...> - 2006-02-10 09:10:35
|
Hello, I am new on this list. I am the author of the software package AKFQuiz. The program grquiz in this package can be compiled with SDL4Freepascal. Homepage: http://akfoerster.de/akfquiz/ You can see the interface I have written for SDL4fp in this file: http://akfoerster.de/akfquiz/src/sdlgrph.pas.html I think about also implementing sound support, but I haven't had success yet. Is there any example code for that on the net? I also sometimes use GNU Pascal. So most parts of AKFQuiz can also be compiled with GNU Pascal. Are there plans to port SDL4fp to GNU Pascal? I would really appreciate that! I've also considered to switch to JediSDL because of their GNU Pascal support. But I'm afraid by this license mess they have. As far as I can see they combine code under licenses, which are not compatible to each other: LGPL and MPL - does anybody kow more about that? -- AKFoerster |
From: Elio C. <el...@mi...> - 2006-02-06 05:01:53
|
Done, i added your demo to CVS, it's now demo05.pp in the demos directory. Changed a little to remove the need of unit Crt and used SDL_Timer instead. Thanks for the demo. |
From: Elio C. <el...@mi...> - 2006-02-05 21:57:26
|
I don't know, Daniel is administring the list, but you can send me the demo= =20 and i'll upload it to CVS. El Dom 05 Feb 2006 09:56, Ron Weidner escribi=F3: > --- sdl...@li... wrote: > > Your mail to 'Sdl4fp-users' with the subject > > > > new tutorial / demo > > > > Is being held until the list moderator can review it > > for approval. > > > > The reason it is being held: > > > > Message body is too big: 89016 bytes but there's > > a limit of 25 KB > > > > Either the message will get posted to the list, or > > you will receive notification of the moderator's > > decision. > > I sent a message to the list with a demo / tutorial > attachment a few days ago. The intention was to see > if someone would add the demo to the examples that > ship with SDL4FP. It includes the tutorial, a > precompiled binary for Linux, and the commented source > code. > > However, this message seems to be trapped, waiting for > an administrator. So, my question is, could someone > tell me how to contribute demos/tutorials? Or will > someone with project files access accept e-mails from > me that I might send once in a while. (demo code / > tutorials) > > > -- > Ronald Weidner > http://www.techport80.com > PHP Software developer for hire. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Sdl4fp-users mailing list > Sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdl4fp-users |
From: Christian S. <csp...@fr...> - 2006-02-05 17:12:50
|
Hmm, you might send the message without the binary :) Am Sonntag 05 Februar 2006 15:56 schrieb Ron Weidner: > --- sdl...@li... wrote: > > Your mail to 'Sdl4fp-users' with the subject > > > > new tutorial / demo > > > > Is being held until the list moderator can review it > > for approval. > > > > The reason it is being held: > > > > Message body is too big: 89016 bytes but there's > > a limit of 25 KB > > > > Either the message will get posted to the list, or > > you will receive notification of the moderator's > > decision. > > I sent a message to the list with a demo / tutorial > attachment a few days ago. The intention was to see > if someone would add the demo to the examples that > ship with SDL4FP. It includes the tutorial, a > precompiled binary for Linux, and the commented source > code. > > However, this message seems to be trapped, waiting for > an administrator. So, my question is, could someone > tell me how to contribute demos/tutorials? Or will > someone with project files access accept e-mails from > me that I might send once in a while. (demo code / > tutorials) > > > -- > Ronald Weidner > http://www.techport80.com > PHP Software developer for hire. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Sdl4fp-users mailing list > Sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdl4fp-users |
From: Ron W. <xec...@ya...> - 2006-02-05 15:56:52
|
--- sdl...@li... wrote: > Your mail to 'Sdl4fp-users' with the subject > > new tutorial / demo > > Is being held until the list moderator can review it > for approval. > > The reason it is being held: > > Message body is too big: 89016 bytes but there's > a limit of 25 KB > > Either the message will get posted to the list, or > you will receive notification of the moderator's > decision. I sent a message to the list with a demo / tutorial attachment a few days ago. The intention was to see if someone would add the demo to the examples that ship with SDL4FP. It includes the tutorial, a precompiled binary for Linux, and the commented source code. However, this message seems to be trapped, waiting for an administrator. So, my question is, could someone tell me how to contribute demos/tutorials? Or will someone with project files access accept e-mails from me that I might send once in a while. (demo code / tutorials) -- Ronald Weidner http://www.techport80.com PHP Software developer for hire. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Daniel F M. <dmo...@ar...> - 2006-01-10 15:53:44
|
On Sat, 2006-01-07 at 12:32 +0000, Christian Speckner wrote: > Well, a possible fix would be to overload the corresponding functions, so > compatibility could be retained... I think that overloading on result types will not work. The compatibility problem is easy to workaround; I changed the longs to longbools because I considered that they make for cleaner codes (They would probably had been long bools in C if C had them ;-) ). However, I know that changes of interfaces in libraries sometimes hurt a lot, so if most of you prefer ints, I'll revert the change. Just say what you think here so I can know. Regards, Daniel -- "Why program by hand in five days what you can spend five years of your life automating." -- Terrence Parr, ANTLR author |