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 "testApp.h" | |
void addFace(ofMesh& mesh, ofVec3f a, ofVec3f b, ofVec3f c) { | |
mesh.addVertex(a); | |
mesh.addVertex(b); | |
mesh.addVertex(c); | |
ofVec3f p0 = (a-b).getNormalized(); | |
ofVec3f p1 = (b-c).getNormalized(); | |
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
Dynamic section at offset 0x2f1870 contains 68 entries: | |
Tag Type Name/Value | |
0x0000000000000001 (NEEDED) Shared library: [../../../libs/fmodex/lib/linux64/libfmodex.so] | |
0x0000000000000001 (NEEDED) Shared library: [libz.so.1] | |
0x0000000000000001 (NEEDED) Shared library: [libgstapp-1.0.so.0] | |
0x0000000000000001 (NEEDED) Shared library: [libgstvideo-1.0.so.0] | |
0x0000000000000001 (NEEDED) Shared library: [libgstbase-1.0.so.0] | |
0x0000000000000001 (NEEDED) Shared library: [libgstreamer-1.0.so.0] | |
0x0000000000000001 (NEEDED) Shared library: [libgmodule-2.0.so.0] | |
0x0000000000000001 (NEEDED) Shared library: [librt.so.1] |
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
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/") | |
("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/"))) | |
(add-to-list 'load-path (expand-file-name "~/.emacs.d")) | |
(add-to-list 'load-path (expand-file-name "~/.emacs.d/cedet-1.1")) | |
;; CEDET settings | |
(load-file "~/.emacs.d/cedet-1.1/common/cedet.el") | |
(global-ede-mode 1) ; Enable the Project management system |
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
Window x11Window = glfwGetX11Window( ofAppGLFWWindow::windowP ); | |
Window root, child; | |
unsigned int mask; | |
int rootX, rootY, childX, childY; | |
XQueryPointer( glXGetCurrentDisplay(), x11Window, &root, &child, &rootX, &rootY, &childX, &childY, &mask); | |
XWarpPointer( glXGetCurrentDisplay(), None, x11Window, 0, 0, 0, 0, m_windowWidth/2, m_windowHeight/2 ); |
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
Window x11Window = glfwGetX11Window( ofAppGLFWWindow::windowP ); | |
Window root, child; | |
unsigned int mask; | |
int rootX, rootY, childX, childY; | |
if(x11Window) { printf("...\n"); } | |
XQueryPointer( glXGetCurrentDisplay(), x11Window, &root, &child, &rootX, &rootY, &childX, &childY, &mask); | |
XWarpPointer( glXGetCurrentDisplay(), None, x11Window, 0, 0, 0, 0, m_windowWidth/2, m_windowHeight/2 ); |
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
clEnqueueReadBuffer(m_clCmdQueue, m_clDeviceLightsPerTile, CL_TRUE, 0, sizeof(cl_int) * skMaxLightsPerTile * globalWorkSize[0] *globalWorkSize[1], m_clHostLightsPerTile, 0, NULL, NULL); | |
/* | |
for (int y=0; y<globalWorkSize[1]; ++y) { | |
for (int x=0; x<globalWorkSize[0]; ++x) { | |
int tile_index = y * globalWorkSize[0] + x; | |
for (int i=0; i<skMaxLightsPerTile; ++i) { |
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
;;; glsl-mode.el --- major mode for Open GLSL shader files | |
;; Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | |
;; Copyright (C) 2011 Jim Hourihan | |
;; | |
;; Authors: Xavier.Decoret@imag.fr, | |
;; Jim Hourihan <jimhourihan ~at~ gmail.com> (updated for 4.3, etc) | |
;; Keywords: languages | |
;; Version: 2.0 | |
;; X-URL: http://artis.inrialpes.fr/~Xavier.Decoret/resources/glsl-mode/ |
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
#!/bin/sh | |
echo -std=c++11 -I /home/james/development/projects/renderer/external/include -I /home/james/development/projects/renderer/deferred_demo/src -I /usr/lib/gcc/x86_64-unknow | |
n-linux-gnu/4.8.2/../../../../include/c++/4.8.2 -I /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/x86_64-unknown-linux-gnu -I /usr/lib/gcc/x86_ | |
64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/backward -I /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include -I /usr/local/include -I /usr/lib/gcc/x86_64-unkn | |
own-linux-gnu/4.8.2/include-fixed -I /usr/include |
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
#!/bin/bash | |
for ((i=0; i < $3; i++)); do | |
HEX_COLOR=`od -vAn -N3 -tx1 /dev/urandom | tr -cd 0123456789abcdef` | |
echo "color: $HEX_COLOR" | |
curl -L -o "$1x$2_$i.$4" "http://placehold.it/$1x$2/$HEX_COLOR.$4" | |
done |
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
switch ( GL_TEXTURE_CUBE_MAP_POSITIVE_X + dir ) { | |
case GL_TEXTURE_CUBE_MAP_POSITIVE_X: | |
view = glm::lookAt(lightPos, lightPos + glm::vec3(+1, +0, 0), glm::vec3(0, -1, 0)); | |
break; | |
case GL_TEXTURE_CUBE_MAP_NEGATIVE_X: | |
view = glm::lookAt(lightPos, lightPos + glm::vec3(-1, +0, 0), glm::vec3(0, -1, 0)); | |
break; | |
OlderNewer