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 GlowiesManager::draw(const Mat4& pm, const Mat4& vm, const Vec3& right, const Vec3& up) { | |
glEnable(GL_BLEND); | |
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); | |
// IMPORTANT: disable depth mask writing to prevent wierd looking edges while using transparency! | |
// ------------------------------------------------------------------------------------------------ | |
glDepthMask(GL_FALSE); | |
for(vector<GlowiesData>::iterator git = collections.begin(); git != collections.end(); ++git) { | |
GlowiesData& gd = (*git); |
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" | |
#include "Error.h" | |
//-------------------------------------------------------------- | |
void testApp::setup(){ | |
ofEnableNormalizedTexCoords(); | |
ofDisableArbTex(); | |
int w = ofGetWidth(); | |
int h = ofGetHeight(); | |
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
#ifndef ROXLU_BINNING_2DH | |
#define ROXLU_BINNING_2DH | |
#include <math.h> | |
#include <vector> | |
using std::vector; | |
/* |
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 | |
# PCL version 1.5.1 | |
# Boost 1.49 | |
# Eigen 6e7488e20373 | |
# Flann 1.7.1 | |
# QHull 2012.1 | |
# VTK 5.10.0 | |
d=${PWD} | |
bd=${PWD}/build |
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 <roxlu/experimental/Image.h> | |
namespace roxlu { | |
Image::Image() | |
:width(0) | |
,height(0) | |
,pixels(NULL) | |
{ | |
} |
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
/* | |
* The following source code accompanies the JGT article | |
* | |
* Building an Orthonormal Basis from a 3D Unit Vector | |
* Without Normalization | |
* | |
* By author: Jeppe Revall Frisvad | |
* | |
* After submitting the article to production, I found an | |
* improvement for my implementation of the Hughes-Moeller |
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 "LightRays.h" | |
#include <roxlu/opengl/Error.h> | |
LightRays::LightRays() | |
:w(0) | |
,h(0) | |
,tex(0) | |
,fbo(0) | |
,depth_buffer(0) | |
,frag_shader(0) |
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 "SnowDrawer.h" | |
SnowDrawer::SnowDrawer() | |
:allocated_vertices(500) | |
,vertices(allocated_vertices,SnowVertex()) | |
,allocated_bytes(0) | |
,num_flakes(0) | |
{ | |
} |
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 <roxlu/io/Socket.h> | |
Socket::Socket() { | |
#ifdef _WIN32 | |
int result = WSAStartup(MAKEWORD(2,2), &wsa_data); | |
if(result != 0) { | |
printf("Error: cannot initialize WinSock.\n"); | |
WSACleanup(); | |
} | |
#endif |
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 <iostream> | |
#include <libgen.h> | |
#include <openssl/ssl.h> | |
#include <openssl/bio.h> | |
#include <openssl/err.h> | |
#include <openssl/pem.h> | |
#include <uv.h> | |
#include <vector> | |
#include <iterator> | |
#include <algorithm> |