This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Computer Information: | |
Manufacturer: Micro-Star International Co., Ltd. | |
Model: X470 GAMING PLUS (MS-7B79) | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 7 2700 Eight-Core Processor | |
CPU Family: 0x17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Build instructions: | |
To compile and run the application with G++ or Clang++ use: | |
$ CXX -o application.o -c opengl_emscripten_example.cpp | |
$ CXX -o application application.o -lGLEW -lGLU -lGL -lglfw | |
$ ./application | |
To compile and with Emscripten use: | |
$ em++ -o application.o -c opengl_emscripten_example.cpp -s MAX_WEBGL_VERSION=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cargo.toml | |
[package] | |
name = "c-abi-to-rust" | |
version = "0.1.0" | |
authors = ["YakoYakoYokuYoku <gc1000ll@gmail.com>"] | |
edition = "2018" | |
[lib] | |
name = "ttaone" | |
crate-type = ["cdylib"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pretty neaty mingw-w64 shell script for Solus | |
# It works in other Linux distros (?) | |
# Set envars | |
DEST=/opt/mingw-solus # You can change it to whatever you want | |
TARGET=x86_64-w64-mingw32 | |
PREFIX=$DEST/$TARGET | |
PCS=`nproc` | |
# Make the sys-root and build directories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn drawcircle(canvas: &mut Canvas<Window>, p: &mut Coordinate<i16>, r: f64, color: Color) { | |
let mut x = r - 1; | |
let mut y = 0; | |
let px = p.x as i16; | |
let py = p.y as i16; | |
let mut dx = 1; | |
let mut dy = 1; | |
let mut err = dx - (r << 1); | |
while x >= y { |