Skip to content

Instantly share code, notes, and snippets.

@tilkinsc
tilkinsc / load_dds.c
Last active June 24, 2024 14:08
C OpenGL DDS Loading Tutorial
/*
Can load easier and more indepth with https://github.com/Hydroque/DDSLoader
Because a lot of crappy, weird DDS file loader files were found online. The resources are actually VERY VERY limited.
Written in C, can very easily port to C++ through casting mallocs (ensure your imports are correct), goto can be replaced.
https://www.gamedev.net/forums/topic/637377-loading-dds-textures-in-opengl-black-texture-showing/
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-5-a-textured-cube/
^ Two examples of terrible code
@james2doyle
james2doyle / composer.json
Created July 16, 2018 23:08
Run composer from within a PHP script calling the binary programmatically
{
"require-dev": {
"symfony/console": "dev-master",
"composer/composer": "dev-master"
}
}