From fb5586447f94515bd47d28310a037fc2a45ecfb0 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Fri, 19 Jan 2024 21:41:06 +0900 Subject: [PATCH] Update README.md updated sample code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d8301d7f..09767600 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ ThorVG renders vector shapes to a given canvas buffer. The following is a quick First, you should initialize the ThorVG engine: ```cpp -tvg::Initializer::init(tvg::CanvasEngine::Sw, 0); //engine method, thread count +tvg::Initializer::init(0); //thread count ``` Then it would be best if you prepared an empty canvas for drawing on it: @@ -218,7 +218,7 @@ Then you can acquire the rendered image from the buffer memory. Lastly, terminate the engine after its usage: ```cpp -tvg::Initializer::term(tvg::CanvasEngine::Sw); +tvg::Initializer::term(); ``` [Back to contents](#contents)