This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import gl "vendor:OpenGL" | |
| import "base:intrinsics" | |
| import "base:runtime" | |
| import "core:fmt" | |
| import "core:reflect" | |
| make_vertex_attribs :: proc($T: typeid, gl_types: [$N]u32) where intrinsics.type_is_struct(T), | |
| N == intrinsics.type_struct_field_count(T) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #/bin/bash | |
| if [ "$#" -ne 6 ]; then | |
| echo "Invalid number of params. params are:" | |
| echo "\t size_x: window width (columns)" | |
| echo "\t size_y: window height (rows)" | |
| echo "\t repaint_delay: how often should kitty repaint (ms)" | |
| echo "\t font_size: size of the current font" | |
| echo "\t vsync: well... vsync" | |
| echo "\t runnable: what executable to run inside kitty" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package main | |
| import "./utils" | |
| main :: proc() { | |
| Some :: struct { | |
| baa: proc(), | |
| foo: f32, | |
| bar: proc(), | |
| } |