[Solved]RenderQueue problem

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

kili
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Fri Apr 27, 2007 06:17

[Solved]RenderQueue problem

Postby kili » Wed Jul 28, 2010 10:00

Hi,

I want to create a permanent on top window(AlwaysOnTop is not what i need),
and this is the getRenderingContext_impl code:

Code: Select all

Window* sheet = System::getSingleton().getGUISheet();

      ctx.surface = sheet ? &sheet->getTargetRenderingSurface() :
         &System::getSingleton().getRenderer()->getDefaultRenderingRoot();
      ctx.owner = 0;
      ctx.offset = Vector2(0, 0);
      ctx.queue = RQ_USER_5;


Scheme:

Code: Select all

<FalagardMapping WindowType="MIP/TopWindow" TargetType="TopWindow" Renderer="Falagard/Default" LookNFeel="MIP/TopWindow" />


but when i click other window, they still move to front.
please correct me if I'm wrong, thx.

=========================================

Log:

+-+-+-+
06/05/2010 15:22:23 (Std) + Crazy Eddie's GUI System - Event log +
06/05/2010 15:22:23 (Std) + (http://www.cegui.org.uk/) +
06/05/2010 15:22:23 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

06/05/2010 15:22:23 (Std) CEGUI::Logger singleton created. (00BA7AC0)
06/05/2010 15:22:23 (Std)
06/05/2010 15:22:23 (Std) ********************************************************************************
06/05/2010 15:22:23 (Std) * Important: *
06/05/2010 15:22:23 (Std) * To get support at the CEGUI forums, you must post _at least_ the section *
06/05/2010 15:22:23 (Std) * of this log file indicated below. Failure to do this will result in no *
06/05/2010 15:22:23 (Std) * support being given; please do not waste our time. *
06/05/2010 15:22:23 (Std) ********************************************************************************
06/05/2010 15:22:23 (Std) ********************************************************************************
06/05/2010 15:22:23 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
06/05/2010 15:22:23 (Std) ********************************************************************************
06/05/2010 15:22:23 (Std) ---- Version 0.7.9999 (Build: May 5 2010 Microsoft Windows MSVC++ 8.0 32 bit) ----
06/05/2010 15:22:23 (Std) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module. TextureTarget support enabled via FBO extension. ----
06/05/2010 15:22:23 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
06/05/2010 15:22:23 (Std) ---- Image Codec module is: FreeImageCodec - FreeImage based image codec ----
06/05/2010 15:22:23 (Std) ---- Scripting module is: None ----
Last edited by kili on Thu Jul 29, 2010 03:22, edited 2 times in total.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: RenderQueue problem

Postby Jamarr » Wed Jul 28, 2010 19:55

I want to create a permanent on top window(AlwaysOnTop is not what i need)

You need to elaborate on "permanent on top window". This is a very vague description, and you should not assume we are all mind readers. If "AlwaysOnTop" is not what you are looking for, are you wanting to give a single window exclusive rights to the input; eg only allowing the user to interact with a single window? or is it something else?
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

kili
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Fri Apr 27, 2007 06:17

Re: RenderQueue problem

Postby kili » Thu Jul 29, 2010 02:00

umm, this is my requirement:

I have 2 windows belongs to different parents(A.B):
A/A1
B/B1

A1 and B1 would overlay each other, but I hope A1 always on top when
I click B1(B1's RiseOnClick attribute is True because it could be in front
of other window exclude A1).
I've tried all Window attribute related this but no use.

thx for reply.

//--------------------
I've solved this for the TargetType should be TopWindow. :hammer:


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests