English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   project.Amiga Game Factory (https://eab.abime.net/forumdisplay.php?f=69)
-   -   Nova's SDL Hack (AGA love) (https://eab.abime.net/showthread.php?t=69103)

Megatron-UK 23 January 2019 23:25

Using the version of libSDL from:

https://github.com/HenrykRichter/libSDL12_Amiga68k

or

https://github.com/AmigaPorts/libSDL12

... are there any special initialisation functions or parameters to SDL_Init() or SDL_SetVideoMode() in order to use the AGA driver?

I ask as my initial attempt at compiling a simple full-screen SDL utility I'm writing (cross platform from TOS, Amiga OS and Risc OS) built cleanly against that code (surprisingly enough!), but SDL_Init() returns with an error of "Error: No available video device"

Am I using the wrong libSDL release, one that is RTG only? Can someone point me towards the one that does work on AGA only screens?

Marlon_ 24 January 2019 00:01

Quote:

Originally Posted by Megatron-UK (Post 1299829)
Using the version of libSDL from:

https://github.com/HenrykRichter/libSDL12_Amiga68k

or

https://github.com/AmigaPorts/libSDL12

... are there any special initialisation functions or parameters to SDL_Init() or SDL_SetVideoMode() in order to use the AGA driver?

I ask as my initial attempt at compiling a simple full-screen SDL utility I'm writing (cross platform from TOS, Amiga OS and Risc OS) built cleanly against that code (surprisingly enough!), but SDL_Init() returns with an error of "Error: No available video device"

Am I using the wrong libSDL release, one that is RTG only? Can someone point me towards the one that does work on AGA only screens?

https://github.com/AmigaPorts/libSDL12 is based on https://github.com/HenrykRichter/libSDL12_Amiga68k, with some fixes.
NovaCoder doesn't use this, and for some bizarre reason he doesn't want to apply his changes to this one. This one only supports RTG, but has extra functionality to speed up the lib on Vampire. It still works just the same on 680x0.

NovaCoder 24 January 2019 03:21

Quote:

Originally Posted by Megatron-UK (Post 1299829)
Using the version of libSDL from:

https://github.com/HenrykRichter/libSDL12_Amiga68k

or

https://github.com/AmigaPorts/libSDL12

... are there any special initialisation functions or parameters to SDL_Init() or SDL_SetVideoMode() in order to use the AGA driver?

Hi,

This thread is for discussions around my version of the SDL library 1.2.15 for 68k.

Those other versions of 68k SDL don't support AGA.

If you are after doing something on AGA then have a look at http://aminet.net/package/dev/lib/SDL_AGA

This is a cut-down version that only supports a basic implementation so it may not have everything you need.

Unfortunately all 68k SDL ports are a bit buggy (even mine!) :guru

I'm currently trying to fix up my old AGA port and make it work better.

Megatron-UK 24 January 2019 11:13

Quote:

Originally Posted by NovaCoder (Post 1299875)
Hi,

This thread is for discussions around my version of the SDL library 1.2.15 for 68k.

Those other versions of 68k SDL don't support AGA.

If you are after doing something on AGA then have a look at http://aminet.net/package/dev/lib/SDL_AGA

This is a cut-down version that only supports a basic implementation so it may not have everything you need.

Unfortunately all 68k SDL ports are a bit buggy (even mine!) :guru

I'm currently trying to fix up my old AGA port and make it work better.

Yeah, sorry, but I don't need the pre-compiled library - I'm after the modified source code of libSDL you used so that I can build my project for a plain '020 AGA target. Can you send me your modified source please?

I'm not doing anything advanced with SDL - speed isn't terribly important either; it's for a game browser/launcher - functions used are:

SDL_BlitSurface
SDL_DisplayFormat
SDL_Event
SDL_PollEvent
SDL_FillRect
SDL_Flip
SDL_FreeSurface
SDL_GetError
SDL_Init
SDL_LoadBMP
SDL_MapRGB
SDL_Delay
SDL_SetVideoMode

I'm not using timers or audio.

Megatron-UK 24 January 2019 11:15

Quote:

Originally Posted by Marlon_ (Post 1299840)
https://github.com/AmigaPorts/libSDL12 is based on https://github.com/HenrykRichter/libSDL12_Amiga68k, with some fixes.
NovaCoder doesn't use this, and for some bizarre reason he doesn't want to apply his changes to this one. This one only supports RTG, but has extra functionality to speed up the lib on Vampire. It still works just the same on 680x0.

Okay, thanks for clearing that up. Hopefully the modified source to the AGA version will be released, since the GPL v2 it is licensed under requires this in the event of distribution of a modified binary or library.

Marlon_ 24 January 2019 12:03

Quote:

Originally Posted by Megatron-UK (Post 1299934)
Okay, thanks for clearing that up. Hopefully the modified source to the AGA version will be released, since the GPL v2 it is licensed under requires this in the event of distribution of a modified binary or library.

Yes, thank you. I keep saying this, but Amigans tend to not care. :laughing

NovaCoder 25 January 2019 00:18

Quote:

Originally Posted by Megatron-UK (Post 1299933)
Yeah, sorry, but I don't need the pre-compiled library - I'm after the modified source code of libSDL you used so that I can build my project for a plain '020 AGA target. Can you send me your modified source please?

Hiya,

If you're after the source code for your own port then I already shared my old AGA video driver here https://github.com/AmigaPorts/libSDL...SDL_agavideo.c

From memory, the rest of my port was based on the (very) old 68K SDL sources http://aminet.net/package/dev/misc/SDL-AmigaSrc

Megatron-UK 27 January 2019 17:59

Thanks for pointing that out, however it references 3 or 4 headers that are not there, so it's not going to be possible to compile that code:

#include "amigaos_video_AGA.h"
#include "amigaos_events.h"
#include "amigaos_mouse.h"
#include "amiga_c2p_aga.h"

They're not part of the rest of the Amiga port, so it's pretty useless without them.

olleharstedt 05 April 2020 12:13

Quote:

Originally Posted by Marlon_ (Post 1299943)
Yes, thank you. I keep saying this, but Amigans tend to not care. :laughing


Bump for this. :| Or at least remove the file from Aminet, since it breaks the license agreement.

NovaCoder 09 June 2020 03:53

Quote:

Originally Posted by olleharstedt (Post 1389667)
Bump for this. :| Or at least remove the file from Aminet, since it breaks the license agreement.

If you feel that it must be removed from AmiNet then go ahead and tell them to remove it, it won't bother me much either way.


All times are GMT +2. The time now is 19:29.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.07790 seconds with 11 queries