Skip to content

Instantly share code, notes, and snippets.

View jherico's full-sized avatar
🖖
Peace and long life

Tano🏳️‍⚧️ jherico

🖖
Peace and long life
View GitHub Profile
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 /
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;
struct FramebufferWraper {
glm::uvec2 size;
GLuint fbo{ 0 };
GLuint color{ 0 };
GLuint depth{ 0 };
virtual ~FramebufferWraper() {
release();
}
//
// 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.
#ifndef OCULUSGLWIDGET_H
#define OCULUSGLWIDGET_H
#include <QOpenGLFunctions>
#include <QGLWidget>
#include <QGLFramebufferObject>
#include <Extras/OVR_Math.h>
#include <OVR_CAPI_GL.h>
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,
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;
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
#include <map>
#include <list>
#include <QtScript/QScriptValue>
extern float currentTime();
namespace Controllers {
/*
(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