Skip to content

Instantly share code, notes, and snippets.

View makefunstuff's full-sized avatar
😇
Why?

Iurii Plugatariov makefunstuff

😇
Why?
View GitHub Profile
@mmozeiko
mmozeiko / win32_d3d11.c
Last active May 13, 2025 01:28
setting up and using D3D11 in C
// example how to set up D3D11 rendering on Windows in C
#define COBJMACROS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <d3d11.h>
#include <dxgi1_3.h>
#include <d3dcompiler.h>
#include <dxgidebug.h>
@DaseinPhaos
DaseinPhaos / d3d11_triangle.odin
Created April 29, 2022 18:23
Minimal d3d11 triangles using Odin
// reference: https://gist.github.com/msmshazan/dfd5362004be37ff5e016b6a42be5083
package d3d11_triangle
import "core:strings"
import "core:runtime"
import "core:fmt"
import "core:sys/windows"
import d3d11 "vendor:directx/d3d11"
import dxgi "vendor:directx/dxgi"
import d3dc "vendor:directx/d3d_compiler"
@laytan
laytan / compile.sh
Last active January 18, 2025 08:36
Odin, GLFW & Vulkan boilerplate for Drawing a Triangle on https://vulkan-tutorial.com
#!/usr/bin/env sh
glslc shader.vert -o vert.spv
glslc shader.frag -o frag.spv
@miaoles
miaoles / main.odin
Last active October 28, 2024 12:16
vulkan-tutorial.com Triangle with Odin
// vulkan-tutorial.com Triangle with Odin
// also has personal tweaks/additions, explicit naming, entire enum names
package main
import fmt "core:fmt"
import math "core:math"
import os "core:os"
import str "core:strings"
import glfw "vendor:glfw"