From ccb0afa0c01d02f219a079eb9ca420d28b3830da Mon Sep 17 00:00:00 2001 From: marndorfer Date: Thu, 20 Oct 2022 13:12:06 -0700 Subject: [PATCH] Add initialization methods to the cpp docs --- cpp/source/basics/initializing.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cpp/source/basics/initializing.md b/cpp/source/basics/initializing.md index 5d2ebd5a..e2c71370 100644 --- a/cpp/source/basics/initializing.md +++ b/cpp/source/basics/initializing.md @@ -43,6 +43,20 @@ polyscope::show(); `backend` is an optional specifier for which [rendering backend]([[url.prefix]]/building#backends) to use, passing `""` selects a reasonable default backend. Generally, you should not need to manually set the backend. +??? func "`#!cpp checkInitialized()`" + + ##### checkInitialized() + + Check if polyscope has been initialized, if not an error is thrown. + + +??? func "`#!cpp isInitialized()`" + + ##### isInitialized() + + Returns true if the state of polyscope is initialized and false if not. + + ??? func "`#!cpp show()`" ##### show()