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
using System; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using GalliumMath; | |
using static SDL2.SDL; | |
using static SDL2.SDL.SDL_WindowFlags; | |
using static SDL2.SDL.SDL_EventType; | |
using static SDL2.SDL.SDL_TextureAccess; | |
using static SDL2.SDL.SDL_BlendMode; |
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
// THIS FILE WAS GENERATED | |
#if UNITY_STANDALONE || UNITY_2021_0_OR_NEWER | |
#define HAS_UNITY | |
#endif | |
#define QONSOLE_BOOTSTRAP // if this is defined, the console will try to bootstrap itself | |
#define QONSOLE_BOOTSTRAP_EDITOR // if this is defined, the console will try to bootstrap itself in the editor | |
namespace QON { |
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
#if defined(VERTEX) | |
varying vec4 v_color; | |
varying vec2 v_texCoord; | |
void main() | |
{ | |
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; | |
v_color = gl_Color; | |
v_texCoord = vec2(gl_MultiTexCoord0); | |
} |
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
# Thanks goes to https://nullprogram.com/blog/2016/01/31/ -- Small, Freestanding Windows Executables | |
no_crt.exe: main.c | |
x86_64-w64-mingw32-gcc -o no_crt.exe main.c -pedantic-errors \ | |
-std=c99 -Wall -Wextra \ | |
-O3 \ | |
-fno-tree-loop-distribute-patterns \ | |
-fno-stack-protector -mno-stack-arg-probe \ | |
-mconsole -DM_CONSOLE \ | |
-I/usr/local/x86_64-w64-mingw32/include \ | |
`sdl2-config --static-libs` \ |
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
// Copyright (c) 2020 Stoiko Todorov | |
// This work is licensed under the terms of the MIT license. | |
// For a copy, see https://opensource.org/licenses/MIT. | |
// This lib turns an array into a linked list by sacrificing the first | |
// few elements of the array | |
#ifndef ML_TYPE | |
// by default max numItems is 65535, redefine ML_TYPE if needed | |
#define ML_TYPE unsigned short |
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
using UnityEngine; | |
using System.Collections.Generic; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public static class DebugEx | |
{ | |
public static float CharactersOffset = -4; |
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
// Copyright (c) 2021 Stoiko Todorov | |
// This work is licensed under the terms of the MIT license. | |
// For a copy, see https://opensource.org/licenses/MIT. | |
// What this function does: | |
// Rasterizes a single Field Of View octant on a grid, similar to the way | |
// field of view / line of sight / shadowcasting is implemented in some | |
// roguelikes. | |
// Uses rays to define visible volumes instead of tracing lines from origin | |
// to pixels. |