Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: Clyde on May 18, 2006

Title: Res settings of TinyPtc.
Post by: Clyde on May 18, 2006
Does anyone know how or what colour bit depth and refresh rate TinyPtc uses?

This what I use to start up a graphics screen under tinyptc. And wondered how, it sets the res and refresh.

Code: [Select]
If( ptc_open( "Lens", XRES, YRES ) = 0 ) Then
 End -1                                   
End iF


Cheers and many thanks,
Clyde.
Title: Re: Res settings of TinyPtc.
Post by: Stonemonkey on May 19, 2006
Hi clyde, the res is whatever you set it to with xres,yres. the bit depth is automatic to whatever the graphics card can handle and is dealt with when it copies your 32 bit buffer to the graphics card so you don't need to worry about that. As for framerate, i'm not sure.
Title: Re: Res settings of TinyPtc.
Post by: Clyde on May 19, 2006
Cool, cheers Stoney dude :)

Im guessing, the refresh is worked in a similar manner to the bit rate, all taken from the gfx card.

Thanks man,
Clyde.
Title: Re: Res settings of TinyPtc.
Post by: Shockwave on May 19, 2006
It seems to zip along at whatever frame rate it can.
I've had 400fps with some programs.
Title: Re: Res settings of TinyPtc.
Post by: Clyde on May 19, 2006
Im not entirely sure, if the headers and includes are proper FB useage, and just temporary hacks.
I've got a new effect that wants to do its own thang. GFXLib is a bit more stable. But, at the mo im having fun with MR Tiny's antics.