Welcome! Log In Create A New Profile

Advanced

How to use png (or any other transparency image) with devkitppc

Posted by xzachtmx 
How to use png (or any other transparency image) with devkitppc
August 09, 2009 05:07PM
Im using devkitppc and ive been reading the tutorials at www.codemii.com and they are great but i couldnt find anything saying how to use png images only jpeg. Is there a tutorial somewhere explaining how to use transparent images in my games?
Re: How to use png (or any other transparency image) with devkitppc
August 09, 2009 05:52PM
There libpng which will render transparent pngs for you. It's not that hard to use.

You can also use libwiisprite, GRRLIB, or libwiigui libraries to more easily render transparent pngs
Re: How to use png (or any other transparency image) with devkitppc
August 09, 2009 07:42PM
ok. I got it all installed... but it appears to be C++ so im confused... i learned C but not C++. Since when does the devkitPro use C++ :S
Re: How to use png (or any other transparency image) with devkitppc
August 09, 2009 08:16PM
C++ is really just C with more features? What code don't you understand? If you post it, I can most likely explain it to you.

Also, for the record, GRRLIB is in C, not C++.
Re: How to use png (or any other transparency image) with devkitppc
August 09, 2009 08:20PM
im using the wiispriteslib ... and my source file is C i dont get how i can combine both languages like that. I know C++ is simmilar but wouldnt it create problems in my C file?
Re: How to use png (or any other transparency image) with devkitppc
August 09, 2009 08:43PM
libwiisprite requires that all files programmed with it are in C++ libwiisprite is not part of devkitPRO

General programming info:
To link in a C file to C++ source code you can
 extern "C" {
   #include "MyCCodeHeader.h"
 }

(This may not work with libwiisprite though)



Edited 1 time(s). Last edit at 08/09/2009 08:43PM by Arikado.
Re: How to use png (or any other transparency image) with devkitppc
August 10, 2009 05:19PM
The simplest thing is just to rename any .c files to .cpp - then they will still work the same but be compiled as C++
Sorry, only registered users may post in this forum.

Click here to login