Skip to content

Instantly share code, notes, and snippets.

@roxlu ☾ roxlu

Block or report user

Report or block roxlu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
roxlu / list.txt
Created Jan 25, 2013
List of compiler targets. Use for example: ./configure --target=x86-darwin11-gcc
View list.txt
armv5te-android-gcc armv5te-linux-rvct armv5te-linux-gcc
armv6-darwin-gcc armv6-linux-rvct armv6-linux-gcc
armv7-android-gcc armv7-darwin-gcc armv7-linux-rvct
armv7-linux-gcc armv7-none-rvct
ppc32-darwin8-gcc ppc32-darwin9-gcc ppc32-linux-gcc
ppc64-darwin8-gcc ppc64-darwin9-gcc ppc64-linux-gcc
roxlu / install_cygwin_sshd.txt
Last active May 7, 2019
Installing CYGWIN + SSHD for remote access through SSH on windows
View install_cygwin_sshd.txt
Installing CYGWIN with SSH
1) Download cygwin setup.exe from
- Execute setup.exe
- Install from internet
- Root directory: `c:\cygwin` + all users
- Local package directory: use default value
- Select a mirror to download files from
- Select these packages:
- editors > xemacs 21.4.22-1
- net > openssh 6.1-p
roxlu / AsyncUpload.cpp
Last active Apr 26, 2019
Experimental code to test fast pixel transfers using PBOs.
View AsyncUpload.cpp
#include <gfx/AsyncUpload.h>
namespace gfx {
roxlu / H264_Decoder.cpp
Created Mar 3, 2014
LibAV parser and decoder example with openGL (YUV420 -> RGB shader).
View H264_Decoder.cpp
#include "H264_Decoder.h"
H264_Decoder::H264_Decoder(h264_decoder_callback frameCallback, void* user)
roxlu / CMakeLists.txt
Last active Apr 10, 2019
CMake example that shows how you can build Freetype2 with support for Harfbuzz and Harfbuzz with support for Freetype2. This example uses ExternalProject which is the standard way to include external dependencies. Note that we have to patch Freetype2 and Harfbuzz because their CMakelists are not fully CMake compatible (still depend on pkg-config…
View CMakeLists.txt
# This CMake file will build Freetype and Harfbuzz as external
# projects. We follow the build description as described here:
# So,
# first we build Freetype2 w/o Harfbuzz, then we build Harfbuzz with
# freetype support after which we rebuild Freetype2 again.
# Both CMake files of Freetype2 and Harfbuzz are depending on
# pkg-config to find the dependencies for both projects. I've
# included a patch for Freetype2 and Harfbuzz which allows you to
# build Freetype2 and Harbuzz with pure CMake features. So I removed
roxlu / cam.cpp
Created Apr 3, 2019
Very rough veresion of turn table camera.
View cam.cpp
void Cam::init(const vec3& p, const vec3& t, const vec3& u, float winWidth, float winHeight) {
win_width = winWidth;
win_height = winHeight;
dir = t - p;
pos = p;
target = t;
up = u;
pm.perspective(60.0f, winWidth / winHeight, 0.1f, 100.0f);
lm.lookat(pos, target, up);
roxlu / Connection.h
Created Jun 4, 2012
Basic libEvent TCP server/client wrapper
View Connection.h
extern "C" {
#include <event2/event.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>
#include <string>
roxlu / Config.cpp
Last active Feb 18, 2019
Tiny, fast and clean configuration file parser using rapidxml with example of a to be released streaming video library
View Config.cpp
#include <iostream>
#include <fstream>
#include <rapidxml.hpp>
#include "Config.h"
Config::Config() {
Config::~Config() {
roxlu / tinylib.h
Last active Feb 18, 2019
Tinylib - the most basic features for easy graphics development with GL
View tinylib.h
oooo d8b .ooooo. oooo ooo 888 oooo oooo
`888""8P d88' `88b `88b..8P' 888 `888 `888
888 888 888 Y888' 888 888 888
888 888 888 .o8"'88b 888 888 888
View test-mini-al.cpp
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <vector>
#include <poly/mini_al.h>
#include <poly/Log.h>
using namespace poly;
/* -------------------------------------------- */
You can’t perform that action at this time.