English Amiga Board


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

 
 
Thread Tools
Old 24 January 2019, 00: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, 01:01   #102
Marlon_
Amiga Programmer

Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Sundsvall, Sweden
Age: 30
Posts: 545
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, 04:21   #103
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,587
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 04:57.
NovaCoder is online now  
Old 24 January 2019, 12: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, 12: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, 13:03   #106
Marlon_
Amiga Programmer

Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Sundsvall, Sweden
Age: 30
Posts: 545
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, 01:18   #107
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,587
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 online now  
Old 27 January 2019, 18: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  
 


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 09:17
Nova 9: The Return Of Gir Draxon mai HOL data problems 2 21 November 2009 21:18
Nova's 1200 AGA>VGA ...Zetr0 violated! NovaCoder Hardware pics 20 01 September 2009 10:45
No Love Greater than the Love of Moto Zetr0 Hardware pics 15 05 October 2007 19:42
[Fixed] Hard Nova Uukrul HOL data problems 1 17 December 2002 11: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 22:57.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.07270 seconds with 15 queries