40 #if defined(VL_IO_3D_3DS) 43 #if defined(VL_IO_3D_OBJ) 46 #if defined(VL_IO_3D_AC3D) 49 #if defined(VL_IO_3D_PLY) 52 #if defined(VL_IO_3D_STL) 55 #if defined(VL_IO_3D_MD2) 58 #if defined(VL_IO_3D_COLLADA) 62 static void registerVLXGraphicsWrappers();
69 bool gInitializedGraphics =
false;
72 void VisualizationLibrary::initGraphics()
75 if (gInitializedGraphics) {
76 Log::bug(
"VisualizationLibrary::initGraphics(): Visualization Library Graphics is already initialized!\n");
84 registerVLXGraphicsWrappers();
88 #if defined(VL_IO_3D_OBJ) 91 #if defined(VL_IO_3D_3DS) 94 #if defined(VL_IO_3D_AC3D) 97 #if defined(VL_IO_3D_PLY) 100 #if defined(VL_IO_3D_STL) 103 #if defined(VL_IO_3D_MD2) 106 #if defined(VL_IO_3D_COLLADA) 110 gInitializedGraphics =
true;
113 void VisualizationLibrary::shutdownGraphics()
115 if ( ! gInitializedGraphics ) {
116 Log::debug(
"VisualizationLibrary::shutdownGraphics(): VL Graphics not initialized.\n");
120 gInitializedGraphics =
false;
128 Log::debug(
"VisualizationLibrary::shutdownGraphics()\n");
145 void registerVLXGraphicsWrappers()
static void debug(const String &message)
Use this function to provide extra information useful to investigate and solve problems.
VLX wrapper of vl::Array.
The FontManager class keeps a map associating a font path, size and smoothing flag to a Font object...
void registerClassWrapper(const vl::TypeInfo &type, ClassWrapper *wrapper)
VLX wrapper of vl::Texture.
VLX wrapper of vl::DistanceLODEvaluator and vl::PixelLODEvaluator.
The LoadWriterMD2 class is a ResourceLoadWriter capable of reading MD2 files.
VLX wrapper of vl::Material.
static VLMAIN_EXPORT void shutdown()
Releases all the resources acquired by VLCore and VLGraphics.
VLX wrapper of vl::Viewport.
VLGRAPHICS_EXPORT void setDefFontManager(FontManager *)
Sets the default FontManager used by Visualization Library.
VLX wrapper of vl::GLSLProgram.
VLX_EXPORT Registry * defVLXRegistry()
The LoadWriterPLY class is a ResourceLoadWriter capable of reading PLY files.
The LoadWriterAC3D class is a ResourceLoadWriter capable of reading AC3D files.
Visualization Library main namespace.
The LoadWriterDae class is a ResourceLoadWriter capable of reading COLLADA files. ...
VLX wrapper of vl::SecondaryColor.
static VLMAIN_EXPORT void init(bool log_info=true)
Initializes VLCore and VLGraphics libraries.
static void bug(const String &message)
Use this function to provide information about programming errors: wrong parameter initialization...
VLX wrapper of vl::Light.
VLX wrapper of vl::Color.
static VLMAIN_EXPORT bool isGraphicsInitialized()
Returns true if VLGraphics library is initialized and shutdown has not been called.
The LoadWriterOBJ class is a ResourceLoadWriter capable of reading OBJ files.
VLX wrapper of vl::Geometry.
void releaseAllFonts()
Releases all Fonts and associated resources and memory.
VLX wrapper of vl::Actor.
VLX wrapper of vl::ClipPlane.
VLX wrapper of vl::DepthSortCallback.
VLX wrapper of vl::Camera.
VLX wrapper of vl::GLSLVertexShader, vl::GLSLFragmentShader, vl::GLSLGeometryShader, vl::GLSLTessControlShader, vl::GLSLTessEvaluationShader.
VLX wrapper of vl::VertexAttrib.
VLX wrapper of vl::ResourceDatabase.
VLX wrapper of vl::Normal.
VLX wrapper of vl::TexParameter.
The ref<> class is used to reference-count an Object.
VLX wrapper of vl::Shader.
VLX wrapper of vl::DrawCall and subclasses.
The LoadWriterSTL class is a ResourceLoadWriter capable of reading STL files.
VLX wrapper of vl::TextureSampler.
VLGRAPHICS_EXPORT FontManager * defFontManager()
Returns the default FontManager used by Visualization Library.
VLX wrapper of vl::Effect.
void registerLoadWriter(ResourceLoadWriter *rlw)
Utility function, equivalent to defLoadWriterManager()->registerLoadWriter(rlw).
VLX wrapper of vl::PatchParameter.
The LoadWriter3DS class is a ResourceLoadWriter capable of reading 3DS files.