opengl
(To be removed) Control OpenGL rendering
opengl
will be removed in a future release. For more information, see
Version History.
Syntax
Description
opengl
prints information about the
OpenGL® implementation currently in use by MATLAB®, such as the version, vendor, and graphics features that it supports. Using
this command loads OpenGL. Starting in R2019a, this syntax is no longer recommended. For more
information, see Version History.info
returns the same data provided
with d
= opengl('data')opengl info
, but stores it in a structure. Starting in R2019a,
this syntax is no longer recommended.
opengl
uses
a software version of OpenGL to render subsequent graphics for
the current MATLAB session. This command works only on Windows® systems.software
opengl
uses
a hardware-accelerated version of OpenGL to render subsequent
graphics. If your graphics hardware does not support hardware-accelerated OpenGL,
then MATLAB uses a software version instead.hardware
opengl
uses
a hardware-accelerated version of OpenGL, but disables some advanced
graphics features that are unstable with certain graphics drivers.
If your graphics hardware does not support hardware-accelerated OpenGL,
then MATLAB uses a software version instead.hardwarebasic
Examples
Input Arguments
More About
Tips
Painters is an alternate rendering method for screen display and printing. For more information, see the figure’s
Renderer
property.By default, MATLAB uses hardware-accelerated OpenGL if your graphics hardware supports it. However, in some cases, MATLAB automatically switches to software OpenGL, for example, if it detects:
You are using a graphics driver with known issues or graphics virtualization.
A previous MATLAB session crashed due to a graphics issue. If the previous session was using software OpenGL and crashed, then subsequent sessions use a more stable version of software OpenGL that has fewer capabilities.
You do not have graphics hardware or your graphics hardware does not support hardware OpenGL.