How use this function: Image *allocateImage(const Image *image); ?Stef wrote:The "sprite" sample use it in a very transparent fashion. You basically just need to declare your image in resource file with compression parameter and that is done. Then you have all the tools.h file to handle manually decompression but if you use advanced method as VDP_drawImage(..) or VDP_drawImageEx(..) SGDK will handle it by itself (same for the new TileCache feature).
Sega Genesis Dev Kit (SGDK)
Moderator: Stef
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
And the Image structure is build from your IMAGE resources (see the rescomp.txt file for more details)./**
* \brief
* Allocate Image structure which can receive unpacked image data of the specified Image.
* If source is not packed the function only allocate space for simple shallow copy of the source.
*
* \param image
* Source Image we want to allocate the unpacked Image object.
* \return
* The new allocated Image object which can receive the unpacked Image, note that returned image
* is allocated in a single bloc and can be released with Mem_Free(image).<br/>
* <i>NULL</i> is returned if there is not enough memory to store the unpacked image.
*/
Image *allocateImage(const Image *image);
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Oh really ? I do not use any win api stuff so win XP, win 2000 or whatever should not be a problem. I tried to make it cross platform... You have the sources in the tools directory if you want to give a try But in the meantime, can your report me the error you got on win XP ?Mixail wrote:rescomp don't working on Window XP
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
hi nolddor,
You have to use .res file to declare your resources (as the VGM file).
you can look in the provided "sound" sample to have an example
I know it looks less user friendly to do this way but it is far more powerful as you can handle many more different type of resources ans set extra parameters !
You have to use .res file to declare your resources (as the VGM file).
you can look in the provided "sound" sample to have an example
I know it looks less user friendly to do this way but it is far more powerful as you can handle many more different type of resources ans set extra parameters !
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Should be fixed !Mixail wrote: Oh, i think it's just a problem from the '/' character used to separate folder... this indeed may not work on win xp (but does on win vista and after). I need to fix that !
You can redownload the whole SGDK archive or just take the last rescomp.exe from here:
http://sgdk.googlecode.com/svn/trunk/bin/rescomp.exe
Thank you very much.Stef wrote:Should be fixed !Mixail wrote: Oh, i think it's just a problem from the '/' character used to separate folder... this indeed may not work on win xp (but does on win vista and after). I need to fix that !
You can redownload the whole SGDK archive or just take the last rescomp.exe from here:
http://sgdk.googlecode.com/svn/trunk/bin/rescomp.exe
Hi
What's the problem with VDP_setTileMap()?
After installing SGDK 0.95, I have this message while compiling: (without any changes in my code)
My command is :
(Same error without "+(z)"...)
EDIT : Ok, I have to use VDP_setTileMapXY(); instead...
What's the problem with VDP_setTileMap()?
After installing SGDK 0.95, I have this message while compiling: (without any changes in my code)
Code: Select all
gestion_map.c|49|error: too many arguments to function `VDP_setTileMap'|
Code: Select all
VDP_setTileMap(BPLAN, TILE_ATTR(0,0,0,0)+(z), k, l);
EDIT : Ok, I have to use VDP_setTileMapXY(); instead...
Hello Stef
I get to compile on eclipse my main.c
But i would like to learn to compile in dos only.
In my project i copy all
src , res, inc in my drirectory project.
and i start %GDK_WIN%\bin\make -f %GDK_WIN%\makefile.gen
I don't get in my out directory , the bin file.
Do you know why ?
thanks
Edit : i find, sorry, we must to start cmd dos in admin user.
I get to compile on eclipse my main.c
But i would like to learn to compile in dos only.
In my project i copy all
src , res, inc in my drirectory project.
and i start %GDK_WIN%\bin\make -f %GDK_WIN%\makefile.gen
I don't get in my out directory , the bin file.
Do you know why ?
thanks
Edit : i find, sorry, we must to start cmd dos in admin user.
========================
I like develop some games
========================
I like develop some games
========================
Thanks Stef,
i send so on the Gamopat Forum, cause we speak together with touko there.
But, if i start my cmd dos in admin user (right click), the compile work fine !
I saw the code to move sonic, it's you which write this ? great code
i send so on the Gamopat Forum, cause we speak together with touko there.
But, if i start my cmd dos in admin user (right click), the compile work fine !
I saw the code to move sonic, it's you which write this ? great code
========================
I like develop some games
========================
I like develop some games
========================