Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

code4game/libdraco_ue4

Repository files navigation

libdraco_ue4

Use the Draco and make it as a third-party library in UE4.

draco status

The MIT License

Visit in trello

Follow in twitter Join discord

pipeline status

Become a patreon Patreon invite

Support UE4.10 Support UE4.11 Support UE4.12 Support UE4.13 Support UE4.14 Support UE4.15 Support UE4.16 Support UE4.17 Support UE4.18 Support UE4.19

Windows 32-bit and 64-bit Linux macOS iOS

Download from itch.io

Usage

Copy to your project/plugin

First of all, download the archive Download from itch.io.

Then, you just extra the archive in [your_project_root]/ThirdParty/ for a UE4 project, or extra the archive in [your_plugin_root]/Source/ThirdParty/ for a UE4 plugin.

Add to the libdraco_ue4 as a module in your module

Just add the libdraco_ue4 to the PublicDependencyModuleNames list in [your_module.Build.cs].

Include the draco's header file

When include the draco's header file, you need write like this:

Because it has a compiler conflict between the draco::Status::Code::ERROR and the macro ERROR in UE4 when compile.

For example #include "draco/compression/decode.h".

#if defined(ERROR)
#define DRACO_MACRO_TEMP_ERROR      ERROR
#undef ERROR
#endif

#include "draco/compression/decode.h"

#if defined(DRACO_MACRO_TEMP_ERROR)
#define ERROR           DRACO_MACRO_TEMP_ERROR
#undef DRACO_MACRO_TEMP_ERROR
#endif