Skip to content

Instantly share code, notes, and snippets.

@joeldevahl
joeldevahl / Järflotta.txt
Last active August 16, 2018 13:59
Järflotta
https://threadreaderapp.com/thread/1011238777283596289.html
https://threadreaderapp.com/thread/1013700602143092736.html
https://threadreaderapp.com/thread/1014065512186372096.html
https://threadreaderapp.com/thread/1014807021147885568.html
https://threadreaderapp.com/thread/1016022501133111296.html
https://threadreaderapp.com/thread/1016373886873735169.html
https://threadreaderapp.com/thread/1017321885883826176.html
https://threadreaderapp.com/thread/1018778909297598465.html
https://threadreaderapp.com/thread/1019268188255776775.html
https://threadreaderapp.com/thread/1019583196801925121.html
@joeldevahl
joeldevahl / main.cpp
Last active April 11, 2017 07:29
Experimental rendering abstraction/architecture
int application_main(application_t* application)
{
...
render_create_info_t render_create_info;
render_create_info.allocator = &allocator_malloc;
render_create_info.window = window_get_platform_handle(window);
render_create_info.max_textures = 1;
render_create_info.max_shaders = 1;
render_create_info.max_materials = 1;
@joeldevahl
joeldevahl / README.md
Last active February 25, 2016 17:55
VGPU prototype interface

Prototype "slightly higher level" abstraction layer over modern graphics API:s Written mostly in 20 minute chunks while commuting (expect quality thereafter ;)

Still a lot of blemishes and missing features:

  • No samplers
  • No vertex declarations
  • No real tested texture implementation
  • No synchromization
  • No queries
  • No finished implementation
/* Auto generated header for dl type library */
#ifndef __DL_AUTOGEN_HEADER_VERTEX_LAYOUT_H_INCLUDED
#define __DL_AUTOGEN_HEADER_VERTEX_LAYOUT_H_INCLUDED
#include <stdint.h>
#include <stddef.h> // for size_t
enum vertex_layout_element_type_t
{
@joeldevahl
joeldevahl / gist:b22c1a3a64a81d0c127a
Created July 2, 2014 17:06
Data base for brewery management
CREATE TABLE users
(
id int PRIMARY KEY
)
CREATE TABLE beers
(
id int PRIMARY KEY
)