Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quality of Life changes to wgpu/js #4008

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

Daxode
Copy link
Contributor

@Daxode Daxode commented Aug 2, 2024

Makes wgpu.Color a [4]f32 to be more nice for odin (get all the fancy color.rggg stuff including wgpu.Color(1))

Also a tiny addition to js/events so you can do:

js.add_window_event_listener(.HashChange, nil, proc(e: js.Event) {
        buf := [256]u8{};
        val := js_ext.get_current_url(buf[:])
        fmt.println("Current URL:", val)
    })

@laytan laytan merged commit 500c117 into odin-lang:master Aug 2, 2024
6 checks passed
@Daxode Daxode deleted the wasm-quality-of-life branch August 2, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants