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
-- premake5.lua | |
-- Project file creator for T3D | |
-- Usage: premake5 <toolchain> | |
-- (C)2016-2019 James S Urquhart. Feel free to use wherever. | |
-- | |
-- Instructions: | |
-- * Copy Templates/Full to a folder in "My Projects" | |
-- * Change PROJECT_NAME to match this folder name | |
-- * Change WORKSPACE_NAME to your desired workspace name |
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
// Only load these functions if an Oculus VR device is present | |
if(!isFunction(OpenVRIsCompiledIn)) | |
return; | |
$Video::VREnabled = false; | |
function setupOpenVRActionMaps() | |
{ | |
new ActionMap(VRCanvasMap); |
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
// Don't ask | |
#include "core/crc.h" | |
struct GFXSamplerStateDesc2 | |
{ | |
GFXTextureAddressMode addressModeU; | |
GFXTextureAddressMode addressModeV; | |
GFXTextureAddressMode addressModeW; |
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
function onStart() | |
{ | |
} | |
function onExit() | |
{ | |
} | |
function parseArgs() |
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
// ******** | |
TorqueScript code | |
// ******** | |
$shit = 1; | |
$fudge = 2 + 2.3; | |
if ($fudge < 2) // TOFIX | |
{ |
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
//----------------------------------------------------------------------------- | |
// Copyright (c) 2012 GarageGames, LLC | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to | |
// deal in the Software without restriction, including without limitation the | |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
// sell copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
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
// Moves view to be in line with the keyboard | |
// | |
// keyboardHeight == value returned from UIKeyboardBoundsUserInfoKey key | |
// keyboardControlY == place in view the top of the keyboard should line up with | |
// | |
- (void)moveViewForKeyboardHeight:(float)keyboardHeight controlOffset:(float)keyboardControlY | |
{ | |
// Determine what is "up" | |
CGAffineTransform myTransform = self.transform; | |
CGPoint upAxis = CGPointApplyAffineTransform(CGPointMake(0, 1), myTransform); |
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
enableWinConsole(true); | |
setLogMode(2); | |
$fuck = "ERRR"; | |
echo("TEST EXPRESSION" @ (1 + 2) @ $fuck SPC "SPACE"); | |
for (%i=0; %i<10; %i++) | |
{ | |
echo("loop" SPC %i); | |
} |
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
// Copyright (C) 2013 James S Urquhart. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to | |
// deal in the Software without restriction, including without limitation the | |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
// sell copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in |
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
function bridge1Test() | |
{ | |
%obj = new SimObject(); | |
%start = getRealTime(); | |
%count = 0; | |
for (%i=0; %i<1000000; %i++) { | |
%obj.getId(); | |
} | |
%end = getRealTime(); | |
//echo("scriptTest3 result: " @ %count); |