English Amiga Board


Go Back   English Amiga Board > Other Projects > project.Amiga Game Factory

 
 
Thread Tools
Old 23 January 2019, 23:25   #101
Megatron-UK
Registered User
 
Join Date: Aug 2009
Location: UK
Posts: 30
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?
Megatron-UK is offline  
Old 24 January 2019, 00:01   #102
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by Megatron-UK View Post
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.
Marlon_ is offline  
Old 24 January 2019, 03:21   #103
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Quote:
Originally Posted by Megatron-UK View Post
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!)

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

Last edited by NovaCoder; 24 January 2019 at 03:57.
NovaCoder is offline  
Old 24 January 2019, 11:13   #104
Megatron-UK
Registered User
 
Join Date: Aug 2009
Location: UK
Posts: 30
Quote:
Originally Posted by NovaCoder View Post
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!)

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 is offline  
Old 24 January 2019, 11:15   #105
Megatron-UK
Registered User
 
Join Date: Aug 2009
Location: UK
Posts: 30
Quote:
Originally Posted by Marlon_ View Post
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.
Megatron-UK is offline  
Old 24 January 2019, 12:03   #106
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by Megatron-UK View Post
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.
Marlon_ is offline  
Old 25 January 2019, 00:18   #107
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Quote:
Originally Posted by Megatron-UK View Post
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
NovaCoder is offline  
Old 27 January 2019, 17:59   #108
Megatron-UK
Registered User
 
Join Date: Aug 2009
Location: UK
Posts: 30
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.
Megatron-UK is offline  
Old 05 April 2020, 12:13   #109
olleharstedt
Registered User
 
Join Date: Mar 2020
Location: Hamburg
Posts: 20
Quote:
Originally Posted by Marlon_ View Post
Yes, thank you. I keep saying this, but Amigans tend to not care.

Bump for this. :| Or at least remove the file from Aminet, since it breaks the license agreement.
olleharstedt is offline  
Old 09 June 2020, 03:53   #110
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Quote:
Originally Posted by olleharstedt View Post
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.
NovaCoder is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nova's Blizzard 1260 NovaCoder Hardware pics 32 09 April 2013 08:17
Nova 9: The Return Of Gir Draxon mai HOL data problems 2 21 November 2009 20:18
Nova's 1200 AGA>VGA ...Zetr0 violated! NovaCoder Hardware pics 20 01 September 2009 09:45
No Love Greater than the Love of Moto Zetr0 Hardware pics 15 05 October 2007 18:42
[Fixed] Hard Nova Uukrul HOL data problems 1 17 December 2002 10:12

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:08.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.31399 seconds with 16 queries