Re: [Plib-users] using puLargeInput ,,problem to add more then 6000 line to LargeInput
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-03-26 16:47:49
|
lahiani moti wrote: > 1 can i use fltk & fluid to add one more window to code that wrote in PLIB?? > if i can use it how can i do it? i know i need to add to project->setting the fltk > definition but when i compile it isn't work? Well, I guess so. You can certainly run PLIB stuff within FLTK windows (there is an example of how to do that in the 'examples/src/pui/fltk_demo'). However, to mix FLTK windows with windows made with another windowing toolkit seems like you're getting into dangerous territory! > 2 how much line can i add to puLargeInput ???? > i load 3ds file and every line i want to show at the largeInput i try to add 187 line but if i have largest object with ~6000 > line the window not response I'm not aware of any such limits...I guess this is a question for John Fay. > 3 when i load the 3ds object if it use texture i need to add it is there an option to > know what kind of pic it use(bmp,jpg.....) and how can i load it?? If it uses bmp or rgb images, PLIB will load them automatically. If you want to use some other image file format then you'll need to catch the filename and load the texture yourself. You need to write a callback function to create the ssgSimpleState: Before you start loading files: ssgLoaderOptions *loader_opts = new ssgLoaderOptions () ; loader_opts -> setCreateStateCallback ( getAppState ) ; ...set other loader options maybe... ssgSetCurrentOptions ( loader_opts ) ; Then write 'getAppState' like this: ssgState *getAppState ( char *fname ) { ...fname is the name of the texture map - you load it and attach it to an ssgSimpleState... } ---------------------------- 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----- |