Skip to content

Instantly share code, notes, and snippets.

View sumofat's full-sized avatar

SumoFat sumofat

View GitHub Profile
@benoitjacquier
benoitjacquier / common.odin
Created April 3, 2021 13:07
odin_win32_winmd
package win32_winmd
import windows "core:sys/windows"
import win32 "core:sys/win32"
import c "core:c"
LARGE_INTEGER :: windows.LARGE_INTEGER;
ULARGE_INTEGER :: u64;
DWORD :: windows.DWORD;
LONG :: windows.LONG;
ULONG :: windows.ULONG;
@jakubtomsu
jakubtomsu / collision_3d.odin
Last active June 13, 2024 21:08
Simple raylib example of 3d FPS player movement with triangle collision
package main
import "core:fmt"
import "core:math"
import "core:math/linalg"
import rl "vendor:raylib"
main :: proc() {
rl.SetConfigFlags({.VSYNC_HINT, .WINDOW_RESIZABLE, .MSAA_4X_HINT})
rl.InitWindow(800, 600, "collision")
@lucaspoffo
lucaspoffo / imgui_impl_raylib.odin
Last active July 8, 2024 21:49
Raylib backend for Dear ImGui for the odin bindings
package imgui_impl_raylib
// Based on the raylib extras rlImGui: https://github.com/raylib-extras/rlImGui/blob/main/rlImGui.cpp
/* Usage:
import imgui_rl "imgui_impl_raylib"
import imgui "../../odin-imgui"
main :: proc() {
rl.SetConfigFlags({ rl.ConfigFlag.WINDOW_RESIZABLE })
@bazhenovc
bazhenovc / the_sane_rendering_manifesto.md
Last active July 20, 2024 23:08
The Sane Rendering Manifesto

The Sane Rendering Manifesto

The goal of this manifesto is to provide an easy to follow and reasonable rules that realtime and video game renderers can follow.

These rules highly prioritize image clarity/stability and pleasant gameplay experience over photorealism and excess graphics fidelity.

Keep in mind that shipping a game has priority over everything else and it is allowed to break the rules of the manifesto when there are no other good options in order to ship the game.

Do not use dynamic resolution.