Main Page | Report this Page
Computers Forum Index  »  Computer - Graphics - API (Opengl)  »  How to merge OpenGL content with GUI window?...
Page 1 of 1    

How to merge OpenGL content with GUI window?...

Author Message
A...
Posted: Sat Sep 12, 2009 2:49 pm
Guest
Hi all,

If I've created a window using CreateWindow under Win32, is there a
simple way to designate just a part of it e.g. using a RECT struct, as
being
exclusively for 3D content specifically using OpenGL? Or do I need
to make the OpenGL window a child of my GUI window?

Thanks.
 
fungus...
Posted: Sat Sep 12, 2009 5:23 pm
Guest
On Sep 12, 4:49 pm, A <questione... at (no spam) yahoo.com> wrote:
Quote:
Hi all,

If I've created a window using CreateWindow under Win32, is there a
simple way to designate just a part of it e.g. using a RECT struct, as
being
exclusively for 3D content specifically using OpenGL? Or do I need
to make the OpenGL window a child of my GUI window?


You can't mix GDI and OpenGL in a window.

The only option is to make a child window.
 
Charles E Hardwidge...
Posted: Sat Sep 12, 2009 9:39 pm
Guest
"fungus" <openglMYSOCKS at (no spam) artlum.com> wrote in message
news:c2412fbf-f16c-4e8b-8daa-1f74680ff175 at (no spam) m11g2000yqf.googlegroups.com...
Quote:
On Sep 12, 4:49 pm, A <questione... at (no spam) yahoo.com> wrote:
Hi all,

If I've created a window using CreateWindow under Win32, is there a
simple way to designate just a part of it e.g. using a RECT struct, as
being exclusively for 3D content specifically using OpenGL? Or do I need
to make the OpenGL window a child of my GUI window?

You can't mix GDI and OpenGL in a window.

The only option is to make a child window.

Single buffers work but that comes with its own issues.

http://msdn.microsoft.com/en-us/library/ms537543(VS.85).aspx

Using a child window may be the best option unless you have different
requirements and/or want to get funky with blitting GDI contexts.

--
Charles E Hardwidge
 
Vladimir Jovic...
Posted: Mon Sep 14, 2009 12:06 pm
Guest
fungus wrote:
Quote:
On Sep 12, 4:49 pm, A <questione... at (no spam) yahoo.com> wrote:
Hi all,

If I've created a window using CreateWindow under Win32, is there a
simple way to designate just a part of it e.g. using a RECT struct, as
being
exclusively for 3D content specifically using OpenGL? Or do I need
to make the OpenGL window a child of my GUI window?


You can't mix GDI and OpenGL in a window.

The only option is to make a child window.


I don't know in windows, but in linux it is possible to embed a window.
These demos seams to be for windows:
http://qt.nokia.com/developer/embedded-widget-demos
 
A...
Posted: Mon Sep 14, 2009 12:55 pm
Guest
Quote:
I don't know in windows, but in linux it is possible to embed a window.
These demos seams to be for windows:http://qt.nokia.com/developer/embedded-widget-demos

In Win32, the child window is on top of the parent,
and is cropped/clipped to the parent's area.

Anyway thanks to everyone for the responses,
I got it working.
 
Vladimir Jovic...
Posted: Mon Sep 14, 2009 5:04 pm
Guest
A wrote:
Quote:
I don't know in windows, but in linux it is possible to embed a window.
These demos seams to be for windows:http://qt.nokia.com/developer/embedded-widget-demos

In Win32, the child window is on top of the parent,
and is cropped/clipped to the parent's area.

Anyway thanks to everyone for the responses,
I got it working.

Mind sharing how you got it to work?
 
Charles E Hardwidge...
Posted: Mon Sep 14, 2009 7:39 pm
Guest
"Vladimir Jovic" <vladaspams at (no spam) gmail.com> wrote in message
news:h8lf1m$auu$1 at (no spam) news01.versatel.de...
Quote:
A wrote:
I don't know in windows, but in linux it is possible to embed a window.
These demos seams to be for
windows:http://qt.nokia.com/developer/embedded-widget-demos

In Win32, the child window is on top of the parent,
and is cropped/clipped to the parent's area.

Anyway thanks to everyone for the responses,
I got it working.

Mind sharing how you got it to work?

Speaking of which what happened to your upscaling issue?

--
Charles E Hardwidge
 
Vladimir Jovic...
Posted: Tue Sep 15, 2009 11:38 am
Guest
Charles E Hardwidge wrote:
Quote:
Speaking of which what happened to your upscaling issue?


The idea is there, but since I am super-short on time, I can not
implement it :/
I ended up implementing it in the shader, and killing the GPU. Clicking
buttons had huge delays, so we abandoned the idea for now.

I used these papers to do it:
http://yp.wtb.tue.nl/pdfs/10318.pdf
www.dannyruijters.nl/docs/GPU_AccuracyBSpline.pdf
The image is sharper, but requires number of texture lookups and number
of operation, which our GPU can not handle Sad
How come the OpenGG doesn't have something like this implemented?
 
Charles E Hardwidge...
Posted: Tue Sep 15, 2009 9:16 pm
Guest
"Vladimir Jovic" <vladaspams at (no spam) gmail.com> wrote in message
news:h8ng93$fcp$1 at (no spam) news01.versatel.de...
Quote:
Charles E Hardwidge wrote:
Speaking of which what happened to your upscaling issue?

The idea is there, but since I am super-short on time, I can not implement
it :/
I ended up implementing it in the shader, and killing the GPU. Clicking
buttons had huge delays, so we abandoned the idea for now.

I used these papers to do it:
http://yp.wtb.tue.nl/pdfs/10318.pdf
www.dannyruijters.nl/docs/GPU_AccuracyBSpline.pdf
The image is sharper, but requires number of texture lookups and number of
operation, which our GPU can not handle Sad
How come the OpenGG doesn't have something like this implemented?

So you ignored the easiest solution and fast CPU alternatives?

You might also want to look at your threading.

--
Charles E Hardwidge
 
 
Page 1 of 1    
All times are GMT
The time now is Wed Nov 25, 2009 11:26 am