Some request about images

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by BalrogSoft.


Hi!

Pure basic 3.20 is a great update, but 2d drawing commands are slow, i think that implementing a new feature for drawing into images would be the option of depth to create an image, in my GB emulator i need to draw 59 frames in a second !!. If the image where i draw the graphics were 4 colors, i think that 2d drawing operations would be faster than now.

Another wish is a better system to numerical transforms that pb dont support:

Hex to Dec
Dec to Oct
Oct to Dec
Dec to Bin
Bin to Dec

And when PB will support sprites for images, and windows? And an official timer library too.

Bye, Balrog Soft.

Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Another wish is a better system to numerical transforms that pb dont support:

Hex to Dec
Dec to Oct
Oct to Dec
Dec to Bin
Bin to Dec
Maybe not what you are looking for, but there is a third party library which supports binary and hex tranformations (I guess you mean from a number to a string?) but not Octal.


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.20)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fweil.

I suppose you wrote your own procedures to solve this until you find something in native PB ?

Otherwise tell me ... I did.

Francois Weil
14, rue Douer
F64100 Bayonne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

fweil,

maybe its an idea to put your stuff in the
Tips & Tricks section and on Pauls site -
so the whole community can use it and
you gain fame...

Have a nice day,
...Danilo
(registered PureBasic user)

Edited by - Danilo on 17 June 2002 09:40:43
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fweil.

Just doing it ... but not for fame just for fun.

Francois Weil
14, rue Douer
F64100 Bayonne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.
Pure basic 3.20 is a great update, but 2d drawing commands are slow, i think that implementing a new feature for drawing into images would be the option of depth to create an image, in my GB emulator i need to draw 59 frames in a second !!. If the image where i draw the graphics were 4 colors, i think that 2d drawing operations would be faster than now.
I just use the Windows API functions... I you want speed, you have no choice but use DirectX (I suggest it to you). In PB, DirectX can be used in windowed mode, is double buffered, can use sprite as image etc... Without count the extra fast Plot() function which is a must for an emulator I guess. With all this, you could get 59 frame/s without problem.
And when PB will support sprites for images, and windows?
See above...



Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by BalrogSoft.


Hi!

On the one hand i need native commands for numerical transforms, i need speed, and not a procedure that is slower than native commands. On the other hand, yes, i have some tips to transforms numbers, and other interesting tips, but its a temporally solution, in a few days i submit some tips to pauls web and my web (i agree with fweil, not for fame, i write programs for entertaiment, i dont earn money with my programs or sources), but im studying for university exams access, and i havent time, Another thing is that i need to draw 59 frames in a second, running the emulator, and it speed down the screen draw.

To finish this post, i have a question, PB supports sprites draw in images??

Bye, Balrog Soft.


Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
Post Reply