Skip to content

Instantly share code, notes, and snippets.

View TheSpydog's full-sized avatar

Caleb Cornett TheSpydog

View GitHub Profile
@TheSpydog
TheSpydog / gist:a1e95ff953f4443dbc04f722ff281cd8
Last active October 21, 2018 14:58
Setting up FNA for UWP
YOUR APP:
- Make sure in App Properties, “Min version” must be Fall Creators Edition (16.....)
- In Package.appxmanifest, change the Entry point to <NAMESPACE>.<MAINCLASS>, not the XAML stuff.
- In fact you should get rid of all XAML Files.
FNALIBS:
For all dependencies:
- Compile in 64-bit Release mode.
- Retarget to latest build versions if necessary, but try to keep Min Windows SDK to Fall Creators Edition.
- If any project asks you to retarget, right click the SOLUTION (not the project) and click Retarget Solution.
=======================
SDL_uikitappdelegate.m
=======================
Add this code underneath "static int exit_status;":
typedef int (*SDL_MAIN_FUNC)(void);
static SDL_MAIN_FUNC MainFunc;
extern void SetMainFunc(SDL_MAIN_FUNC func)
/*
Simple DirectMedia Layer
Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
changeset: 1194:ee0b613094d8
tag: tip
user: Caleb Cornett <caleb.cornett@outlook.com>
date: Sat Apr 06 21:34:25 2019 -0400
summary: Add PROFILE_GLSLES CMake option
diff -r 4decf307c228 -r ee0b613094d8 CMakeLists.txt
--- a/CMakeLists.txt Wed Mar 06 15:09:49 2019 -0500
+++ b/CMakeLists.txt Sat Apr 06 21:34:25 2019 -0400
@@ -5,6 +5,7 @@
@TheSpydog
TheSpydog / buildlog.txt
Created July 27, 2019 19:54
tvOS build log
Building solution tvIncrementalBuildTest (Debug|iPhone)
Build started 7/27/2019 3:53:03 PM.
__________________________________________________
Project "/Users/calebcornett/Projects/tvIncrementalBuildTest/tvIncrementalBuildTest/tvIncrementalBuildTest.csproj" (Build target(s)):
Target _BeforeCoreCompileInterfaceDefinitions:
Skipping target "_BeforeCoreCompileInterfaceDefinitions" because all output files are up-to-date with respect to the input files.
Target _CoreCompileInterfaceDefinitions:
Skipping target "_CoreCompileInterfaceDefinitions" because all output files are up-to-date with respect to the input files.
@TheSpydog
TheSpydog / lookuptest.cs
Last active January 6, 2020 09:09
C# Lookup Perf Test
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace LookupTest
{
class MainClass
{
class MyTestClass
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace VertexSamplerTest
{
public class Program
{
public static void Main(string[] args)
{
/* SpriteBatch Stress Test
* Written by Ethan "flibitijibibo" Lee
* http://www.flibitijibibo.com/
*
* Released under public domain.
* No warranty implied; use at your own risk.
*/
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
/* Mostly ripped off from MonoGame's unit tests. */
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
class GetSetBufferTest : Game
{
VertexPositionTexture[] savedData = new VertexPositionTexture[]
{
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ShaderTest
{
class ShaderTestGame : Game
{
GraphicsDeviceManager graphics;
RenderTarget2D renderTarget;