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
#version 450 | |
layout(location = 0) in vec3 InNormal; | |
layout(location = 1) in vec3 InFragPos; | |
layout(location = 0) out vec4 FragColor; | |
layout(binding = 0, set = 3) uniform UBO | |
{ | |
vec3 ViewPos; | |
float Strength; |
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
#version 450 | |
layout(location = 0) in vec3 InNormal; | |
layout(location = 1) in vec3 InFragPos; | |
layout(location = 0) out vec4 FragColor; | |
layout(binding = 0, set = 3) uniform UBO | |
{ | |
vec3 LightPos; | |
vec3 LightColor; |
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
#version 450 | |
layout(location = 0) in vec4 InColor; | |
layout(location = 0) out vec4 FragColor; | |
layout(binding = 0, set = 3) uniform UBO | |
{ | |
vec4 LightColor; | |
float AmbientStrength; | |
} ubo; |
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.IO; | |
namespace SamuraiGunn2 | |
{ | |
public static class Logger | |
{ | |
private static StreamWriter streamWriter; | |
public static void SetLogOutputFile(string filePath) | |
{ |
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.IO; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using MoonWorks; | |
namespace SamuraiGunn2 | |
{ | |
[JsonSerializable(typeof(VideoSettings))] | |
internal partial class VideoSettingsContext : JsonSerializerContext | |
{ |
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.IO; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
namespace SamuraiGunn2.Data | |
{ | |
[JsonSerializable(typeof(CramTextureAtlasData))] | |
internal partial class CramTextureAtlasDataContext : JsonSerializerContext | |
{ | |
} |
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.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using dp.type; | |
namespace SamuraiGunn2 | |
{ | |
public unsafe class DPBuffer : IBuffer, IDisposable | |
{ | |
private byte* Bytes; | |
private int Length; |
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
public struct Position2DTextureVertex | |
{ | |
public Vector2 Position; | |
public Vector2 TexCoord; | |
public Position2DTextureVertex(Vector2 position, Vector2 texcoord) | |
{ | |
Position = position; | |
TexCoord = texcoord; | |
} |
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 <SDL.h> | |
#include <FNA3D.h> | |
static int32_t windowflags; | |
static uint8_t run = 1; | |
int main(int argc, char **argv) | |
{ | |
SDL_Event evt; | |
SDL_Thread *red, *blue; |
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
// Heavily based on prime31's Nez ImGuiRenderer | |
// https://github.com/prime31/Nez/blob/master/Nez.ImGui/Core/ImGuiRenderer.cs | |
#if DEBUG | |
using System.Runtime.InteropServices; | |
using Encompass; | |
using ImGuiNET; | |
using MoonWorks.Graphics; | |
using Anathema.Data; | |
using System.Collections.Generic; |