Skip to content

Instantly share code, notes, and snippets.

@declank
declank / go-play-music.go
Created June 10, 2015 22:19
[Golang] Simple music player that uses ffmpeg and portaudio
package main
import (
"code.google.com/p/portaudio-go/portaudio"
"encoding/binary"
"log"
"io"
"os"
"os/exec"
)
@declank
declank / bgfx_sdl_hello_triangle.cpp
Last active January 31, 2019 11:41
SDL + bgfx Starting Point (no threading)
#include <stdio.h>
//#define SDL_MAIN_HANDLED
#include <SDL.h>
#include <SDL_syswm.h>
#include <bgfx/bgfx.h>
#include <bgfx/platform.h>
inline bool setPlatformData(SDL_Window* _window)
@declank
declank / hello_triangle.cpp
Created February 1, 2019 14:34
bgfx + SDL starting point (proper threading)
#include <stdio.h>
//#define SDL_MAIN_HANDLED
#include <SDL.h>
#include <SDL_syswm.h>
#include <bgfx/bgfx.h>
#include <bgfx/platform.h>