10 #ifndef CMZN_CONTEXT_HPP__
11 #define CMZN_CONTEXT_HPP__
13 #include "zinc/context.h"
58 Context(
const char *contextName) :
59 id(cmzn_context_create(contextName))
63 explicit Context(cmzn_context_id context_id) :
68 id(cmzn_context_access(context.id))
75 cmzn_context_destroy(&
id);
91 cmzn_context_id temp_id = cmzn_context_access(context.id);
94 cmzn_context_destroy(&
id);
120 return cmzn_context_get_version(
id, versionOut3);
130 return cmzn_context_get_revision(
id);
145 return cmzn_context_get_version_string(
id);
Fontmodule getFontmodule()
Definition: font.hpp:399
bool isValid() const
Definition: context.hpp:84
int getVersion(int *versionOut3)
Definition: context.hpp:118
Module managing all fonts.
Definition: font.hpp:268
Materialmodule getMaterialmodule()
Definition: material.hpp:444
int getRevision()
Definition: context.hpp:128
Glyphmodule getGlyphmodule()
Definition: glyph.hpp:806
A hierarchical block/namespace owning domains and fields.
Definition: region.hpp:33
Module managing all scene filters.
Definition: scenefilter.hpp:308
Region getDefaultRegion()
Definition: region.hpp:416
Module object for creating and managing scene viewers.
Definition: sceneviewer.hpp:1086
Sceneviewermodule getSceneviewermodule()
Definition: sceneviewer.hpp:1153
The context is the primary object created for each instance of Zinc.
Definition: context.hpp:47
Module managing all spectrums.
Definition: spectrum.hpp:847
Module managing all materials.
Definition: material.hpp:278
Timekeepermodule getTimekeepermodule()
Definition: timekeeper.hpp:289
Module managing all glyphs.
Definition: glyph.hpp:602
char * getVersionString()
Definition: context.hpp:143
Scenefiltermodule getScenefiltermodule()
Definition: scenefilter.hpp:500
Module managing all tessellation objects.
Definition: tessellation.hpp:247
Module for finding and managing timekeepers.
Definition: timekeeper.hpp:222
cmzn_context_id getId() const
Definition: context.hpp:105
Spectrummodule getSpectrummodule()
Definition: spectrum.hpp:986
Region createRegion()
Definition: region.hpp:421
Tessellationmodule getTessellationmodule()
Definition: tessellation.hpp:408