Login  Register

Re: Problem porting AWT to NEWT

Posted by Sven Gothel on Apr 19, 2012; 4:57pm
URL: https://forum.jogamp.org/Problem-porting-AWT-to-NEWT-tp3923274p3923633.html

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