coRp
Still Fresh
woo.. new smilie gp32_console gp32_console gp32_console gp32_console
...anyway, I've finally worked out how/ managed to put a sprite in, but something is going horribly wrong. for example:
.bmp image
image in geepee32
...as you can see, not very nice.
this is my c file:
I am getting this compile error - I think this may have something to do with it:
... i think the pointer it refers to is 'framebuffer', and as this is integral to the actual display, I think this may be the problem.
anyone have any idea what's wrong?
...anyway, I've finally worked out how/ managed to put a sprite in, but something is going horribly wrong. for example:
.bmp image
image in geepee32
...as you can see, not very nice.
this is my c file:
Code:
#include <gp32.h>
#include "gbasp.h"
unsigned short *framebuffer;
void main ( void )
{
framebuffer = (unsigned short*) FRAMEBUFFER;
gp_SetScreen(framebuffer, 16);
gp_ScreenClear16(framebuffer, 0x0000);
gp_SpriteBlitT(gbasp, 0xFFFF, gbasp_width, gbasp_height, 10, 10, framebuffer);
while(1)
{
}
}
I am getting this compile error - I think this may have something to do with it:
gpmain.c(11): warning: passing arg1 of 'gp_SetScreen' makes integer from pointer without a cast
... i think the pointer it refers to is 'framebuffer', and as this is integral to the actual display, I think this may be the problem.
anyone have any idea what's wrong?