Difference between revisions of "DesktopOpenGLSurface"
From Xojo Documentation
(→Notes) |
|||
Line 30: | Line 30: | ||
==Notes== | ==Notes== | ||
− | The | + | The DesktopOpenGLSurface control and the OpenGL module are based on the OpenGLSurface plug-in from Tinrocket, LLC at http://2002-2010.tinrocket.com/software/openglsurface/index.html. |
The [[OpenGL]] module contains all the OpenGL calls, functions, and constants that you will need. See http://www.opengl.org/ for the OpenGL documentation. The online version of the Red Book for OpenGL 1.1 is available at http://www.glprogramming.com/red. | The [[OpenGL]] module contains all the OpenGL calls, functions, and constants that you will need. See http://www.opengl.org/ for the OpenGL documentation. The online version of the Red Book for OpenGL 1.1 is available at http://www.glprogramming.com/red. | ||
Line 37: | Line 37: | ||
* OpenGL uses a per-thread context. | * OpenGL uses a per-thread context. | ||
* All of the functions in the [[OpenGL]] module affect the current context. | * All of the functions in the [[OpenGL]] module affect the current context. | ||
− | * The current OpenGL context is undefined outside of an | + | * The current OpenGL context is undefined outside of an DesktopOpenGLSurface Opening, Resized or Render event. |
* [[DesktopOpenGLSurface.MakeCurrent]] can be used to make a specific OpenGLCanvas the current context. | * [[DesktopOpenGLSurface.MakeCurrent]] can be used to make a specific OpenGLCanvas the current context. | ||
Revision as of 21:19, 21 September 2021
Class (inherits from DesktopUIControl)
Sets up OpenGL on all platforms and provides basic functionality. It does the basic setup of OpenGL on each platform. It's up to you to clear buffers and do all the OpenGL drawing.
Properties | |||||||||||||||||||||||||||
|
Methods | ||||||||||
|
Notes
The DesktopOpenGLSurface control and the OpenGL module are based on the OpenGLSurface plug-in from Tinrocket, LLC at http://2002-2010.tinrocket.com/software/openglsurface/index.html.
The OpenGL module contains all the OpenGL calls, functions, and constants that you will need. See http://www.opengl.org/ for the OpenGL documentation. The online version of the Red Book for OpenGL 1.1 is available at http://www.glprogramming.com/red.
Additional information:
- OpenGL uses a per-thread context.
- All of the functions in the OpenGL module affect the current context.
- The current OpenGL context is undefined outside of an DesktopOpenGLSurface Opening, Resized or Render event.
- DesktopOpenGLSurface.MakeCurrent can be used to make a specific OpenGLCanvas the current context.
See Also
OpenGL module.