This file contains hidden or 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
# HG changeset patch | |
# User Yuriy O'Donnell <[email protected]> | |
# Date 1336346476 -3600 | |
# Node ID 9abcac50982464079bc7ef681fa6dccefceeb704 | |
# Parent 1c40bd936d1f6f919f1e9bc9225621b4f9e38aad | |
luajit 2.0 varargs compatibility fix | |
diff --git a/src/base/globals.lua b/src/base/globals.lua | |
--- a/src/base/globals.lua | |
+++ b/src/base/globals.lua |
This file contains hidden or 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
$ time ./test_release | |
Building configurations... | |
Running action 'test'... | |
running time : 5.01 | |
789 tests passed, 0 failed | |
Done. | |
real 0m5.079s | |
user 0m0.539s | |
sys 0m4.531s |
This file contains hidden or 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
import sys | |
import random | |
def GeneratePointsInsideSphere(num_points) : | |
points = [] | |
for i in range(num_points) : | |
while True : | |
x = random.uniform(-1,1) |
This file contains hidden or 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
import sys | |
import random | |
def GeneratePointsInsideDisc(num_points) : | |
points = [] | |
for i in range(num_points) : | |
while True : | |
x = random.uniform(-1,1) |
This file contains hidden or 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
# JamPlus script | |
SubDir TOP ; | |
DEPCACHE.standard = ../bin/data/depcache ; | |
# Global paths | |
PATH_DATA = "../bin/data" ; | |
PATH_CONTENT = "../content" ; |
This file contains hidden or 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
# JamPlus script | |
MODEL_TOOL = "..\\bin\\datatool.exe" ; | |
TEXTURE_TOOL = "..\\scripts\\win32\\texconv.exe" ; | |
SHADER_TOOL = "..\\scripts\\win32\\fxc.exe" ; | |
# -------------------------------------------------------------------------- | |
actions ModelAction | |
{ |
This file contains hidden or 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 <Rush/Rush.h> | |
#include <Rush/Platform.h> | |
#include <stdio.h> | |
using namespace Rush; | |
RushAppConfig g_appConfig; | |
static void startup(RushPlatformContext* context) |
This file contains hidden or 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 <Rush/Rush.h> | |
#include <Rush/Platform.h> | |
#include <Rush/RenderPrimitiveBatch.h> | |
#include <Rush/GraphicsBitmapFont.h> | |
#include <stdio.h> | |
using namespace Rush; | |
RushAppConfig g_appConfig; |
This file contains hidden or 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
// On MacOS X compile with g++ -framework OpenCL <filename> | |
#include <stdio.h> | |
#include <OpenCL/opencl.h> | |
#define P(x) x,#x | |
void printClDeviceInfoString(cl_device_id device_id, cl_device_info param_name, const char* printable_name) | |
{ | |
char val[1024]; |
This file contains hidden or 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
// clang main.cpp | |
#include <tchar.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <windows.h> | |
#include <D3D11.h> | |
#include <D3Dcompiler.h> |