Qbasicnews.com
July 20, 2019, 11:06:37 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2 3 ... 8
  Print  
Author Topic: yagl freebasic port 0.0.7  (Read 31365 times)
marzecTM
Ancient Guru
****
Posts: 688


« on: December 26, 2005, 05:09:48 AM »

update:
get the latest version at http://goddess.selfip.com/yagl


hello party ppl,

yagl the infamous c++ game library is gonna be wrapped.

as yagl's c++ version is done now i was trying to get a basic wrapper working so yagl can be used in fb/c/whatever. you can find a very early version of it here SEE UPDATE. this tiny thing wraps the complete gfx module plus the keyboard input module. documentation is in the workings, i'm currently writting a programmer's guide which is one big tutorial really plus the doxygen documentation for reference ( which is mostly done ). you can use this already for your gfx stuff, i will add the missing parts that have priority ( complete input module, complete sound module ) tonight if i find the time so you can mess around with it. i think everything is pretty straight forward so you can do some stuff without documentation for now ( mind you documentation is gonna be finished soon to hopefully ).http://
Logged

quote="NecrosIhsan"]

[/quote]
Deleter
Na_th_an
*****
Posts: 1292



WWW
« Reply #1 on: December 26, 2005, 05:27:49 AM »

sweet  Cheesy
Logged

marzecTM
Ancient Guru
****
Posts: 688


« Reply #2 on: December 26, 2005, 05:37:46 AM »

ihope i didn't screw up the packaging :p so tell me wheter you where able to compile the sample heh
Logged

quote="NecrosIhsan"]

[/quote]
SBM Productions
Senior Member
**
Posts: 163


« Reply #3 on: December 26, 2005, 11:29:14 AM »

The link doesn't work
Logged

 am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
marzecTM
Ancient Guru
****
Posts: 688


« Reply #4 on: December 26, 2005, 11:50:34 AM »

my bad, i edited the original post the link works now, stupid me
Logged

quote="NecrosIhsan"]

[/quote]
SBM Productions
Senior Member
**
Posts: 163


« Reply #5 on: December 27, 2005, 12:27:08 PM »

Like all good things in life, it didn't compile the sample. I got the error message cannot find lmingwex or something. Keh?
Logged

 am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
marzecTM
Ancient Guru
****
Posts: 688


« Reply #6 on: December 27, 2005, 12:46:49 PM »

i'm really sorry, i uploaded mingwex to http://ratatoskr.dragonhill.cc/public/projects/libmingwex.a. download this and put it into your freebasic/lib/win32 folder. also make sure that you copy the libraries from yaglwrapper/lib/win32 to your freebasic/lib/win32 folder. you'll be asked to overwritte them, do so.
Logged

quote="NecrosIhsan"]

[/quote]
SBM Productions
Senior Member
**
Posts: 163


« Reply #7 on: December 27, 2005, 03:22:46 PM »

libsndfile-1.dll was not found when I ran the exe. Do I have to compile it separately?
Logged

 am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
marzecTM
Ancient Guru
****
Posts: 688


« Reply #8 on: December 27, 2005, 03:53:55 PM »

as stated in the readme ( i think ) all the dll's are in the bin folder. just copy them over to the path of the exe or to your windows/system32 folder. note that this "release" is not reallya release just a tiny winy bit to get you started on it. a nicely packaged binary only distribution will be available soon. i just want to finish the documentation first and add more samples.
Logged

quote="NecrosIhsan"]

[/quote]
SBM Productions
Senior Member
**
Posts: 163


« Reply #9 on: December 28, 2005, 02:49:51 AM »

why is there a purple-ish tinge around all my sprites? Is that because of anti-aliasing? Cuz the rotated, scaled sprite has some stray purple pixels that look glitchy.
Logged

 am part of the legion of n00b. We are numerous if dumb. We will enslave you all!
marzecTM
Ancient Guru
****
Posts: 688


« Reply #10 on: December 28, 2005, 07:33:00 AM »

this is already fixed, i happened to only have my old laptop with me when i wrote the wrapper and compiled it with an outdated version of the library. the problem is that i used bilinear interpolation on the sprites in the ( very ) old version of yagl which takes the four neighbouring pixels into account. so at the border between a pink ( invisible/colorkeyed ) pixel and a normal pixel of the sprite those get mixed and the pink is taken into the average pixel color.

that interpolation is turned off now in the latest version resulting in a bit less quality when rotating and scaling ( which is still better than any software rotated scaled sprite :p ) and the pink edges are gone.

also note that as i said this above release is just a teaser really. the signatures of the methods will stay the same but the actual library will be replaced maybe this week already with a real release build containing the complete input library, sound library and gfx library (wrapper wise ).

