From a027e9fe1429db84b4828365aea5b1d79d9807c5 Mon Sep 17 00:00:00 2001 From: morpingsss Date: Thu, 18 Jul 2024 17:02:30 +0800 Subject: [PATCH] fix(llgo/doc) : fix bug --- ...ration_for_c_c++_third-party_libraries.md} | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) rename doc/{LLGO Migration for C C++ Third-Party Libraries.md => llgo_migration_for_c_c++_third-party_libraries.md} (99%) diff --git a/doc/LLGO Migration for C C++ Third-Party Libraries.md b/doc/llgo_migration_for_c_c++_third-party_libraries.md similarity index 99% rename from doc/LLGO Migration for C C++ Third-Party Libraries.md rename to doc/llgo_migration_for_c_c++_third-party_libraries.md index 07248195..afbdbf9b 100644 --- a/doc/LLGO Migration for C C++ Third-Party Libraries.md +++ b/doc/llgo_migration_for_c_c++_third-party_libraries.md @@ -96,8 +96,7 @@ clang++ -dynamiclib x.cpp -o {users third-party libraries path}/lib/libbar.dylib ```bash cd inih/_demo/inih_demo - llgo run inih_demo.go - + llgo run . ``` ## Handling Special Types @@ -108,17 +107,6 @@ Use const to implement enum values ```go /* -const ( - BLEND_ALPHA BlendMode = iota // Blend textures considering alpha (default) - BLEND_ADDITIVE // Blend textures adding colors - BLEND_MULTIPLIED // Blend textures multiplying colors - BLEND_ADD_COLORS // Blend textures adding colors (alternative) - BLEND_SUBTRACT_COLORS // Blend textures subtracting colors (alternative) - BLEND_ALPHA_PREMULTIPLY // Blend premultiplied textures considering alpha - BLEND_CUSTOM // Blend textures using custom src/dst factors (use rlSetBlendFactors()) - BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate()) -) -*/ typedef enum { BLEND_ALPHA = 0, // Blend textures considering alpha (default) BLEND_ADDITIVE, // Blend textures adding colors @@ -129,7 +117,17 @@ typedef enum { BLEND_CUSTOM, // Blend textures using custom src/dst factors (use rlSetBlendFactors()) BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate()) } BlendMode; - +*/ +const ( + BLEND_ALPHA BlendMode = iota // Blend textures considering alpha (default) + BLEND_ADDITIVE // Blend textures adding colors + BLEND_MULTIPLIED // Blend textures multiplying colors + BLEND_ADD_COLORS // Blend textures adding colors (alternative) + BLEND_SUBTRACT_COLORS // Blend textures subtracting colors (alternative) + BLEND_ALPHA_PREMULTIPLY // Blend premultiplied textures considering alpha + BLEND_CUSTOM // Blend textures using custom src/dst factors (use rlSetBlendFactors()) + BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate()) +) ``` ### Handling Structs in C