This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Questions on graphic


Questions on graphic

Postby TT » Nov 22, 2004 @ 1:52am

User avatar
TT
pm Member
 
Posts: 28
Joined: Nov 15, 2004 @ 5:09pm
Location: Moscow, Russia


Postby kornalius » Nov 22, 2004 @ 3:57am

1. You can look around for vga font editor on google. I found one there. It's old and for DOS but it works.

2. PPL supports a lot of formats but PNG is not supported on the PC.

this is from the image.h in pocketfrog (which PPL uses) root dir:

"The PocketPC and the desktop PC versions of this function are implemented differently. On PocketPC, we use the "imgdecmp.dll" decompression library to load different file formats without having to deal with legal issues such as GIF decompression.

On the desktop, we use the OleLoadPicture() function to load image files.
This give us access to a similar set of image formats.

The following formats are supported:
PocketPC: .BMP, .GIF, .JPG, .PNG and .XBM
Desktop: .BMP, .GIF, .JPG, .WMF and .ICO"


3. Leave automatic sprites display on. (Autodraw). You should load all surfaces (LoadSurface) at the beginning of the program and when the mouse is clicked you can SetSpriteSurface() and it will be fast. You can also detect mouse click on a per-sprite basis too.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby TT » Nov 22, 2004 @ 7:50am

User avatar
TT
pm Member
 
Posts: 28
Joined: Nov 15, 2004 @ 5:09pm
Location: Moscow, Russia


Postby kornalius » Nov 22, 2004 @ 5:39pm

The LoadSurface and SetSpriteSurface is probably your best bet. But don't forget that loading images on the PocketPC is always slow no matter what you try to do.

If you prefer, you can do the drawing yourself by turning the AutoDraw to false and putting your code in WM_PAINT of your main game procedure. Use the DrawSurface. Sprites are good to use if you need to keep track of positions and things like that.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron