Prebuild files for sdl3.dll. Use SDL3-devel-3.4.10-mingw.tar.gz
- src
- main.zig
- build.zig
| const std = @import("std"); | |
| const zsdl3 = @import("zsdl3"); // https://github.com/felixuxx/zsdl3 | |
| pub const TerminalInput = struct { | |
| buffer: std.ArrayList(u8) = .empty, | |
| history: std.ArrayList([]const u8) = .empty, | |
| cursor_pos: usize = 0, // tracks byte index offset from the START | |
| pub fn init() TerminalInput { | |
| return .{}; |
| // zig 0.16.0 | |
| const std = @import("std"); | |
| pub const User = struct { | |
| id: u32, | |
| name: []const u8, | |
| date: []const u8, | |
| }; |
| // | |
| // do not use gpu in thread | |
| // zig 0.16.0 | |
| // https://github.com/raylib-zig/raylib-zig.git | |
| const std = @import("std"); | |
| const rl = @import("raylib"); | |
| const SharedData = struct { | |
| mutex: std.Io.Mutex = .init, |
| // working | |
| const rl = @import("raylib"); | |
| // https://github.com/raylib-zig/raylib-zig | |
| const rlgl = rl.gl; // raylib rlgl | |
| pub fn main() anyerror!void { | |
| // Initialization | |
| const screen_width = 800; | |
| const screen_height = 450; |
| // zig 0.16.0 | |
| const rl = @import("raylib"); // https://github.com/raylib-zig/raylib-zig | |
| const std = @import("std"); | |
| pub fn main() !void { | |
| // Set configuration flags BEFORE initializing the window | |
| rl.setConfigFlags(.{ | |
| .window_undecorated = true, | |
| .window_transparent = true, |
// reducer: scheduleReminder
// table: person
// view: my_player
// lifecycle: init
export const init = spacetimedb.init(_ctx => {
console.log("====::: INIT SPACETIMEDB :::====");
});
| // transform 3d hierarchy matrix4 | |
| import * as THREE from 'three'; | |
| import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; | |
| // import { TransformControls } from 'three/addons/controls/TransformControls.js'; | |
| import { ViewportGizmo } from "three-viewport-gizmo"; | |
| import van from "vanjs-core"; | |
| import { Pane } from 'https://cdn.jsdelivr.net/npm/tweakpane@4.0.5/dist/tweakpane.min.js'; | |
| import { label } from 'three/tsl'; |
| import * as THREE from 'three'; | |
| import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; | |
| // import { TransformControls } from 'three/addons/controls/TransformControls.js'; | |
| import { ViewportGizmo } from "three-viewport-gizmo"; | |
| import van from "vanjs-core"; | |
| import { Pane } from 'https://cdn.jsdelivr.net/npm/tweakpane@4.0.5/dist/tweakpane.min.js'; | |
| import { label } from 'three/tsl'; | |
| function degreeToRadians(degrees) { |
| // sqlite wasm | |
| // <script type="importmap"> | |
| // { | |
| // "imports":{ | |
| // "three":"https://cdn.jsdelivr.net/npm/three@0.183.2/+esm" | |
| // } | |
| // } | |
| // </script> | |
| import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.183.2/+esm'; |