Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » JOGL(OPENGL) in eclipse view/editor problem in rcp project
JOGL(OPENGL) in eclipse view/editor problem in rcp project [message #707474] Mon, 01 August 2011 17:49 Go to next message
yingfashi3000 is currently offline yingfashi3000Friend
Messages: 5
Registered: August 2011
Junior Member
index.php/fa/3522/0/
When drag the horizontal scroll bar, the background of the view will appear to GLCanvas(canvas), as if it's redrawed beyond the bounds.
jogl bundle , one based on AWT, one based on SWT, both get this problem.
It's annoying.
Re: JOGL(OPENGL) in eclipse view/editor problem in rcp project [message #713381 is a reply to message #707474] Mon, 08 August 2011 12:22 Go to previous messageGo to next message
yingfashi3000 is currently offline yingfashi3000Friend
Messages: 5
Registered: August 2011
Junior Member
It's caused by scrolledComposite in the left view. I try it in jogl1.0 or jogl2.0 and get no difference.
Hope for some help...
Thanks in advance
Re: JOGL(OPENGL) in eclipse view/editor problem in rcp project [message #714382 is a reply to message #713381] Wed, 10 August 2011 13:09 Go to previous messageGo to next message
yingfashi3000 is currently offline yingfashi3000Friend
Messages: 5
Registered: August 2011
Junior Member
//left view
@Override
public void createPartControl(Composite parent) {
parent.setLayout(new FillLayout());

ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
scrolledComposite.setExpandHorizontal(true);
scrolledComposite.setExpandVertical(true);

Composite composite = new Composite(scrolledComposite, SWT.NONE);
composite.setLayout(new GridLayout(1, false));

txt = new Text(composite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);
txt.setText("a long text a long text a long text a long text a long text a long text a long text a long text ");
GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
gd.heightHint = 200;
txt.setLayoutData(gd);

scrolledComposite.setContent(composite);
scrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));

}


//opengl view(jogl)
@Override
public void createPartControl(Composite parent) {
Composite composite = new Composite(parent, SWT.EMBEDDED);

Frame frame = SWT_AWT.new_Frame(composite);

frame.setLayout(new BorderLayout(0, 0));
//
GLCapabilities caps = new javax.media.opengl.GLCapabilities();
GLCanvas canvas = new GLCanvas(caps);
frame.add(canvas);

}
Re: JOGL(OPENGL) in eclipse view/editor problem in rcp project [message #714394 is a reply to message #714382] Wed, 10 August 2011 13:18 Go to previous message
yingfashi3000 is currently offline yingfashi3000Friend
Messages: 5
Registered: August 2011
Junior Member
I have tried GLJPanel instead of GLCANVAS.It can resolve the problem ,but GLJPanel (I dislike swing) is not a good tool for rendering opengl.If I have many obejects to display, GLJPanel will result in retard when resize the window(It's repainted very very slowly).
Previous Topic:limit search results OR hide search view toolbar icons dynamically
Next Topic:Eclipse broken?
Goto Forum:
  


Current Time: Tue Apr 16 15:16:00 GMT 2024

Powered by FUDForum. Page generated in 0.80693 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top