Skip to content

Instantly share code, notes, and snippets.

@mmozeiko
mmozeiko / win32_opengl.c
Last active April 30, 2024 06:20
setting up and using modern OpenGL 4.5 core context on Windows
// example how to set up OpenGL core context on Windows
// and use basic functionality of OpenGL 4.5 version
// important extension functionality used here:
// (4.3) KHR_debug: https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_debug.txt
// (4.5) ARB_direct_state_access: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_direct_state_access.txt
// (4.1) ARB_separate_shader_objects: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_separate_shader_objects.txt
// (4.2) ARB_shading_language_420pack: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_shading_language_420pack.txt
// (4.3) ARB_explicit_uniform_location: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_explicit_uniform_location.txt
@ishan9299
ishan9299 / convert.js
Last active December 26, 2021 01:54
Convert hex to 8 bit colors.
const table = [
'073642',
'dc322f',
'859900',
'b58900',
'268bd2',
'd33682',
'2aa198',
'eee8d5',
'002b36',
@shadmansaleh
shadmansaleh / colorscheme_generator.lua
Last active January 14, 2022 06:31
Genarates colorscheme for corrent highlights in neovim
-- This script has been succeeded by
-- https://github.com/shadmansaleh/colorsceme_generator.nvim
-- Thid script is nolonger maintained so please use the plugin version.
-- This file creates a colorscheme from aleady available colorscheme
-- Author : Shadman Saleh
-- Licence : You can do whatever you want with it but do provide proper cradit
-- Uses :