Skip to content

Commit a027e9f

Browse files
committed
fix(llgo/doc) : fix bug
1 parent b882ca8 commit a027e9f

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

doc/LLGO Migration for C C++ Third-Party Libraries.md renamed to doc/llgo_migration_for_c_c++_third-party_libraries.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ clang++ -dynamiclib x.cpp -o {users third-party libraries path}/lib/libbar.dylib
9696

9797
```bash
9898
cd inih/_demo/inih_demo
99-
llgo run inih_demo.go
100-
99+
llgo run .
101100
```
102101

103102
## Handling Special Types
@@ -108,17 +107,6 @@ Use const to implement enum values
108107

109108
```go
110109
/*
111-
const (
112-
BLEND_ALPHA BlendMode = iota // Blend textures considering alpha (default)
113-
BLEND_ADDITIVE // Blend textures adding colors
114-
BLEND_MULTIPLIED // Blend textures multiplying colors
115-
BLEND_ADD_COLORS // Blend textures adding colors (alternative)
116-
BLEND_SUBTRACT_COLORS // Blend textures subtracting colors (alternative)
117-
BLEND_ALPHA_PREMULTIPLY // Blend premultiplied textures considering alpha
118-
BLEND_CUSTOM // Blend textures using custom src/dst factors (use rlSetBlendFactors())
119-
BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
120-
)
121-
*/
122110
typedef enum {
123111
BLEND_ALPHA = 0, // Blend textures considering alpha (default)
124112
BLEND_ADDITIVE, // Blend textures adding colors
@@ -129,7 +117,17 @@ typedef enum {
129117
BLEND_CUSTOM, // Blend textures using custom src/dst factors (use rlSetBlendFactors())
130118
BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
131119
} BlendMode;
132-
120+
*/
121+
const (
122+
BLEND_ALPHA BlendMode = iota // Blend textures considering alpha (default)
123+
BLEND_ADDITIVE // Blend textures adding colors
124+
BLEND_MULTIPLIED // Blend textures multiplying colors
125+
BLEND_ADD_COLORS // Blend textures adding colors (alternative)
126+
BLEND_SUBTRACT_COLORS // Blend textures subtracting colors (alternative)
127+
BLEND_ALPHA_PREMULTIPLY // Blend premultiplied textures considering alpha
128+
BLEND_CUSTOM // Blend textures using custom src/dst factors (use rlSetBlendFactors())
129+
BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
130+
)
133131
```
134132

135133
### Handling Structs in C

0 commit comments

Comments
 (0)