Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » An OpenGL ctrl for Linux / X11
Re: An OpenGL ctrl for Linux / X11 [message #5629 is a reply to message #5557] Fri, 06 October 2006 15:47 Go to previous messageGo to previous message
h3l1 is currently offline  h3l1
Messages: 28
Registered: August 2006
Location: Innsbruck, Austria
Promising Member
Hi Damien,

great work, finally I got it to run. So I tried to get antialiasing to the controls and had to add

#ifdef GLX_SAMPLE_BUFFERS_ARB
visual << GLX_SAMPLE_BUFFERS_ARB << 1 << GLX_SAMPLES_ARB << 4;
#endif


in the OpenGLCtrl::CreateGLXWindow method. It would be nice if this can be added to the final code. So it is possible to create individual scenes with antialiasing enabled.

Finally enabling antialiasing works with the following code:
glEnable(GL_MULTISAMPLE_ARB);
glHint(GL_MULTISAMPLE_FILTER_HINT_NV, GL_NICEST);


I added it at the InitGL of the CubeGL control and voila the cube was antialiased. This is really cool!
Now I'm trying to create a control with opengl in high quality.

bye
Heli
 
Read Message icon1.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using DOM like XML parser
Next Topic: Windows Service?
Goto Forum:
  


Current Time: Sat Jun 07 16:26:54 CEST 2025

Total time taken to generate the page: 0.04261 seconds