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
// | |
// Given a 3D point on the sphere, map to a unique, sub-divided triangle | |
// index in O(1) with no recursive searching or table lookups. | |
// Gist here https://gist.github.com/dwilliamson/65a81bf6fcd0e2000039 | |
// Thanks to @rompa for a couple of optimisations. | |
// | |
// Generate initial octahedron and subdivide it | |
var octahedron_geometry = CreateOctahedronGeometry(); | |
var depth = 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
/** | |
* Interface reflection automatically generated from XML. | |
* | |
* DO NOT EDIT! | |
*/ | |
#include "Envelope.h" | |
#include "fgs2/Reflection/DefaultTypes.h" | |
#include "fgs2/Reflection/FunctionGenerator.h" |
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
struct Data | |
{ | |
Data() | |
{ | |
} | |
~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
extern "C" char* dtoa_simple(double value, char* dest, int size) | |
{ | |
// NOTE: Very bare bones and inaccurate for very big numbers due to floating point inaccuracies dividing by 10 | |
// Requires BigInt support to handle correctly! | |
char* destret = dest; | |
char* destend = dest + size; | |
// Negate and add prefix for negative numbers | |
if (value < 0) |
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
header | |
{ | |
#ifndef _INCLUDED_IDLCOMPILER_SYMBOLTABLE_H | |
#include "SymbolTable.h" | |
#endif | |
#ifndef _INCLUDED_IDLCOMPILER_IDLCOMPILER_H | |
#include "IDLCompiler.h" | |
#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
using DefaultEffect; | |
using VShaderFragments; | |
using PShaderFragments; | |
using Resources; | |
effect Bump : DefaultEffect | |
{ | |
// Temporary registers used |
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
--- GAME STARTED ------------------------------------------------------ | |
#game Command Line: D:\dev\celtoys\Star\pub\Server\Game.exe | |
#game Game root: d:/dev/celtoys/star/pub/server/.. | |
#remotery Creating Remotery connection | |
#remotery Localhost only: false | |
#windows Loading dbghelp.dll | |
#windows Importing dbghelp.dll functions | |
#windows Initialising symbols library | |
#windows Loading symbols for each module | |
#windows Loading 'D:\dev\celtoys\Star\pub\Server\Game.exe' (737280) |
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 "PolyMesh.h" | |
#include "MeshLoader.h" | |
#include "Exception.h" | |
#include <stack> | |
#include <algorithm> | |
#include "CircularList.h" | |
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 <windows.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <gl/gl.h> | |
#pragma comment(lib, "opengl32.lib") |