i also noticed that fb is using gcc 3.2 on winblows which is incompatible to the library as it is compiled with 3.4.2. in this gcc release same changes where made to the rtlib. this *might* cause problems if you overwrite the library files of freebasic with the ones i provide.

i'm really sorry for all the inconvinience, next time i don't throw out a not even beta release of that stuff.
Logged

quote="NecrosIhsan"]

[/quote]
marzecTM
Ancient Guru
****
Posts: 688


« Reply #11 on: January 04, 2006, 12:11:16 AM »

finally have a nice easy to use package for the fbwrapper which currently features the complete graphics module pluse the keyboard and mouse module so basically all you need to get your feed wet. Zire and shadowolf already tested it and Zire might use it for fieldview ( possibly delaying the outcome of a first demo further... ). the fb wrapper is currently win32 only due to a lack of a testing system ( my ubuntu cd's will arive this week i hope.. )

http://ratatoskr.dragonhill.cc/public/projects/yaglfb.rar
http://ratatoskr.dragonhill.cc/public/projects/yaglfb.zip

this includes the library file(s) and include file needed plus a users guide in pdf format. i provide rar and zip as some ppl prefer one over the other so chose, the content is the same.

please report any bugs or leaks you find in this thread. i'm probably adding the sound, joystick and networking module tomorrow so you have a the fully working thing in your hands. i still need to finish documenting the sound and networking module, it's a #%$@^&* lot of work.

also responses to this thread are more than welcome otherwise this will probably die the same death as fbirclib

on a sidenode: i used yagl for a very small game project i had going for the qbxl 48h compo

http://ratatoskr.dragonhill.cc/public/projects/asteroids3d.zip
http://ratatoskr.dragonhill.cc/public/projects/asteroids3d.rar

it's a simple 3d asteroids "clone" ( well not really it sucks ) showing the capablities of yagl. note that the 3d graphics are *NOT* done with yagl ( that's plain old opengl ), but the rest is. however integration of yagl with opengl is easy. you can have a look at the c++ sources ( which are a mess given the time limit ) here

http://ratatoskr.dragonhill.cc/public/projects/asteroids3dsrc.rar

well thx for reading this
Logged

quote="NecrosIhsan"]

[/quote]
marzecTM
Ancient Guru
****
Posts: 688


« Reply #12 on: January 06, 2006, 02:58:58 AM »

for those that didn't follow the thread on fb.net the fb wrapper has been updated a couple of times now. probably the last update till february ( univ. work is calling )

the wrapper now wraps the following modules of the c++ version

+ full graphic module
+ full input module
+ full sound module

the documentation is also covering those three modules completely. the latest version can be downloaded from the links in my last post.

i could really need some people that write small samples and maybe translate the documentation to freebasic ( it's currently in c++ with a notes file describing the differences between the c++ original and the fb wrapper ). it is a lot of work todo as a one man show :p

big thanks to nodtveidt for also forcing yagl on people.

you can find the latest version here ( zip or rar whatever you prefer rar is smaller.. )

http://ratatoskr.dragonhill.cc/public/projects/yaglfb.rar
http://ratatoskr.dragonhill.cc/public/projects/yaglfb.zip
Logged

quote="NecrosIhsan"]

[/quote]
NecrosIhsan
Been there, done that
*****
Posts: 1191



« Reply #13 on: January 07, 2006, 12:11:39 PM »

This is going in just about all my FB stuff from now on. Cheesy
Logged

\__/)
(='.'=) Copy bunny into your signature to
(")_(") help him gain world domination.
Adigun A. Polack
Ancient Guru
****
Posts: 691



WWW
« Reply #14 on: January 07, 2006, 06:45:08 PM »

To marzecTM:

I have to say, your game library here in FreeBASIC is looking very good so far, and very fast too, seriously speaking!!  Cheesy  And hey, with the documentation all set up and a couple of your tests that I have tried within yagl, this is really shaping up to be one powerful piece of work, man!

See you later, and real good work so far on the lib!!!  :cool:=b !




- Adigun Azikiwe Polack
One of the Founders of Aura Flow ::: Continuing Developer of Frantic Journey
Current Developer of Star Angelic Slugger ::: Webmaster of the AAP Official Projects Squad
Original Creator of the The New FreeBASIC 8-Bit Palette Machine and AFlib2 - Aura Flow Library 2
Logged

url=http://dhost.hopto.org/aapproj/][/url]
Your *official* home of the FreeBasic GFX Demo Central, now holding over 150 FB graphics demos so far!!!  Cheesy !
Pages: [1] 2 3 ... 8
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!