Skip to content

Instantly share code, notes, and snippets.

View stianhoiland's full-sized avatar

Stian Gudmundsen Høiland stianhoiland

View GitHub Profile
@benob
benob / stbttf.h
Last active July 15, 2024 03:36
Example for using stb_truetype with SDL2 renderer. Only supports ASCII characters.
#ifndef __STBTTF_H__
#define __STBTTF_H__
#include <SDL2/SDL.h>
#include "stb_rect_pack.h"
#include "stb_truetype.h"
/* STBTTF: A quick and dirty SDL2 text renderer based on stb_truetype and stdb_rect_pack.
* Benoit Favre 2019
@cbarrett
cbarrett / SSMutableIndexPathSet.h
Created July 19, 2011 18:04
Represent a set of index paths
//
// SSMutableIndexPathSet.h
// MutableIndexPathSet Test
//
// Created by Colin Barrett on 11/19/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>