I meant how to do the second option you listed, but specifically using
pyglet. But I guess it is just more probable that I'll end up having
to code the whole thing from the ground up like you wrote in your
first option.

I guess I'll have to do some testing around, then.

Thanks for replying.

On 28 feb, 07:02, Jonathan Hartley <[email protected]> wrote:
> Hey.
>
> Sorry for being dense, but I'm still not sure which of the following
> you want to do:
>
> 1) A single 'real' window, created by Pyglet (or other GUI library),
> which provides an OpenGL context. Everything within this window is
> drawn manually by your OpenGL code. This includes a few decorated
> rectangles that look and behave somewhat like MDI-document windows,
> but you intend to code all of this yourself, maybe for maximum control
> over the behaviour, appearance, and to ensure hardware-accel rendering
> of everything, including the sub-windows Chrome. In short, you want to
> write your own MDI-like interface from the ground up.
>
> If this is your intent, then I expect you might be making use of
> glViewPort to clip the portion of the 'real' window to which OpenGL
> renders, so that you can draw the contents the of each sub-window in
> turn.
>
> or
>
> 2) Actually use some GUI library to create an MDI-like interface. Each
> sub-window within the main window will provide its own GL context, so
> that you can render within each sub-window seperately, but the sub-
> window chrome and behaviour is entirely handled by your GUI library.
>
> If this is your intent, then I expect you'll be looking at the docs of
> your GUI library to find out how to provide an OpenGL context, and
> apply this to each of your sub-windows.
>
> I probably can't actually help, but I wonder if maybe if I'm confused
> about the question, then possibly so are other people, so clarifying
> this might help. Hopefully I'm not just confusing the issue.
>
> Best,
>
>   Jonathan
>
> On Feb 26, 1:49 pm, Alejandro Castellanos
>
> <[email protected]> wrote:
> > I meant an MDI like interface where the other windows can appear
> > inside of a single one, yes.
>
> > I wanna figure out if I can make a larger window that includes an n-
> > number of smaller ones. See if I can make different panels (windows)
> > display an n-number of different objects (sprites, images, or 3D) just
> > like normal pyglet windows do, and that take event handlers and the
> > like.
>
> > Though if it isn't exactly possible, anything resembling that would
> > suffice.
>
> > Thanks in advance.
>
> > On 26 feb, 05:58, Jonathan Hartley <[email protected]> wrote:
>
> > > On Feb 26, 11:37 am, Alejandro Castellanos
>
> > > <[email protected]> wrote:
> > > > Hello, I've never delved into Pyglet's capabilities to display
> > > > multiple windows and figured this might have been a good time to do
> > > > so, and I was wondering about what was the correct way of displaying
> > > > independent windows inside of another, larger one. Does it somehow
> > > > involve using the class 'pyglet.window.Screen' ? Can anyone post some
> > > > code examples?
>
> > > > Thanks in advance.
>
> > > Hey. Just to clarify: Do you mean OS-level windows, so you want to
> > > present an 'MDI' style interface, like the way many MS Word document
> > > windows used to appear within a single MS Word window? Or do you mean
> > > something else?

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to