I’m developing a native extension and using the Defold SDK. I downloaded defoldsdk_headers.zip
, extracted it and added dmsdk
folder to my include path. In v1.9.3 and before, this worked as expected: simply writing #include <dmsdk/sdk.h>
got type hints and auto completion in IDE without any error.
However since v1.9.4 the IDE will complain that the file graphics/graphics_ddf.h
included by dmsdk/graphics/graphics.h
is missing. I figured out that this change was introduced by #8743 which moved the definition of enum VertexStepFunction
to graphics_ddf.proto
.
I’m temporarily adding all other stuffs in defoldsdk
to include paths to avoid this problem, but it’s generally not a good idea. I’m also working on packaging defoldsdk-headers to AUR and I want to keep the package as clean as possible. I’m considering patching graphics.h
just for packaging. But I’d really appreciate it if we can solve this issue from source.