printTextImage and drawLineImage blits text to an image that you pass in. printTextScreen and drawLineScreen blits directly to the screen.
What doesn't work exactly?
Hi everyone.
I'm using graphics.h and graphics.c from Yeldarb Tuts.
But when i use the function:
orCode:void printTextImage(int x, int y, const char* text, u32 color, Image* image);
Dont work. :SCode:void drawLineImage(int x0, int y0, int x1, int y1, Color color, Image* image);
but when i use:
orCode:void printTextScreen(int x, int y, const char* text, u32 color);
works just fine.Code:void drawLineScreen(int x0, int y0, int x1, int y1, Color color);
Can anyone help me?
Thanks in advance,
ShUr1k3n
printTextImage and drawLineImage blits text to an image that you pass in. printTextScreen and drawLineScreen blits directly to the screen.
What doesn't work exactly?
I'm no coder, but I'm assuming the images don't show up.
Can you post the code where you use it, loading the image and blitting the image to the screen please?
I found the "bug".
When i use this:
the image does not show.Code:void blitAlphaImageToScreen();
But when i use:
works just fine.Code:blitImageToScreen();
But i really want to blit a image with Tranparency (.png).
My code:
int user_main(SceSize args, void *argp)
{
// Overclocking CPU to 333mhz
scePowerSetClockFrequency(333, 333, 166);
//Initiate Graphics Usage
initGraphics();
//Image Handler
Image *image1;
//Create Image with size of Screen
image1 = createImage(SCREEN_WIDTH,SCREEN_HEIGHT);
while (1)
{
printTextImage(200,150,"GREEN TEST",green,image1);
blitAlphaImageToScreen(0,0,SCREEN_WIDTH,SCREEN_HEI GHT,image1,0,0); <- Does Not Work
blitImageToScreen(0,0,SCREEN_WIDTH,SCREEN_HEIGHT,i mage1,0,0); <- Works Fine
sceDisplayWaitVblankStart();
flipScreen();
}
//Exit to XMB Menu
sceKernelExitGame();
return 0;
}
Any suggestion?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks