Visualization Library 2.0.0-b3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Static Public Member Functions | List of all members
vl::VisualizationLibrary Class Reference

Used to initialize/shutdown VisualizationLibrary and to access important global data. More...

#include <VisualizationLibrary.hpp>

Static Public Member Functions

static VLGRAPHICS_EXPORT void init (bool log_info=true)
 Initializes VLCore and VLGraphics libraries. More...
 
static VLGRAPHICS_EXPORT void shutdown ()
 Releases all the resources acquired by VLCore and VLGraphics. More...
 
static VLCORE_EXPORT void initCore (bool log_info=true)
 Initializes only VLCore library. More...
 
static VLCORE_EXPORT void shutdownCore ()
 Releases all the resources acquired by Visualization Library Core Call shutdownCore() instead of shutdown() ONLY when using VLCore alone. More...
 
static VLCORE_EXPORT bool isCoreInitialized ()
 Returns true if VLCore library is initialized and shutdown has not been called. More...
 
static VLGRAPHICS_EXPORT bool isGraphicsInitialized ()
 Returns true if VLGraphics library is initialized and shutdown has not been called. More...
 
static VLCORE_EXPORT const char * versionString ()
 Returns the Visualization Library's version string. More...
 

Detailed Description

Used to initialize/shutdown VisualizationLibrary and to access important global data.

Definition at line 44 of file VisualizationLibrary.hpp.

Member Function Documentation

◆ init()

void VisualizationLibrary::init ( bool  log_info = true)
static

Initializes VLCore and VLGraphics libraries.

Call initCore() instead of init() when using only VLCore.

Definition at line 297 of file init_graphics.cpp.

References initCore().

Referenced by main().

◆ initCore()

void VisualizationLibrary::initCore ( bool  log_info = true)
static

Initializes only VLCore library.

Call initCore() instead of init() ONLY when using VLCore alone.

Definition at line 192 of file init_core.cpp.

References vl::Log::bug(), vl::FileSystem::directories(), vl::ref< T >::get(), vl::globalSettings(), vl::Log::logSystemInfo(), vl::registerLoadWriter(), vl::setDefLogger(), vl::StandardLog::setLogFile(), and VL_CHECK.

Referenced by init().

◆ isCoreInitialized()

bool VisualizationLibrary::isCoreInitialized ( )
static

Returns true if VLCore library is initialized and shutdown has not been called.

Definition at line 102 of file init_core.cpp.

◆ isGraphicsInitialized()

bool VisualizationLibrary::isGraphicsInitialized ( )
static

Returns true if VLGraphics library is initialized and shutdown has not been called.

Definition at line 310 of file init_graphics.cpp.

Referenced by vl::FramebufferObject::removeAttachment().

◆ shutdown()

void VisualizationLibrary::shutdown ( )
static

Releases all the resources acquired by VLCore and VLGraphics.

Call shutdownCore() instead of shutdown() when using only VLCore.

Definition at line 303 of file init_graphics.cpp.

References vl::Log::debug(), and shutdownCore().

Referenced by vlGLUT::atexit_visualization_library_shutdown().

◆ shutdownCore()

void VisualizationLibrary::shutdownCore ( )
static

Releases all the resources acquired by Visualization Library Core Call shutdownCore() instead of shutdown() ONLY when using VLCore alone.

Definition at line 261 of file init_core.cpp.

References vl::globalSettings(), NULL, and vl::Log::print().

Referenced by shutdown().

◆ versionString()

const char * VisualizationLibrary::versionString ( )
static

Returns the Visualization Library's version string.

Definition at line 104 of file init_core.cpp.

References NULL.

Referenced by vl::Log::logSystemInfo().


The documentation for this class was generated from the following files: