Class GraphicalScenePart#
Defined in File GraphicalScenePart.h
Inheritance Relationships#
Base Types#
public Karana::Scene::GraphicalSceneNode(Class GraphicalSceneNode)public Karana::Scene::ScenePart(Class ScenePart)
Derived Type#
public Karana::Scene::WebScenePart(Class WebScenePart)
Class Documentation#
-
class GraphicalScenePart : public virtual Karana::Scene::GraphicalSceneNode, public Karana::Scene::ScenePart#
ScenePart with added graphics-specific interface.
Subclassed by Karana::Scene::WebScenePart
Public Functions
-
virtual ~GraphicalScenePart()#
Public Static Functions
-
static kc::ks_ptr<GraphicalScenePart> create(std::string_view name, const VarStaticGeometry &geometry, const kc::ks_ptr<GraphicalScene> &scene, const VarMaterial &material = defaultMaterial(), layer_t layers = LAYER_PHYSICAL)#
Create a GraphicalScenePart.
- Parameters:
name – - Name of the GraphicalScenePart.
geometry – - Geometry of the GraphicalScenePart.
scene – - The GraphicalScene to add the GraphicalScenePart to.
material – - Material for the GraphicalScenePart.
layers – - Layers to use for the GraphicalScenePart.
- Returns:
The new scene part.
Protected Functions
-
GraphicalScenePart(std::string_view name, const VarStaticGeometry &geometry, const VarMaterial &material, layer_t layers, const kc::ks_ptr<Scene> &scene)#
GraphicalScenePart constructor.
- Parameters:
name – - Name of the GraphicalScenePart.
geometry – - Geometry of the GraphicalScenePart.
scene – - The GraphicalScene to add the GraphicalScenePart to.
material – - Material for the GraphicalScenePart.
layers – - Layers to use for the GraphicalScenePart.
-
virtual ~GraphicalScenePart()#