Monday, 15 August 2011

c++ - Set a background texture to my osgWidget::frame -


As stated in the title, I have to texture the background of the Ogwyddt :: frame and it does not matter what I do for it, it does not change with its default white color ...

Even I have tried so far:

  titleframe = osgWidget :: frame :: createSimpleFrameFromTheme ("frame", architecture, 5.0F, 5.0F, OSGWaidet :: frame: : Frames_arecoverware); Titleframe-> GetBackground () - & gt; Set Collar (OSS :: VC4 (1,1,1, 1)); Titleframe-> GetBackground () - & gt; Settections (New Oz :: Texture 2D (BgTactection)); TitleFrame-> GetBackground () - & gt; SetTexCoordWrapHorizontal ();  

I tried to change the color with red color but it is of no avail. The only solution I've found so far is to fill it with empty labels, to be able to scroll through the problem, I need that frame, and I'll need to add and remove objects from it, so the empty label solution is very much not good.

In addition to this, I should also mention that this frame is in the Ogewoodt :: Box, not in the box, t knows if anything changes or not .

Anyway, if I have a solution to this problem, I would be grateful.

(Is it possible to focus on widget BTW?)

I think That you have titleframe-> gt; before title-> setFlags (osgWidget :: Frame:: frameOction :: FRAME_TEXTURE) GetBackground () - & gt; Settimes (image) .

Otherwise titleFrame->

>

No comments:

Post a Comment