You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like raylib-sys/bindings_web.rs is missing some constants and enums.
When I compile it with command cargo build --target=wasm32-unknown-emscripten, I get those errors:
error[E0432]: unresolved import `ffi::CameraProjection`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/consts.rs:6:9
|
6 | pub use ffi::CameraProjection;
| ^^^^^^^^^^^^^^^^^^^^^ no `CameraProjection` in `ffi`
error[E0432]: unresolved import `ffi::ConfigFlags`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/consts.rs:7:9
|
7 | pub use ffi::ConfigFlags;
| ^^^^^-----------
| | |
| | help: a similar name exists in the module: `ConfigFlag`
| no `ConfigFlags` in `ffi`
error[E0432]: unresolved import `ffi::CubemapLayout`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/consts.rs:8:9
|
8 | pub use ffi::CubemapLayout;
| ^^^^^-------------
| | |
| | help: a similar name exists in the module: `CubemapLayoutType`
| no `CubemapLayout` in `ffi`
error[E0432]: unresolved import `ffi::Gestures`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/consts.rs:11:9
|
11 | pub use ffi::Gestures;
| ^^^^^^^^^^^^^ no `Gestures` in `ffi`
error[E0432]: unresolved import `ffi::MaterialMapIndex`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/consts.rs:13:9
|
13 | pub use ffi::MaterialMapIndex;
| ^^^^^----------------
| | |
| | help: a similar name exists in the module: `MaterialMapType`
| no `MaterialMapIndex` in `ffi`
error[E0432]: unresolved import `ffi::NPatchLayout`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/consts.rs:15:9
|
15 | pub use ffi::NPatchLayout;
| ^^^^^^^^^^^^^^^^^ no `NPatchLayout` in `ffi`
error[E0432]: unresolved import `ffi::TextureFilter`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/consts.rs:19:9
|
19 | pub use ffi::TextureFilter;
| ^^^^^-------------
| | |
| | help: a similar name exists in the module: `SetTextureFilter`
| no `TextureFilter` in `ffi`
error[E0432]: unresolved import `ffi::TextureWrap`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/consts.rs:20:9
|
20 | pub use ffi::TextureWrap;
| ^^^^^-----------
| | |
| | help: a similar name exists in the module: `SetTextureWrap`
| no `TextureWrap` in `ffi`
error[E0432]: unresolved import `ffi::TraceLogLevel`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/consts.rs:21:9
|
21 | pub use ffi::TraceLogLevel;
| ^^^^^-------------
| | |
| | help: a similar name exists in the module: `SetTraceLogLevel`
| no `TraceLogLevel` in `ffi`
error[E0433]: failed to resolve: could not find `CameraProjection` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/camera.rs:85:31
|
85 | projection_: ffi::CameraProjection::CAMERA_PERSPECTIVE,
| ^^^^^^^^^^^^^^^^ could not find `CameraProjection` in `ffi`
error[E0433]: failed to resolve: could not find `CameraProjection` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/camera.rs:92:30
|
92 | c.projection_ = ffi::CameraProjection::CAMERA_ORTHOGRAPHIC;
| ^^^^^^^^^^^^^^^^ could not find `CameraProjection` in `ffi`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:25:24
|
25 | self.0 & (ffi::ConfigFlags::FLAG_VSYNC_HINT as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:31:28
|
31 | self.0 |= ffi::ConfigFlags::FLAG_VSYNC_HINT as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:34:30
|
34 | self.0 &= !(ffi::ConfigFlags::FLAG_VSYNC_HINT as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:40:24
|
40 | self.0 & (ffi::ConfigFlags::FLAG_FULLSCREEN_MODE as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:46:28
|
46 | self.0 |= ffi::ConfigFlags::FLAG_FULLSCREEN_MODE as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:49:30
|
49 | self.0 &= !(ffi::ConfigFlags::FLAG_FULLSCREEN_MODE as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:55:24
|
55 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_RESIZABLE as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:61:28
|
61 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_RESIZABLE as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:64:30
|
64 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_RESIZABLE as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:70:24
|
70 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_UNDECORATED as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:76:28
|
76 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_UNDECORATED as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:79:30
|
79 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_UNDECORATED as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:85:24
|
85 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_HIDDEN as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:91:28
|
91 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_HIDDEN as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:94:30
|
94 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_HIDDEN as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:100:24
|
100 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_MINIMIZED as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:106:28
|
106 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_MINIMIZED as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:109:30
|
109 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_MINIMIZED as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:115:24
|
115 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_MAXIMIZED as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:121:28
|
121 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_MAXIMIZED as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:124:30
|
124 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_MAXIMIZED as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:130:24
|
130 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_UNFOCUSED as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:136:28
|
136 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_UNFOCUSED as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:139:30
|
139 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_UNFOCUSED as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:145:24
|
145 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_TOPMOST as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:151:28
|
151 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_TOPMOST as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:154:30
|
154 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_TOPMOST as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:160:24
|
160 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_ALWAYS_RUN as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:166:28
|
166 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_ALWAYS_RUN as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:169:30
|
169 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_ALWAYS_RUN as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:175:24
|
175 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_TRANSPARENT as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:181:28
|
181 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_TRANSPARENT as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:184:30
|
184 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_TRANSPARENT as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:190:24
|
190 | self.0 & (ffi::ConfigFlags::FLAG_WINDOW_HIGHDPI as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:196:28
|
196 | self.0 |= ffi::ConfigFlags::FLAG_WINDOW_HIGHDPI as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:199:30
|
199 | self.0 &= !(ffi::ConfigFlags::FLAG_WINDOW_HIGHDPI as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:205:24
|
205 | self.0 & (ffi::ConfigFlags::FLAG_MSAA_4X_HINT as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:211:28
|
211 | self.0 |= ffi::ConfigFlags::FLAG_MSAA_4X_HINT as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:214:30
|
214 | self.0 &= !(ffi::ConfigFlags::FLAG_MSAA_4X_HINT as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:220:24
|
220 | self.0 & (ffi::ConfigFlags::FLAG_INTERLACED_HINT as i32) != 0
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:226:28
|
226 | self.0 |= ffi::ConfigFlags::FLAG_INTERLACED_HINT as i32;
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:229:30
|
229 | self.0 &= !(ffi::ConfigFlags::FLAG_INTERLACED_HINT as i32);
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:558:40
|
558 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_VSYNC_HINT as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:561:40
|
561 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_FULLSCREEN_MODE as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:564:40
|
564 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_RESIZABLE as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:567:40
|
567 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_UNDECORATED as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:570:40
|
570 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_HIDDEN as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:573:40
|
573 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_MINIMIZED as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:576:40
|
576 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_MAXIMIZED as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:579:40
|
579 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_UNFOCUSED as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:582:40
|
582 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_TOPMOST as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:585:40
|
585 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_ALWAYS_RUN as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:589:40
|
589 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_TRANSPARENT as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:592:40
|
592 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_WINDOW_HIGHDPI as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:595:40
|
595 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_MSAA_4X_HINT as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0433]: failed to resolve: could not find `ConfigFlags` in `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:598:40
|
598 | if ffi::IsWindowState(ffi::ConfigFlags::FLAG_INTERLACED_HINT as u32) {
| ^^^^^^^^^^^
| |
| could not find `ConfigFlags` in `ffi`
| help: an enum with a similar name exists: `ConfigFlag`
error[E0412]: cannot find type `CameraProjection` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/camera.rs:13:23
|
13 | projection_: ffi::CameraProjection,
| ^^^^^^^^^^^^^^^^ not found in `ffi`
error[E0425]: cannot find function, tuple struct or tuple variant `EndVrStereoMode` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/drawing.rs:87:23
|
87 | unsafe { ffi::EndVrStereoMode() }
| ^^^^^^^^^^^^^^^ help: a function with a similar name exists: `EndTextureMode`
|
::: /mnt/Dev/Rust/Games/test/target/wasm32-unknown-emscripten/debug/build/raylib-sys-9e77ec43c28ed518/out/bindings.rs:4676:5
|
4676 | pub fn EndTextureMode();
| ----------------------- similarly named function `EndTextureMode` defined here
error[E0425]: cannot find function, tuple struct or tuple variant `BeginVrStereoMode` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/drawing.rs:107:23
|
107 | unsafe { ffi::BeginVrStereoMode(*vr_config.as_ref()) }
| ^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `BeginTextureMode`
|
::: /mnt/Dev/Rust/Games/test/target/wasm32-unknown-emscripten/debug/build/raylib-sys-9e77ec43c28ed518/out/bindings.rs:4673:5
|
4673 | pub fn BeginTextureMode(target: RenderTexture2D);
| ------------------------------------------------ similarly named function `BeginTextureMode` defined here
error[E0425]: cannot find function, tuple struct or tuple variant `DrawLineBezierQuad` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/drawing.rs:389:18
|
389 | ffi::DrawLineBezierQuad(
| ^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `DrawLineBezier`
|
::: /mnt/Dev/Rust/Games/test/target/wasm32-unknown-emscripten/debug/build/raylib-sys-9e77ec43c28ed518/out/bindings.rs:5060:5
|
5060 | pub fn DrawLineBezier(startPos: Vector2, endPos: Vector2, thick: f32, color: Color);
| ----------------------------------------------------------------------------------- similarly named function `DrawLineBezier` defined here
error[E0425]: cannot find function, tuple struct or tuple variant `DrawTexturePoly` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/drawing.rs:1016:18
|
1016 | ffi::DrawTexturePoly(
| ^^^^^^^^^^^^^^^ help: a function with a similar name exists: `DrawTexturePro`
|
::: /mnt/Dev/Rust/Games/test/target/wasm32-unknown-emscripten/debug/build/raylib-sys-9e77ec43c28ed518/out/bindings.rs:5718:5
|
5718 | / pub fn DrawTexturePro(
5719 | | texture: Texture2D,
5720 | | source: Rectangle,
5721 | | dest: Rectangle,
... |
5724 | | tint: Color,
5725 | | );
| |_____- similarly named function `DrawTexturePro` defined here
error[E0425]: cannot find function, tuple struct or tuple variant `LoadShaderFromMemory` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/shaders.rs:53:29
|
53 | Shader(ffi::LoadShaderFromMemory(
| ^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `LoadImageFromMemory`
|
::: /mnt/Dev/Rust/Games/test/target/wasm32-unknown-emscripten/debug/build/raylib-sys-9e77ec43c28ed518/out/bindings.rs:5322:5
|
5322 | / pub fn LoadImageFromMemory(
5323 | | fileType: *const ::std::os::raw::c_char,
5324 | | fileData: *const ::std::os::raw::c_uchar,
5325 | | dataSize: ::std::os::raw::c_int,
5326 | | ) -> Image;
| |______________- similarly named function `LoadImageFromMemory` defined here
error[E0425]: cannot find function, tuple struct or tuple variant `LoadShaderFromMemory` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/shaders.rs:59:29
|
59 | Shader(ffi::LoadShaderFromMemory(
| ^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `LoadImageFromMemory`
|
::: /mnt/Dev/Rust/Games/test/target/wasm32-unknown-emscripten/debug/build/raylib-sys-9e77ec43c28ed518/out/bindings.rs:5322:5
|
5322 | / pub fn LoadImageFromMemory(
5323 | | fileType: *const ::std::os::raw::c_char,
5324 | | fileData: *const ::std::os::raw::c_uchar,
5325 | | dataSize: ::std::os::raw::c_int,
5326 | | ) -> Image;
| |______________- similarly named function `LoadImageFromMemory` defined here
error[E0425]: cannot find function, tuple struct or tuple variant `LoadShaderFromMemory` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/shaders.rs:65:29
|
65 | Shader(ffi::LoadShaderFromMemory(
| ^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `LoadImageFromMemory`
|
::: /mnt/Dev/Rust/Games/test/target/wasm32-unknown-emscripten/debug/build/raylib-sys-9e77ec43c28ed518/out/bindings.rs:5322:5
|
5322 | / pub fn LoadImageFromMemory(
5323 | | fileType: *const ::std::os::raw::c_char,
5324 | | fileData: *const ::std::os::raw::c_uchar,
5325 | | dataSize: ::std::os::raw::c_int,
5326 | | ) -> Image;
| |______________- similarly named function `LoadImageFromMemory` defined here
error[E0425]: cannot find function, tuple struct or tuple variant `LoadShaderFromMemory` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/shaders.rs:71:29
|
71 | Shader(ffi::LoadShaderFromMemory(
| ^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `LoadImageFromMemory`
|
::: /mnt/Dev/Rust/Games/test/target/wasm32-unknown-emscripten/debug/build/raylib-sys-9e77ec43c28ed518/out/bindings.rs:5322:5
|
5322 | / pub fn LoadImageFromMemory(
5323 | | fileType: *const ::std::os::raw::c_char,
5324 | | fileData: *const ::std::os::raw::c_uchar,
5325 | | dataSize: ::std::os::raw::c_int,
5326 | | ) -> Image;
| |______________- similarly named function `LoadImageFromMemory` defined here
error[E0425]: cannot find value `UnloadVrStereoConfig` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/vr.rs:10:10
|
10 | ffi::UnloadVrStereoConfig
| ^^^^^^^^^^^^^^^^^^^^ not found in `ffi`
error[E0425]: cannot find function, tuple struct or tuple variant `LoadVrStereoConfig` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/vr.rs:63:45
|
63 | return VrStereoConfig(unsafe { ffi::LoadVrStereoConfig(device.into()) });
| ^^^^^^^^^^^^^^^^^^ not found in `ffi`
error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentMonitor` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:244:19
|
244 | unsafe { ffi::GetCurrentMonitor() }
| ^^^^^^^^^^^^^^^^^ not found in `ffi`
error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentMonitor` in module `ffi`
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/window.rs:250:19
|
250 | unsafe { ffi::GetCurrentMonitor() }
| ^^^^^^^^^^^^^^^^^ not found in `ffi`
error[E0425]: cannot find value `FLAG_FULLSCREEN_MODE` in this scope
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/mod.rs:168:22
|
168 | flags |= FLAG_FULLSCREEN_MODE as u32;
| ^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
22 + use crate::ffi::ConfigFlag::FLAG_FULLSCREEN_MODE;
|
22 + use raylib_sys::ConfigFlag::FLAG_FULLSCREEN_MODE;
|
error[E0425]: cannot find value `FLAG_WINDOW_RESIZABLE` in this scope
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/mod.rs:171:22
|
171 | flags |= FLAG_WINDOW_RESIZABLE as u32;
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
22 + use crate::ffi::ConfigFlag::FLAG_WINDOW_RESIZABLE;
|
22 + use raylib_sys::ConfigFlag::FLAG_WINDOW_RESIZABLE;
|
error[E0425]: cannot find value `FLAG_WINDOW_UNDECORATED` in this scope
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/mod.rs:174:22
|
174 | flags |= FLAG_WINDOW_UNDECORATED as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
22 + use crate::ffi::ConfigFlag::FLAG_WINDOW_UNDECORATED;
|
22 + use raylib_sys::ConfigFlag::FLAG_WINDOW_UNDECORATED;
|
error[E0425]: cannot find value `FLAG_WINDOW_TRANSPARENT` in this scope
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/mod.rs:177:22
|
177 | flags |= FLAG_WINDOW_TRANSPARENT as u32;
| ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
22 + use crate::ffi::ConfigFlag::FLAG_WINDOW_TRANSPARENT;
|
22 + use raylib_sys::ConfigFlag::FLAG_WINDOW_TRANSPARENT;
|
error[E0425]: cannot find value `FLAG_MSAA_4X_HINT` in this scope
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/mod.rs:180:22
|
180 | flags |= FLAG_MSAA_4X_HINT as u32;
| ^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
22 + use crate::ffi::ConfigFlag::FLAG_MSAA_4X_HINT;
|
22 + use raylib_sys::ConfigFlag::FLAG_MSAA_4X_HINT;
|
error[E0425]: cannot find value `FLAG_VSYNC_HINT` in this scope
--> /home/infinitecoder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/raylib-3.7.0/src/core/mod.rs:183:22
|
183 | flags |= FLAG_VSYNC_HINT as u32;
| ^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
22 + use crate::ffi::ConfigFlag::FLAG_VSYNC_HINT;
|
22 + use raylib_sys::ConfigFlag::FLAG_VSYNC_HINT;
|
Some errors have detailed explanations: E0412, E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `raylib` (lib) due to 86 previous errors
make: *** [Makefile:4: debug] Error 101
Workaround:
Copy bindings_linux.rs. I've tested some 2d & 3d graphics, it works.
The text was updated successfully, but these errors were encountered:
Hello!
I'm using raylib-rs v3.7.0.
I feel like raylib-sys/bindings_web.rs is missing some constants and enums.
When I compile it with command
cargo build --target=wasm32-unknown-emscripten
, I get those errors:Workaround:
Copy bindings_linux.rs. I've tested some 2d & 3d graphics, it works.
The text was updated successfully, but these errors were encountered: