This file contains 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
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <stdlib.h> | |
typedef struct | |
{ | |
size_t alloc_size; | |
} block_header; |
This file contains 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 luxe.Input; | |
import luxe.Color; | |
import phoenix.geometry.CircleGeometry; | |
// NOTE: Using depth sort is reccomended, but if you want to use the | |
// zbuffer in addition (e.g. to mix with custom GL render passes) this | |
// is how to do it | |
// | |
// Add this to the 'build' section of your project.flow file |
This file contains 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
bool ccwN( sgVec2 dir1, sgVec2 dir2 ) { | |
return (dir1[0]*dir2[1] - dir2[0]*dir1[1]) > 0; | |
} | |
bool ccw( sgVec2 dir1, sgVec2 dir2 ) { | |
sgNormalizeVec2( dir1 ); | |
sgNormalizeVec2( dir2 ); | |
return ccwN(dir1,dir2); | |
} |
NewerOlder