Graphite  Version 3
An experimental 3D geometry processing program
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 GEO::Graphics::initialize ()
 Initialize Geogram graphics subsystem. More...
 
void 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 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 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()