logo       

Re: Pop-up menus: msg#00182

video.blender.devel

Subject: Re: Pop-up menus

Hi,

On our irc channel I went with Daniel over possible strategies to review the swapbuffers method as used in Blender. Most likely we'll find a system that:

- not uses any frontbuffer drawing or reading
- will preserve a fixed updated backbuffer always
- not call a system swapbuffer, unless that is guarenteed a _copy_ of back to front buffer
(the latter is true for OSX, and for several recent 3d cards
- find good cross platform code (or extension calls) that provide a partial window copy, this to copy headers, buttons, menus or single sub-windows to front in Blender

With all different kinds of graphics systems, still not an easy task to accomplish. It's being evaluated still, feedback/research on what a fast & simple & compliant copybuffers would be still welcome.

It's also quite a rewrite for Blender, so something to carefully coordinate. :)

-Ton-


On Monday, Apr 26, 2004, at 11:11 Europe/Amsterdam, john tuffen wrote:

(This is probably a question more for Martin, but anyway...)

I'm going over the UI code at the moment (interface*.c etc.) to remove writes
to the front buffer (since this is the thing which seems to slow down the ATI
Radeon). I coded a quick hacky fix where I called "myswapbuffers()" at
appropriate places in order to display pop-ups, tooltips etc. Unfortunately,
this causes the screen to flash horribly in certain cases (On my Radeon, when
in Vertex paint mode; on an Intel integrated-graphics chipset, the screen
flickers at every opportunity!).

Anyway, I have taken out the calls to myswapbuffers and made a few other
changes and now the buttons do the right thing when pressed/hovered over, but
I can't figure out how to get pop-ups/tooltips to display... Anybody got any
hints? I could wade through the code I guess, but it might be quicker just to
ask!!

Thanks,

john..

--
7" single out now on iwari.com - namke communications: ice-9/salo
http://www.iwari.com/
http://www.minimism.com/
--
_______________________________________________
Bf-committers mailing list
Bf-committers@xxxxxxxxxxx
http://www.blender.org/mailman/listinfo/bf-committers


------------------------------------------------------------------------ --
Ton Roosendaal Blender Foundation ton@xxxxxxxxxxx http://www.blender.org


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise