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
1>------ Build started: Project: ExampleCommon, Configuration: Debug Win32 ------ | |
1> Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86 | |
1> Copyright (C) Microsoft Corporation. All rights reserved. | |
1> | |
1> cl /c /IC:\Users\bdavis\Git\OculusRiftExamples\build32\examples\cpp\common /IC:\Users\bdavis\Git\OculusRiftExamples\examples\cpp\common /I"C:\dev\opencv-2.4.9\build\include" /I"C:\dev\opencv-2.4.9\build\include\opencv" /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include\QtCore /I"c:\Qt\Qt5.4.0\5.4\msvc2013_opengl\mkspecs\win32-msvc2013" /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include\QtWidgets /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include\QtGui /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include\QtQuickWidgets /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include\QtQuick /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include\QtQml /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include\QtNetwork /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include\QtOpenGL /Ic:\Qt\Qt5.4.0\5.4\msvc2013_opengl\include\QtXml / |
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 java.awt.BorderLayout; | |
import java.awt.Dimension; | |
import java.awt.Font; | |
import java.time.Duration; | |
import java.time.LocalDate; | |
import java.time.LocalDateTime; | |
import java.time.LocalTime; | |
import java.time.temporal.ChronoUnit; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.ScheduledExecutorService; |
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
struct FramebufferWraper { | |
glm::uvec2 size; | |
GLuint fbo{ 0 }; | |
GLuint color{ 0 }; | |
GLuint depth{ 0 }; | |
virtual ~FramebufferWraper() { | |
release(); | |
} |
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
// | |
// planets.js | |
// | |
// Created by Philip Rosedale on January 26, 2015 | |
// Copyright 2015 High Fidelity, Inc. | |
// | |
// Some planets are created in front of you. A physical object shot or thrown between them will move | |
// correctly. | |
// | |
// Distributed under the Apache License, Version 2.0. |
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
#ifndef OCULUSGLWIDGET_H | |
#define OCULUSGLWIDGET_H | |
#include <QOpenGLFunctions> | |
#include <QGLWidget> | |
#include <QGLFramebufferObject> | |
#include <Extras/OVR_Math.h> | |
#include <OVR_CAPI_GL.h> |
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
QuoraTest = function() {}; | |
QuoraTest.prototype.SIZE = 0.5; | |
QuoraTest.prototype.SHELLS = 10; | |
QuoraTest.prototype.NAME = "QuoraTest"; | |
QuoraTest.prototype.POSITION = { x: 512, y: 512.5, z: 518 }; | |
QuoraTest.prototype.COLOR = { red: 220, green: 220, blue: 220 }; | |
QuoraTest.prototype.USER_DATA = { | |
ProceduralEntity: { | |
version: 2, |
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
const vec3 COLOR = vec3(24.0, 202.0, 230.0) / 255.0; | |
uniform float iWidth = 0.004; | |
uniform float iMiddle = 0.5; | |
uniform float iShell = 1.0; | |
uniform float iSpeed = 1.0; | |
vec4 getProceduralColor() { | |
float intensity = 0.0; | |
float time = iGlobalTime / 5.0 * iSpeed; |
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
Analog values: | |
LX, LY, RX, RY -> [-1, 1] | |
LT, RT -> [0, 1] | |
Buttons: | |
LS, RS, (analog stick press) | |
LB, RB, (shoulder buttons...) | |
DPadUp, DPadDown, DPadLeft, DPadRight, (aliases DU, DD, DL, DR) | |
X, Y, A, B, | |
Back, Start, Guide |
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 <map> | |
#include <list> | |
#include <QtScript/QScriptValue> | |
extern float currentTime(); | |
namespace Controllers { | |
/* |
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() { | |
PulseEntity.prototype = { | |
colors: [ "#F00", "#0F0", "#00F" ], | |
// Return the initial state. | |
initialState: function(stateWrapper) { | |
return { | |
// 64 bit absolute UTC timestamp of the current time | |
startTime: stateWrapper.now, | |
currentColor: 0 |