freebasic.net Forum Index
FreeBASIC's Official Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log inLog in

ploadlib - Finished
Goto page 1, 2  Next
 
Post new topic   Reply to topic    freebasic.net Forum Index -> Projects
View previous topic :: View next topic  
Author Message
Thrawn89

PostPosted: Jul 24, 2006 23:20    Post subject: ploadlib - Finished Reply with quote

Hey guys,

Ok, the final version of ploadlib is done, there has been a lot of bugs fixed, it is quick and reliable now

Consult the docs, it has all the syntax explained

In case if you dont know, ploadlib is a one function, PNG loader for FB thats small and easy to use

Changes:
Get Error function
tRNS support
Bugs fixed
Optimized more

ploadlib Download Here

Enjoy
Thrawn
 
Back to top
View user's profile
D.J.Peters
Guru
PostPosted: Jul 25, 2006 0:29    Post subject: Reply with quote

Thrawn89 realy good job i like it.

Joshy
 
Back to top
View user's profile Visit poster's website
relsoft
Master
PostPosted: Jul 25, 2006 1:54    Post subject: Reply with quote

Nice!!! This is great!!!
BTW, the clicky linky in the DBF forums does not work.
 
Back to top
View user's profile Visit poster's website Yahoo Messenger
Thrawn89

PostPosted: Jul 25, 2006 2:57    Post subject: Reply with quote

Thanks rel,

Didnt realize that...all set now,
Thrawn
 
Back to top
View user's profile
Antoni
Master
PostPosted: Jul 25, 2006 3:11    Post subject: Reply with quote

Great job!
 
Back to top
View user's profile Visit poster's website
Clyde

PostPosted: Jul 27, 2006 13:38    Post subject: Reply with quote

Thrawn dude, that is absolutely wonderfull.

I have a question: How do you load pngs as a resource, rather then as a filename please?

Cheers and many thanks,
Clyde.
 
Back to top
View user's profile Visit poster's website
1000101
Guru
PostPosted: Jul 27, 2006 13:50    Post subject: Reply with quote

Just looked at your code and I have to point this out:

You have a horrible memory leak in the code and in the examples in the document.

The memory leak in the library source is in the PLoad function. You allocate and read the file into a memory buffer, but you don't deallocate said buffer after passing it off the the MPLoad function.

The leak in the examples in the document are that you never destroy/deallocate the image buffers (you do however in the example file).

Also, it's spelled license.

Just thought you should be made aware of these things.
 
Back to top
View user's profile
Nodtveidt

PostPosted: Jul 27, 2006 14:32    Post subject: Reply with quote

Now if someone could write up an example of how to use this with a dc, everything would be snazzy. :D
 
Back to top
View user's profile Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Clyde

PostPosted: Jul 27, 2006 19:42    Post subject: Reply with quote

Any joys with this please dudes?
Clyde wrote:

I have a question: How do you load pngs as a resource, rather then as a filename please with Pload?


Cheers and many thanks,
Clyde.
 
Back to top
View user's profile Visit poster's website
Thrawn89

PostPosted: Jul 27, 2006 22:21    Post subject: Reply with quote

At 1000101:
Thank you, its all fixed now...I think, you might want to double check on that

At Nodtveidt:
Whats a dc?

At Clyde:
http://www.freebasic.net/forum/viewtopic.php?t=4978 ;-)

Thrawn
 
Back to top
View user's profile
1000101
Guru
PostPosted: Jul 27, 2006 22:42    Post subject: Reply with quote

A DC is a Device Context. It's a windows thing.
 
Back to top
View user's profile
counting_pine
Site Admin
PostPosted: Jul 29, 2006 15:51    Post subject: Reply with quote

Hi. Been away for a while :)
Sorry, the memory leak in the library is my fault, when I worked on PLoad I set it to use pointers and Allocate instead of arrays, but forgot to add a Deallocate. Thanks very much for finding it and pointing it out.
 
Back to top
View user's profile Send e-mail
counting_pine
Site Admin
PostPosted: Oct 18, 2006 15:30    Post subject: Reply with quote

Here's the latest version of PLoad.
Apart from minor fixes and corrections, PLoad is now fully compatible with the latest versions of FreeBASIC. It also now features some support for paletted screen modes. See the readme for more information.
 
Back to top
View user's profile Send e-mail
ikkejw

PostPosted: Oct 18, 2006 15:44    Post subject: Reply with quote

Great! It still doesn't work for me because of that damn LOF bug, but at least it now gives me PLOAD_FILE_LOAD_ERROR instead of PLOAD_MISCERROR :)
 
Back to top
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
E.K.Virtanen

PostPosted: Oct 18, 2006 15:52    Post subject: Reply with quote

Nice, cool and simple. Works fine on ubuntu.
This is a great one *thumbs up* and thanks.
 
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    freebasic.net Forum Index -> Projects All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



sf.net phatcode