Re: [TuxKart-devel] New command line options
Status: Alpha
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-07-19 23:51:00
|
Pascal Giard wrote: > but as you might observe, --noBorder isn't there. The reason is simple, i want > a full-fledge --fullscreen option but didn't find how to proceed yet. > > i'd appreciate some cues ;) The 'pwInit' call is the thing here. void pwInit ( int x, int y, int w, int h, int multisample, char *title, int border, int num_samples ) ; ...setting 'border' to FALSE gets rid of the window decoration, setting 'w' and 'h' to -1 forces them to the full width or height of the screen. Hence you can have full screen windows with or without borders and non-full screen windows with or without borders too. > At the moment, what annoys me is that the way i do it, either of them need to > be called before pwInit because pwInit determines the size of the window. > Outside pwInit, I don't know how to change the window size yet... pwSetSize, pwSetOrigin or pwSetSizeOrigin PW is an extremely simple windowing system - the documentation for it is here: http://plib.sourceforge.net/pw/index.html ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |