Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Help with converting from DarkBASIC to OpenGL

Author
Message
MartinB
22
Years of Service
User Offline
Joined: 13th Jan 2003
Location: United Kingdom
Posted: 13th Jan 2003 12:31
Hi,

I've been a long time user of Dark BASIC and I have written several games that still need quite a lot of work before release (demos can be downloaded from my website). About half a year ago, I decided to remove Windows from my computer in favour of Linux and I have just got back into games programming in the form of OpenGL programming in C, so I can continue writing 3D games.

I wanted to continue with some of my DarkBASIC creations and was wondering if anyone here knew of anything that would help me in converting my existing DarkBASIC code into something that would be usable to me on my Linux system? Or will I just have to re-write the DarkBASIC code I have written in C / OpenGL by hand?

Or maybe there is a DarkBASIC compiler for Linux? (I doubt it but I guess it's worth asking)

Cheers,
Martin
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 13th Jan 2003 12:37
there isn't one right now ... but if you developed an OpenGL engine and then converter code that took a DarkBasic DBA and converted it into OpenGL which inturn was then put through a compiler - as you'd already have the engine and just be converting to code into a form that OpenGL would use (kinda like a function wrapper) then it'd act like a converter.

As there arn't a great deal of DarkBasic functions it would be quite a simple, yet a little lengthy task

Anata aru kowagaru no watashi!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Jan 2003 21:25
You could try running DB under Wine...
MartinB
22
Years of Service
User Offline
Joined: 13th Jan 2003
Location: United Kingdom
Posted: 16th Jan 2003 02:02
Thanks, no luck with WINE and while I'm sure writing a converter would be possible, it is as you mentioned quite a lengthy and somewhat difficult task, especially considering how different OpenGL and Dark BASIC are.

Anyway, I've ended up re-writing my code in OpenGL by hand. I was quite surprised how easy it was to learn OpenGL after having learned DarkBASIC. The only real problem being that it's purely a graphics API, so I'm going to have to learn something else to add sound and music into my games. Maybe I'll learn OpenAL too.

Hey! It compiles! Ship it!
Delta
22
Years of Service
User Offline
Joined: 15th Nov 2002
Location:
Posted: 17th Jan 2003 16:34
I recently switched to Linux also and since then my DB use has hit the floor, I'm still wondering if I should buy DarkMATTER,

I wish DB would make a Linux version, It woud mean I could still use it, Make Linux games and windows games with the same code, Linux NEEDS more games :p

Even if I had a linux program to check my code was correct I woul use it more,

Login to post a reply

Server time is: 2025-05-11 23:21:02
Your offset time is: 2025-05-11 23:21:02