3D

rapidjson 설치 방법

스스배 2023. 3. 22. 09:47

https://github.com/Tencent/rapidjson

 

GitHub - Tencent/rapidjson: A fast JSON parser/generator for C++ with both SAX/DOM style API

A fast JSON parser/generator for C++ with both SAX/DOM style API - GitHub - Tencent/rapidjson: A fast JSON parser/generator for C++ with both SAX/DOM style API

github.com

1. master 브런치를 클론한다.

 

2. rapidjson-master\rapidjson\include\rapidjson 에 있는 폴더를 Engine/Public 파일에 복사한다.

 

3. 해당 파일들을 include한다.

// json 형태로 만들어주기 위한 객체
#include "rapidjson/document.h"
// json파일을 json 버퍼에 쓰기위한 객체
#include "rapidjson/writer.h"
// stringg 객체를 쓰기위한 객체
#include "rapidjson/stringbuffer.h"
// json파일을 보기 좋게 정리해서 write해주는 객체
#include "rapidjson/prettywriter.h" 
// 지정한 경로에 json파일을 써주기 위한 객체
#include "rapidjson/filewritestream.h"
// 지정한 경로에 json파일을 읽기 위한 객체
#include "rapidjson/filereadstream.h"

 

'3D' 카테고리의 다른 글

[그래픽스] 렌더링 파이프라인  (0) 2023.12.30
[하드웨어] CPU와 GPU  (0) 2023.12.30
[3D] 사원수(쿼터니언)  (0) 2023.12.29
구와 평면의 충돌  (0) 2023.12.28