Skip to content

Instantly share code, notes, and snippets.

Failed to compile vertex shader:
ERROR: 0:8: 'gl_ModelViewProjectionMatrix' : undeclared identifier
ERROR: 0:8: 'gl_Vertex' : undeclared identifier
ERROR: 0:8: 'assign' : cannot convert from 'highp float' to 'Position 4-component vector of highp float'
ERROR: 0:13: 'gl_TexCoord' : undeclared identifier
ERROR: 0:13: 'gl_TexCoord' : left of '[' is not of type array, matrix, or vector
ERROR: 0:13: 'gl_TextureMatrix' : undeclared identifier
ERROR: 0:13: 'gl_TextureMatrix' : left of '[' is not of type array, matrix, or vector
ERROR: 0:13: 'gl_MultiTexCoord0' : undeclared identifier
ERROR: 0:13: 'assign' : l-value required (cannot modify a const)
es() {
local OPTIND
python=''
elevated=''
file=''
while getopts 'f:ps' flag; do
case "${flag}" in
f) file="${OPTARG}" ;;
p) python='true' ;;
s) elevated='true' ;;
@omni-
omni- / Program.cs
Last active August 29, 2015 14:02
Fullscreen console
using System;
using System.Runtime.InteropServices;
namespace fullscreen
{
[DllImport("kernel32.dll", ExactSpelling = true)]
public static extern IntPtr GetConsoleWindow();
public static IntPtr ThisConsole = GetConsoleWindow();
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
@omni-
omni- / Interface.cs
Last active August 29, 2015 14:02
Scrolling Console Text
public static string GetTitle()
{
List<string> titlelist = new List<string>()
{
"Slimes OP",
"Now with Color!",
"Stochastic!",
"Sammy Classic Sonic Fan!",
"Expand",
"Drugs are bad, kids",
@omni-
omni- / Main.cs
Last active August 29, 2015 14:02
Get all derived classes
public static IEnumerable<T> GetEnumerableOfType<T>(params object[] constructorArgs)
{
return Assembly.GetAssembly(typeof (T)).GetTypes().Where(myType => myType.IsClass && !myType.IsAbstract && myType.IsSubclassOf(typeof (T))).Select(type => (T) Activator.CreateInstance(type, constructorArgs)).ToList();
}