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
# copied from http://leolabs.org/blog/making-intellij-portable/ | |
#--------------------------------------------------------------------- | |
# Customize path to IDE config folder. | |
#--------------------------------------------------------------------- | |
idea.config.path=${idea.home}/var/config | |
#--------------------------------------------------------------------- | |
# Customize path to IDE system folder. | |
#--------------------------------------------------------------------- |
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
sealed trait Function3D { | |
def apply(vec: Vector3): Float | |
override def toString = getClass.getSimpleName + ":" + parameterString | |
def encodeXML: Elem | |
/** | |
* Cheap trick to enforce toString |
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
cmake_minimum_required (VERSION 2.6) | |
project (XTRACT) | |
# | |
# libpng 1.6.8 | |
if( NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/libpng-1.6.8 ) | |
if( NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/libpng-1.6.8.tar.gz ) | |
file(DOWNLOAD http://kent.dl.sourceforge.net/project/libpng/libpng16/1.6.8/libpng-1.6.8.tar.gz ${CMAKE_CURRENT_BINARY_DIR}/libpng-1.6.8.tar.gz SHOW_PROGRESS EXPECTED_MD5 29b7065906e2551508a0d7eacd19174e) | |
endif() |
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
find -> public (\w+) (\w+)\((.*?)\) \{\n\t\t\treturn .*?; | |
with -> public \1 \2\(\3\) \{\n\t\t\treturn inner.\2\(\3\); | |
find -> return inner.(\w+)\((\w+, )*.*? (\w+[,\)]) | |
with -> return inner.\1\(\2\3 |
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
package com.peterlavalle.demo | |
import com.badlogic.gdx._ | |
import com.badlogic.gdx.backends.lwjgl.LwjglApplication | |
import com.badlogic.gdx.graphics.glutils.ShaderProgram | |
import com.badlogic.gdx.math.{Vector3, Matrix4} | |
import com.badlogic.gdx.graphics.{PerspectiveCamera, GL20, VertexAttribute, Mesh} | |
import java.util | |
/** |
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 and all glory to Peter LaValle / gPechorin | |
* | |
* This little joke is what C++ is good for ; memory acrobatics. | |
* This demonstrates (what I'm naming) a "kitty pointer" | |
* (I started it as shrimp_pointer but I decided no-one would care about mantis-shrimp) | |
* (someone else probably has a much more serious version of this somewhere) | |
* | |
* The thought process went; | |
* - I want to serialise wads of data |
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
#ifdef GL_ES | |
precision highp float; | |
#endif | |
// varying | |
varying vec2 v_va_TextureCoordinates; | |
varying vec3 v_va_Normals; | |
// uniforms (not-textures) |
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 gradle file will produce a site in build/marksite from MarkDown files in src/site | |
markFolder - makes folders. is separate because or $reasons. | |
markSite - translates the .md files in src/site to HTML in build/site | |
markClean - deletes build/site | |
*/ | |
String markDown = "src/site" |
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
/** | |
* We need string length - not "hard" | |
*/ | |
template<const char text[]> | |
struct tmp_strlen | |
{ | |
template<const char v, const int index> | |
struct tmp_strlen_ | |
{ |
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 2014 Peter LaValle (with that name as my GMail) / g-pechorin | |
* | |
* Vector and square matrix header. Header for math functions that work on vectors and square matrices of arbitrary dimensions. | |
* | |
* You may use this under the Affero GNU GPL http://www.gnu.org/licenses/agpl-3.0.html | |
* | |
* Lacks rotation stuff since ... y'know those are specific to specific dimensions of matrix | |
* Other than std::string creation (which should only be used for debugging) - all methods are implemented as const templates (no loops or branches) so should optimize nicely | |
* |
OlderNewer