NOOB: How to blit images & print to coordinates?
NOOB: How to blit images & print to coordinates?
Yep - Noob question. How do I blit images or print text to coordinates? I've already successfully created the Hello World application, along with a counter, and a program that animates a smiley when you press O. Yeah, simple stuff... Anyways, I haven't even blitted yet, so if you can lead me in the right direction atleast there then I'll figure out how to blit to coordinates...
I already know LUA and some other scripting languages (AutoItv3 and ACTS, mostly), but I want to learn C for more flexibility. So far it's not so easy :p
Thanks,
~JDB
I already know LUA and some other scripting languages (AutoItv3 and ACTS, mostly), but I want to learn C for more flexibility. So far it's not so easy :p
Thanks,
~JDB
On blitting - I found a little out, but I'm still stuck. I check the SVN at PSPDev.org and downloaded zlib and libpng. I extracted them and placed both of them in my home/user/** directories, ** being zlib and libpng. I directed cygwin to the zlib directory and entered 'make', and it did so. I went into the libpng scripts directory and copied makefile.cygwin to the parent dir of libpng and renamed it to Makefile - Sent 'make' to the dir, and it installed for a while... Then it said
Help?
I don't really know if I properly installed zlib, let alone libpng.make: *** No rule to make target 'scripts/png32ms.def', needed by 'libpng.def'
Stop.
Help?
Hi JoshDB,
I'm presuming that you downloaded the SDK to somewhere on your HDD.
CD into your zlib folder and type 'make', once that is completed type 'make install' and the necessary files will be copied into your Cygwin PSP folder.
Do exactly the same for libpng, it'll all get copied automatically to the correct folders again with the 'make install' command.
Hope that helps.
Cheers,
71M
I'm presuming that you downloaded the SDK to somewhere on your HDD.
CD into your zlib folder and type 'make', once that is completed type 'make install' and the necessary files will be copied into your Cygwin PSP folder.
Do exactly the same for libpng, it'll all get copied automatically to the correct folders again with the 'make install' command.
Hope that helps.
Cheers,
71M
Install http://tortoisesvn.tigris.org/ and then browse to the libpng folder as usual, right click the libpng folder and select 'Export'
It'll then ask you were you want to download the folder to, nice and easy :)
Cheers,
71M
It'll then ask you were you want to download the folder to, nice and easy :)
Cheers,
71M
You're a godsend, 71M.
I got the files out of the repository. Staright from there. I tried sening 'make' to it (it was in the psptoolchain folder, name 'libpng.' zlib was already installed.), and it gave the same error. I copied the make.filecygwin and renamed it again, and it got further... Still stopped, though.
Damn, I'm thinking of going back to LUA.
I got the files out of the repository. Staright from there. I tried sening 'make' to it (it was in the psptoolchain folder, name 'libpng.' zlib was already installed.), and it gave the same error. I copied the make.filecygwin and renamed it again, and it got further... Still stopped, though.
Damn, I'm thinking of going back to LUA.
Just to make sure you're doing everything right, download www.easy-monkey.co.uk/libpng.rar
Extract the package to c:/temp, open Cygwin, cd into c:/temp/libpng and type make.
On my install it then goes away and compiles libpng correctly.
It'll be interesting to see what it does on your installation.
Cheers,
71M
Extract the package to c:/temp, open Cygwin, cd into c:/temp/libpng and type make.
On my install it then goes away and compiles libpng correctly.
It'll be interesting to see what it does on your installation.
Cheers,
71M
Install Zlib first Rename the folders "zlib-x.x.x" and "libpng-x.x.x" (x.x.x is the version number) to zlib and libpng...put them both in the same parent folder
so you have:
From Install file
this should solve your problem.
so you have:
From Install file
Code: Select all
Your directory structure should look like this:
.. (the parent directory)
libpng (this directory)
INSTALL (this file)
README
*.h
*.c
contrib
gregbook
pngminus
pngsuite
visupng
projects
beos
c5builder (Borland)
visualc6 (msvc)
netware.txt
wince.txt
scripts
makefile.*
pngtest.png
etc.
zlib
README
*.h
*.c
contrib
etc.