Problem porting AWT to NEWT

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem porting AWT to NEWT

Waigie
Hi,

I want to port my application from using AWT/GLCanvas to NEWT/GLWindow. So I have all my drawing code up and working, but when I try to use GLWindow instead of a Frame with a GLCanvas all that is performed is the glClear statement.

If made a small sample Application to illustrate the problem. Maybe someone could help me.
You can find the Code at: http://pastebin.com/UBXUnKR2
Reply | Threaded
Open this post in threaded view
|

Re: Problem porting AWT to NEWT

Sven Gothel
Administrator
On 04/19/2012 05:20 PM, Waigie [via jogamp] wrote:

> Hi,
>
> I want to port my application from using AWT/GLCanvas to NEWT/GLWindow. So I
> have all my drawing code up and working, but when I try to use GLWindow
> instead of a Frame with a GLCanvas all that is performed is the glClear
> statement.
>
> If made a small sample Application to illustrate the problem. Maybe someone
> could help me.
> You can find the Code at: http://pastebin.com/UBXUnKR2
Changes attached ..

- You were using a core profile GL3, which doesn't include
  fixed point functionality (FFP) - hence you need a shader.
  I changed it to GL3bc, which includes FFP.

- With FFP, I set the foreground color to RED,
  otherwise nothing may be visible.

- Note: since you don't change the matrix, it's -1/1 .. etc, ok

~Sven


Main.java (2K) Download Attachment
signature.asc (910 bytes) Download Attachment