SilverScreen Solid Modeler

get_opengl_info

get_opengl_info

Previous topic Next topic  

get_opengl_info

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

BOOLEAN get_opengl_info ( SS_OPENGL_INFO *gl_info )

 

SS_OPENGL_INFO *gl_info;   // A pointer to an SS_OPENGL_INFO structure

 

 

 




Synopsis

#include "silver.h"

 

The get_opengl_info function retrieves information about the current OpenGL environment.

 

 

Parameters

gl_info is a pointer to an SS_OPENGL_INFO structure that will receive information about the current OpenGL environment.

 

 

Return Value

get_opengl_info returns TRUE if the status of OpenGL could be determined, otherwise it returns FALSE.

 

 

Example

The following code will get information about the current OpenGL environment and report the vendor name.

C / C++ Code

 

 #include "silver.h"

 

  . . .

 

 SS_OPENGL_INFO gli;

 

 if ( get_opengl_info(&gli) )

    error_message("Vendor %s", gli.vendor);