| View previous topic :: View next topic |
| Author |
Message |
|
|
Posted: Jul 24, 2006 23:20 Post subject: ploadlib - Finished |
|
|
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 |
|
 |
|
|
Posted: Jul 25, 2006 0:29 Post subject: |
|
|
Thrawn89 realy good job i like it.
Joshy |
| |
|
| Back to top |
|
 |
|
|
Posted: Jul 25, 2006 1:54 Post subject: |
|
|
Nice!!! This is great!!!
BTW, the clicky linky in the DBF forums does not work. |
| |
|
| Back to top |
|
 |
|
|
Posted: Jul 25, 2006 2:57 Post subject: |
|
|
Thanks rel,
Didnt realize that...all set now,
Thrawn |
| |
|
| Back to top |
|
 |
|
|
Posted: Jul 25, 2006 3:11 Post subject: |
|
|
| Great job! |
| |
|
| Back to top |
|
 |
|
|
Posted: Jul 27, 2006 13:38 Post subject: |
|
|
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 |
|
 |
|
|
Posted: Jul 27, 2006 13:50 Post subject: |
|
|
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 |
|
 |
|
|
Posted: Jul 27, 2006 14:32 Post subject: |
|
|
| Now if someone could write up an example of how to use this with a dc, everything would be snazzy. :D |
| |
|
| Back to top |
|
 |
|
|
Posted: Jul 27, 2006 19:42 Post subject: |
|
|
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 |
|
 |
|
|
|
| Back to top |
|
 |
|
|
Posted: Jul 27, 2006 22:42 Post subject: |
|
|
| A DC is a Device Context. It's a windows thing. |
| |
|
| Back to top |
|
 |
|
|
Posted: Jul 29, 2006 15:51 Post subject: |
|
|
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 |
|
 |
|
|
Posted: Oct 18, 2006 15:30 Post subject: |
|
|
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 |
|
 |
|
|
Posted: Oct 18, 2006 15:44 Post subject: |
|
|
| 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 |
|
 |
|
|
Posted: Oct 18, 2006 15:52 Post subject: |
|
|
Nice, cool and simple. Works fine on ubuntu.
This is a great one *thumbs up* and thanks. |
| |
|
| Back to top |
|
 |
|