@@ -96,8 +96,7 @@ clang++ -dynamiclib x.cpp -o {users third-party libraries path}/lib/libbar.dylib
96
96
97
97
``` bash
98
98
cd inih/_demo/inih_demo
99
- llgo run inih_demo.go
100
-
99
+ llgo run .
101
100
```
102
101
103
102
## Handling Special Types
@@ -108,17 +107,6 @@ Use const to implement enum values
108
107
109
108
``` go
110
109
/*
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
- */
122
110
typedef enum {
123
111
BLEND_ALPHA = 0, // Blend textures considering alpha (default)
124
112
BLEND_ADDITIVE, // Blend textures adding colors
@@ -129,7 +117,17 @@ typedef enum {
129
117
BLEND_CUSTOM, // Blend textures using custom src/dst factors (use rlSetBlendFactors())
130
118
BLEND_CUSTOM_SEPARATE // Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
131
119
} 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
+ )
133
131
```
134
132
135
133
### Handling Structs in C
0 commit comments