Skip to content

Instantly share code, notes, and snippets.

Alexander Overvoorde Overv

Block or report user

Report or block Overv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main.cpp
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
@Overv
Overv / HelloTriangle.cc
Created Apr 24, 2016
Vulkan hello triangle
View HelloTriangle.cc
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <chrono>
#include <functional>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
@Overv
Overv / VulkanClear.cc
Last active Nov 1, 2018
Vulkan code for clearing the screen
View VulkanClear.cc
#include <iostream>
#include <vector>
#define GLFW_INCLUDE_VULKAN
#define VK_USE_PLATFORM_WIN32_KHR
#include <GLFW/glfw3.h>
#define GLFW_EXPOSE_NATIVE_WIN32
#include <GLFW/glfw3native.h>
View clean.py
import os
import re
def get_filepaths(directory):
file_paths = []
for root, directories, files in os.walk(directory):
for filename in files:
filepath = os.path.join(root, filename)
file_paths.append(filepath)
@Overv
Overv / main.cpp
Created Apr 15, 2015
Hello World
View main.cpp
#include <iostream>
int main() {
std::cout << "Hello, world!" << std::endl;
return 0;
}
@Overv
Overv / main.cpp
Last active Aug 29, 2015
Triangle in OpenGL without vertex data
View main.cpp
#include <SDL.h>
#define GLEW_STATIC
#include <GL/glew.h>
const char* vertShaderSrc =
"#version 440\n"
"void main() {"
"if (gl_VertexID == 0) gl_Position = vec4( 0.0, 0.5, 0, 1);"
"if (gl_VertexID == 1) gl_Position = vec4( 0.5, -0.5, 0, 1);"
@Overv
Overv / Makefile
Last active Aug 29, 2015
GPU backed BUSE block device
View Makefile
gpu: gpu.cpp
g++ -std=c++11 -O2 -flto -march=native -o gpu gpu.cpp -L. -lbuse -lOpenCL
View keybase.md

Keybase proof

I hereby claim:

  • I am overv on github.
  • I am overv (https://keybase.io/overv) on keybase.
  • I have a public key whose fingerprint is 6FC5 3ADC 96B2 9E45 BACE DD87 1914 5C77 E4F4 3EB3

To claim this, I am signing this object:

@Overv
Overv / json.d
Last active Jan 2, 2016
Serialize D types to json
View json.d
module json;
import std.conv;
import std.array;
import std.traits;
string json(T) (T obj) {
static if (is(typeof(obj) == string)) {
return "\"" ~ obj.replace("\\", "\\\\").replace("\"", "\\\"") ~ "\"";
} else static if (isBasicType!(typeof(obj))) {
@Overv
Overv / json.d
Last active Jan 2, 2016
Convert any D type to JSON automatically through trait/template magic
View json.d
import std.stdio;
import std.conv;
import std.array;
import std.traits;
class Foo {
Bar nested;
this(Bar nested) {
this.nested = nested;
You can’t perform that action at this time.