Initial commit - some engine bugs stopping compiling
This commit is contained in:
10
third-party/glad/test/rust/compile/wgl/default/001/Cargo.toml
vendored
Normal file
10
third-party/glad/test/rust/compile/wgl/default/001/Cargo.toml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "compile-wgl-default-001"
|
||||
version = "0.1.0"
|
||||
|
||||
[[bin]]
|
||||
path = "test.rs"
|
||||
name = "test"
|
||||
|
||||
[dependencies]
|
||||
glad-wgl = { path = "./glad-wgl/" }
|
||||
16
third-party/glad/test/rust/compile/wgl/default/001/test.rs
vendored
Normal file
16
third-party/glad/test/rust/compile/wgl/default/001/test.rs
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
#![deny(warnings)]
|
||||
/**
|
||||
* Full WGL should compile
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="wgl=" rust
|
||||
* COMPILE: cp -r $test_dir/. $tmp && cd $tmp && cargo build
|
||||
* RUN: cargo run
|
||||
*/
|
||||
extern crate glad_wgl;
|
||||
use glad_wgl::wgl;
|
||||
|
||||
#[allow(path_statements)]
|
||||
fn main() {
|
||||
wgl::GetProcAddress;
|
||||
wgl::GetSwapIntervalEXT;
|
||||
}
|
||||
Reference in New Issue
Block a user