Venkat S

Venkat S

  • 1.5k
  • 234
  • 203.1k

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

May 31 2011 1:42 AM
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)