MATLAB Function Reference |
Change automatic selection mode of OpenGL rendering
Syntax
opengl selection_mode
Description
The OpenGL autoselection mode applies when the RendererMode
of the figure is auto
. Possible values for selection_mode
are:
autoselect
allows OpenGL to be automatically selected if OpenGL is available and if there is graphics hardware on the host machine.neverselect
disables auto selection of OpenGL.advise
prints a message to the command window if OpenGL rendering is advised, but RenderMode
is set to manual
.opengl
, by itself, returns the current auto selection state.
opengl
info
prints information with the version and vendor of the OpenGL on your system.
Note that the auto selection state only specifies that OpenGL should or not be considered for rendering, it does not explicitly set the rendering to OpenGL. This can be done by setting the Renderer
property of figure to OpenGL
. For example,
set(gcf,'Renderer','OpenGL')
openfig | openvar |