Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion swgl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ glsl-to-cxx = { path = "../glsl-to-cxx" }
webrender_build = { path = "../webrender_build" }

[dependencies]
gleam = "0.13.1"
gleam = { version = "0.15.0", git = "https://github.com/fschutt/gleam", branch = "no_std", default-features = false }
3 changes: 3 additions & 0 deletions swgl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@

#![crate_name = "swgl"]
#![crate_type = "lib"]
#![no_std]

extern crate gleam;
#[macro_use]
extern crate alloc;

mod swgl_fns;

Expand Down
9 changes: 6 additions & 3 deletions swgl/src/swgl_fns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

use gleam::gl::*;
use std::ffi::{CStr, CString};
use std::os::raw::{c_char, c_int, c_void};
use std::ptr;
use std::str;
use gleam::gl::ffi::__gl_imports::{c_char, c_int, c_void};
use core::ptr;
use core::str;
use alloc::string::ToString;
use alloc::string::String;
use alloc::vec::Vec;

#[allow(unused)]
macro_rules! debug {
Expand Down