2
Answers

i want to display just image and some text using airplay SDk

Venkat S

Venkat S

13y
2.9k
1
Hi Guys,
i want to display just image and some text.
Because i m new for this technology please correct my bugs and send me a simple code.
MY code is bellow,
Here is my .cpp code
#include "s3e.h"
#include "IwRandom.h"
#include "Iw2D.h"
int main()
{
int height = s3eSurfaceGetInt(S3E_SURFACE_HEIGHT);
int width = s3eSurfaceGetInt(S3E_SURFACE_WIDTH);
Iw2DInit();
CIw2DImage* img = Iw2DCreateImage("sphere.bmp");
s3eDebugTraceLine("in main");
s3eSurfaceClear(255, 0, 255);
while (!s3eDeviceCheckQuitRequest())
{
Iw2DDrawImage(img, CIwSVec2(IwRandMinMax (0,width),IwRandMinMax (0,height)));
s3eDebugPrint(IwRandMinMax (0,width), IwRandMinMax (0,height), "Hello, World!", 0);
s3eSurfaceShow();
s3eDeviceYield(0);
s3eKeyboardUpdate();
s3ePointerUpdate();
if (s3eKeyboardAnyKey())
break;
if (s3ePointerGetState(S3E_POINTER_BUTTON_SELECT) & S3E_POINTER_STATE_PRESSED)
break;
}
return 0;
}
Here is my mkb file
#!/usr/bin/env mkb
options
{
strict
}
files
{
Basic.cpp
}
subprojects
{
iw2d
}

finally i run My application then after i get this error

"PVR: VFrame attempted to use one of these functions: PVR: wglChoosePixelFormatARB
PVR: but they are not present on your machine.

i selected ignore option
then
its says like
IwAssert failure (UTIL, 1026).
Message: File not found sphere.bmp

Callstack:
CIwTexture::Load
Iw2DCreateImage

i select continue

it display only text


Regards
Venkat.S
Answers (2)
0
Jaganathan Bantheswaran

Jaganathan Bantheswaran

NA 25.7k 2.2m 13y
Hi,

Have you added the image in project. If yes , Is it .png format. If no, try with .png format images or different formats.
Accepted
0
Suthish Nair

Suthish Nair

NA 38.4k 4.6m 13y
Gira Palmer, Is this a kind of spamming or promoting your product. Either of the way is not allowed here, your login credentials will get blocked. We have Announcements section where you can post about your product etc..