Skip to content

Instantly share code, notes, and snippets.

@leroycep
leroycep / build.zig
Created June 30, 2019 14:17
Kind of working Raylib in zig example
const std = @import("std");
const Builder = std.build.Builder;
pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
var exe = b.addExecutable("game", "src/main.zig");
exe.setBuildMode(mode);
exe.addLibPath("lib");
@leroycep
leroycep / RUST_BACKTRACE
Created April 24, 2019 22:31
Error loading texture in amethyst
~/p/f/g/dodger (master|✔) 1 $ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.25s
Running `target/debug/dodger`
[INFO][winit::platform::platform::x11::window] Guessed window DPI factor: 1.8333333333333333
[DEBUG][winit::platform::platform::x11::window] Calculated physical dimensions: 500x500
[INFO][gfx_device_gl::info] parsing version '4.5 (Core Profile) Mesa 18.1.7'
[INFO][gfx_device_gl::info] parsing version '4.50'
[INFO][gfx_device_gl] Info { platform_name: PlatformName { vendor: "Intel Open Source Technology Center", renderer: "Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) " }, version: 4.5, shading_language: 4.50, extensions: {"GL_NV_depth_clamp", "GL_INTEL_performance_query", "GL_ARB_pipeline_statistics_query", "GL_ARB_texture_query_levels", "GL_ARB_map_buffer_range", "GL_ARB_draw_elements_base_vertex", "GL_AMD_vertex_shader_layer", "GL_ARB_texture_multisample", "GL_ARB_shader_texture_lod", "GL_NV_packed_depth_stencil", "GL_ARB_gpu_shader_fp64", "GL_KHR_no_error", "GL_EXT_sh
@leroycep
leroycep / shell.nix
Created April 14, 2019 16:17
nix-shell environment for running veloren
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
in
with nixpkgs;
stdenv.mkDerivation {
name = "veloren-env";
buildInputs = [
(nixpkgs.rustChannelOf { date = "2019-04-11"; channel = "nightly"; }).rust
git