OGLRefreshGraph
int OGLRefreshGraph (int panelHandle, int OGLControlId);
Purpose
Refreshes an OGL control.
Any changes made to the attributes of the scene and the graphs are visible only after a refresh graph.
![]() |
Note Call this function only to refresh controls created by the thread calling the function. If you try to use this function to refresh controls created by another thread, then an OGLErrorInvalidThread error is returned and the control is not refreshed. |
Parameters
Input | ||
Name | Type | Description |
panelHandle | int | The specifier for a particular panel that is currently in memory. This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function. |
OGLControlId | int | The ID returned by OGLNewCtrl or OGLConvertCtrl. |
Return Value
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred.Error Codes
|
Additional Information
Library: OpenGL 3D Plotting Control
Include file: custctrl\cviogl.h
LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later
Examples
Refer to the following examples that use the OGLRefreshGraph function: