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 "DebugMesh.h" | |
using namespace ci; | |
using namespace ci::geom; | |
using namespace std; | |
DebugMesh::DebugMesh(void) | |
{ | |
enable( Attrib::POSITION ); | |
enable( Attrib::COLOR ); |
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
// Simple demo to compare drawing 2D triangles with Cinder's VBO and TriMesh wrappers. | |
// https://drewish.com/2014/08/16/comparing-the-trimesh-and-vbomesh-in-cinder/ | |
#include "cinder/app/AppBasic.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/gl/Vbo.h" | |
#include "cinder/Trimesh.h" | |
#include "cinder/params/Params.h" | |
using namespace ci; |
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
# Instructions to pre-render OSM tiles: | |
# Start with a clean Ubuntu Trusty 14.04 host | |
# Need postgis, importer and tools | |
sudo apt-get install postgresql-9.3 postgis osm2pgsql gdal-bin npm git curl xmlstarlet python-mapnik unzip | |
# Fonts | |
sudo apt-get install ttf-dejavu fonts-droid ttf-unifont fonts-sipa-arundina fonts-sil-padauk fonts-khmeros \ | |
ttf-indic-fonts-core ttf-tamil-fonts ttf-kannada-fonts | |
# nginx -- for leaflet UI |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
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
const { createLogger, format, transports } = require("winston"); | |
// https://github.com/winstonjs/winston#logging | |
// { error: 0, warn: 1, info: 2, verbose: 3, debug: 4, silly: 5 } | |
const level = process.env.LOG_LEVEL || "debug"; | |
function formatParams(info) { | |
const { timestamp, level, message, ...args } = info; | |
const ts = timestamp.slice(0, 19).replace("T", " "); |