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 "OMesh.h" | |
OMesh::OMesh() { | |
} | |
OMesh::~OMesh() { | |
} | |
bool OMesh::save(const string& filepath) { |
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
#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
#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 <TrailParticle.h> | |
static void print(TrailVertex& v) { | |
printf("x: %f, y: %f, z: %f\n", v.pos.x, v.pos.y, v.pos.z); | |
} | |
TrailParticle::TrailParticle() | |
:drag(0.99f) | |
,inv_mass(1.0f) | |
,mass(1.0f) |
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 "Deferred.h" | |
#define glGenVertexArrays glGenVertexArraysAPPLE | |
#define glBindVertexArray glBindVertexArrayAPPLE | |
static void print(DeferredVertex& v) { | |
printf("%f, %f, %f, %f, %f, %f\n", v.x, v.y, v.z, v.nx, v.ny, v.nz); | |
} | |
Deferred::Deferred() |
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 "rxParticle.h" | |
rxParticle::rxParticle(ofVec3f pos, float mass) | |
:position(pos) | |
,mass(mass) | |
,velocity(0) | |
,forces(0) | |
,age(0) | |
,lifetime(10) | |
{ |
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 | |
# Compile script for icecast, using these libraries: | |
# -------------------------------------------------- | |
# lame-3.99.5.tar.gz | |
# libogg-1.3.0.tar.gz | |
# libsamplerate-0.1.8.tar.gz | |
# libtheora-1.1.1.tar.bz2 | |
# libtool-2.2.1.10.tar.gz | |
# libvorbis-1.3.3.tar.gz |
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 "VorbisWriter.h" | |
VorbisWriter::VorbisWriter() | |
:fp(NULL) | |
,is_setup(false) | |
{ | |
} | |
VorbisWriter::~VorbisWriter() { | |
close(); |