1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#![allow(dead_code)]

// shared modules
#[macro_use]
mod shader;
#[macro_use]
mod styling;
#[macro_use]
mod cx;
#[macro_use]
mod liveclient;

#[cfg(all(not(feature="ipc"),target_os = "linux"))]
mod cx_opengl;
#[cfg(all(not(feature="ipc"),target_os = "linux"))]
mod cx_xlib;
#[cfg(all(not(feature="ipc"),any(target_os = "linux")))]
mod cx_linux;

#[cfg(all(not(feature="ipc"),target_os = "macos"))]
mod cx_metal;
#[cfg(all(not(feature="ipc"),target_os = "macos"))]
mod cx_metalsl;
#[cfg(all(not(feature="ipc"),target_os = "macos"))]
mod cx_cocoa;
#[cfg(all(not(feature="ipc"),any(target_os = "macos")))]
mod cx_macos;
#[cfg(all(not(feature="ipc"),any(target_os = "macos")))]
mod cx_apple;

#[cfg(all(not(feature="ipc"),target_os = "windows"))]
mod cx_dx11;
#[cfg(all(not(feature="ipc"),target_os = "windows"))]
mod cx_hlsl;
#[cfg(all(not(feature="ipc"),target_os = "windows"))]
mod cx_win32;
#[cfg(all(not(feature="ipc"),any(target_os = "windows")))]
mod cx_windows;

#[cfg(all(not(feature="ipc"),target_arch = "wasm32"))]
mod cx_webgl;
#[cfg(all(not(feature="ipc"),target_arch = "wasm32"))]
mod cx_wasm32;

#[cfg(all(not(feature="ipc"),any(target_arch = "wasm32", target_os = "linux")))]
mod cx_glsl;

#[cfg(all(not(feature="ipc"),any(target_os = "linux", target_os="macos", target_os="windows")))]
mod cx_desktop;

#[cfg(feature="ipc")]
mod cx_ipc_child;

#[cfg(feature="ipc")]
pub use crate::cx_ipc_child::*;

#[cfg(all(feature="ipc",target_arch = "wasm32"))]
mod cx_ipc_wasm32;

#[cfg(all(feature="ipc",target_arch = "wasm32"))]
pub use crate::cx_ipc_wasm32::*;

#[cfg(all(feature="ipc",any(target_os = "linux", target_os = "macos")))]
mod cx_ipc_posix;

#[cfg(all(feature="ipc",any(target_os = "linux", target_os = "macos")))]
pub use crate::cx_ipc_posix::*;

#[cfg(all(feature="ipc",target_os = "windows"))]
mod cx_ipc_win32;

#[cfg(all(feature="ipc",target_os = "windows"))]
pub use crate::cx_ipc_win32::*;

mod turtle;
mod fonts;
mod cursor;
mod window;
mod view;
mod pass;
mod texture;
mod animator;
mod elements;
mod math;
mod colors;
mod area;
mod shadergen;
mod quad;
mod blit;
mod text;
mod events;
mod menu; 

pub use crate::cx::*;
pub use crate::quad::*;
pub use crate::blit::*;
pub use crate::text::*;
pub use crate::elements::*;