microui.c 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -18
- package/microui/microui.c +1208 -1208
- package/microui/microui.h +296 -296
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ A *tiny*, portable, immediate-mode UI library written in ANSI C
|
|
|
16
16
|
|
|
17
17
|
Run:
|
|
18
18
|
|
|
19
|
-
```
|
|
19
|
+
```bash
|
|
20
20
|
$ npm i microui.c
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -25,33 +25,23 @@ And then include `microui.h` as follows:
|
|
|
25
25
|
```c
|
|
26
26
|
// main.c
|
|
27
27
|
#define MICROUI_IMPLEMENTATION
|
|
28
|
-
#include
|
|
28
|
+
#include <microui.h>
|
|
29
29
|
|
|
30
30
|
int main() { /* ... */ }
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
Finally, compile while adding the path `node_modules/microui.c` to your compiler's include paths.
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
$ clang main.c # or, use gcc
|
|
37
|
-
$ gcc main.c
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
You may also use a simpler approach:
|
|
41
|
-
|
|
42
|
-
```c
|
|
43
|
-
// main.c
|
|
44
|
-
#define MICROUI_IMPLEMENTATION
|
|
45
|
-
#include <microui.h>
|
|
46
|
-
|
|
47
|
-
int main() { /* ... */ }
|
|
36
|
+
$ clang -I./node_modules/microui.c main.c # or, use gcc
|
|
37
|
+
$ gcc -I./node_modules/microui.c main.c
|
|
48
38
|
```
|
|
49
39
|
|
|
50
|
-
|
|
40
|
+
You may also use a simpler approach with the [cpoach](https://www.npmjs.com/package/cpoach.sh) tool, which automatically adds the necessary include paths of all the installed dependencies for your project.
|
|
51
41
|
|
|
52
42
|
```bash
|
|
53
|
-
$ clang
|
|
54
|
-
$ gcc
|
|
43
|
+
$ cpoach clang main.c # or, use gcc
|
|
44
|
+
$ cpoach gcc main.c
|
|
55
45
|
```
|
|
56
46
|
|
|
57
47
|
<br>
|
|
@@ -109,6 +99,7 @@ the terms of the MIT license. See [LICENSE](LICENSE) for details.
|
|
|
109
99
|
<br>
|
|
110
100
|
|
|
111
101
|
|
|
102
|
+
[](https://wolfram77.github.io)<br>
|
|
112
103
|
[](https://github.com/rxi/microui)
|
|
113
104
|
[](https://nodef.github.io)
|
|
114
105
|

|