Geogram  Version 1.9.1
A programming library of geometric algorithms
common.h File Reference

Common include file, providing basic definitions. Should be included before anything else by all header files in geogram_gfx. More...

Go to the source code of this file.

Namespaces

 GEO
 Global Vorpaline namespace.
 

Functions

void GEOGRAM_GFX_API GEO::Graphics::initialize ()
 Initialize Geogram graphics subsystem. More...
 
void GEOGRAM_GFX_API GEO::Graphics::terminate ()
 Cleans up Geogram graphics subsystem. More...
 

Detailed Description

Common include file, providing basic definitions. Should be included before anything else by all header files in geogram_gfx.

Definition in file common.h.

Function Documentation

◆ initialize()

void GEOGRAM_GFX_API GEO::Graphics::initialize ( )

Initialize Geogram graphics subsystem.

This function must be called once, after a valid OpenGL context is created, at the beginning of a program to initialize the geogram_gfx library. It also installs a exit() handler that calls function terminate() when the program exists normally.

Warning
This function cannot be called before a valid OpenGL context is available.

◆ terminate()

void GEOGRAM_GFX_API GEO::Graphics::terminate ( )

Cleans up Geogram graphics subsystem.

This function is called automatically when the program exists normally.

Warning
This function should not be called directly.
See also
initialize()