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
// Estranged is a trade mark of Alan Edwardes. | |
#include "EstScreenshotTaker.h" | |
#include "IImageWrapper.h" | |
#include "IImageWrapperModule.h" | |
void UEstScreenshotTaker::RequestScreenshot() | |
{ | |
if (GEngine == nullptr || GEngine->GameViewport == nullptr || bIsScreenshotRequested) | |
{ |
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
var rays = new Object({ | |
canvas: false, | |
context: false, | |
interval: false, | |
offset: 0, | |
init: function(id, colour1, colour2){ | |
this.canvas = document.getElementById(id); | |
this.context = this.canvas.getContext('2d'); | |
this.canvas.style.background = colour1; | |
this.context.fillStyle = colour2; |
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
void AEstPlayer::Tick(float DeltaSeconds) | |
{ | |
Super::Tick(DeltaSeconds); | |
UpdateCamera(DeltaSeconds); | |
} | |
void AEstPlayer::UpdateCamera(float DeltaSeconds) | |
{ | |
FVector EyeLocation; |
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
#!/usr/bin/env python3 | |
import graphyte | |
import time | |
import colorsys | |
import sys | |
import ST7735 | |
try: | |
# Transitional fix for breaking change in LTR559 | |
from ltr559 import LTR559 |
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 Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
namespace UnrealVaultParser | |
{ | |
class Program | |
{ |
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
// Checkout and store away result | |
def checkoutResult = scm checkout | |
// Build a human readable build label | |
def buildLabel = [env.EstPlatform, checkoutResult.GIT_COMMIT.substring(0, 6), env.JOB_NAME, env.BUILD_NUMBER].join('-') | |
// Stamp the build config header file | |
def configFile = 'Depot/Source/EstCore/EstBuildConfig.h' | |
def buildConfig = readFile file: configFile | |
buildConfig += '\n#undef BUILD_COMMIT' |
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
//============================================================================= | |
// | |
// Purpose: Logic submerge - fires output when submerged in water. | |
// | |
//============================================================================= | |
#include "cbase.h" | |
// memdbgon must be the last include file in a .cpp file!!! | |
#include "tier0/memdbgon.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 "cbase.h" | |
#include "estranged_materialsystem.h" | |
#include "materialsystem\itexture.h" | |
#include "materialsystem/imaterialvar.h" | |
static void AppendShaderParams(const char* shader, IMaterial *pMat, KeyValues *newParams) | |
{ | |
int nParams = pMat->ShaderParamCount(); | |
IMaterialVar **pParams = pMat->GetShaderParams(); |
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
//=============================================================================// | |
// | |
// Purpose: Implementation of IMaterialSystem interface which "passes tru" all | |
// function calls to the real interface. Can be used to override | |
// IMaterialSystem function calls (combined with engine->Mat_Stub). | |
// | |
//=============================================================================// | |
#ifndef MATERIALSYSTEM_PASSTHRU_H | |
#define MATERIALSYSTEM_PASSTHRU_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
char* GetTimestamp() | |
{ | |
time_t rawtime; | |
struct tm* timeinfo; | |
time(&rawtime); | |
timeinfo = localtime(&rawtime); | |
char* time = asctime(timeinfo); | |
char* newLine = strstr(time, "\n"); |
NewerOlder