code
stringlengths
0
56.1M
repo_name
stringlengths
3
57
path
stringlengths
2
176
language
stringclasses
672 values
license
stringclasses
8 values
size
int64
0
56.8M
// This isn't compilable as-is, as it was extracted from a working // integration-in-a-game and makes reference to symbols from that game. #include <assert.h> #include <ctype.h> #include "game.h" #include "SDL.h" #include "stb_tilemap_editor.h" extern void editor_draw_tile(int x, int y, unsigned short tile, int mode,...
orochi/stb
tests/tilemap_editor_integration_example.c
C++
mit
6,352
// tested in VC6 (1998) and VS 2019 #define _CRT_SECURE_NO_WARNINGS #define WIN32_MEAN_AND_LEAN #include <windows.h> #include <stdio.h> #include <tchar.h> #define STB_TRUETYPE_IMPLEMENTATION #include "stb_truetype.h" #include <gl/gl.h> #include <gl/glu.h> int screen_x=1024, screen_y=768; GLuint tex; unsigned char ...
orochi/stb
tests/truetype_test_win32.c
C++
mit
5,178
#include <assert.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #define STB_VORBIS_HEADER_ONLY #include "stb_vorbis.c" #define SAMPLES_TO_TEST 3000 int test_count [5] = { 5000, 3000, 2000, 50000, 50000 }; int test_spacing[5] = { 1, 111, 3337, 7779, 72717 }; int try_seeking(stb_vorbis *v, unsign...
orochi/stb
tests/vorbseek/vorbseek.c
C++
mit
3,885
# Microsoft Developer Studio Project File - Name="vorbseek" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Console Application" 0x0103 CFG=vorbseek - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using N...
orochi/stb
tests/vorbseek/vorbseek.dsp
dsp
mit
4,087
FAQ --- #### What's the license? These libraries are in the public domain. You can do anything you want with them. You have no legal obligation to do anything else, although I appreciate attribution. They are also licensed under the MIT open source license, if you have lawyers who are unhappy with public domain. Ev...
orochi/stb
tools/README.footer.md
Markdown
mit
5,800
stb === single-file public domain (or MIT licensed) libraries for C/C++ Noteworthy: * image loader: [stb_image.h](stb_image.h) * image writer: [stb_image_write.h](stb_image_write.h) * image resizer: [stb_image_resize.h](stb_image_resize.h) * font text rasterizer: [stb_truetype.h](stb_truetype.h) * typesafe container...
orochi/stb
tools/README.header.md
Markdown
mit
657
stb_vorbis.c | audio | decode ogg vorbis files from file/memory to float/16-bit signed output stb_hexwave.h | audio | audio waveform synthesizer stb_image.h | graphics | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR,...
orochi/stb
tools/README.list
list
mit
2,103
#define STB_DEFINE #include "stb.h" // true if no error int run_command(char *batch_file, char *command) { char buffer[4096]; if (batch_file[0]) { sprintf(buffer, "%s && %s", batch_file, command); return system(buffer) == 0; } else { return system(command) == 0; } } typedef struct { c...
orochi/stb
tools/build_matrix.c
C++
mit
4,912
// This program was used to encode the data for stb_simple_font.h #define STB_DEFINE #include "stb.h" #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" int w,h; uint8 *data; int last_x[2], last_y[2]; int num_seg[2], non_empty; #if 0 typedef struct { unsigned short first_segment; unsigned char advance; } ...
orochi/stb
tools/easy_font_maker.c
C++
mit
5,160
#define STB_DEFINE #include "../stb.h" int main(int argc, char **argv) { int i; int hlen, flen, listlen, total_lines = 0; char *header = stb_file("README.header.md", &hlen); // stb_file - read file into malloc()ed buffer char *footer = stb_file("README.footer.md", &flen); // stb_file - read file...
orochi/stb
tools/make_readme.c
C++
mit
2,592
# Microsoft Developer Studio Project File - Name="make_readme" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Console Application" 0x0103 CFG=make_readme - Win32 Debug !MESSAGE This is not a valid makefile. To build this project u...
orochi/stb
tools/make_readme.dsp
dsp
mit
4,087
debug\make_readme
orochi/stb
tools/mr.bat
Batchfile
mit
18
#define STB_DEFINE #include "stb.h" int main(int argc, char **argv) { int i; for (i=1; i < argc; ++i) { int len; FILE *f; char *s = stb_file(argv[i], &len); char *end, *src, *dest; if (s == NULL) { printf("Couldn't read file '%s'.\n", argv[i]); continue; } ...
orochi/stb
tools/trailing_whitespace.c
C++
mit
790
#define STB_DEFINE #include "../stb.h" // create unicode mappings // // Two kinds of mappings: // map to a number // map to a bit // // For mapping to a number, we use the following strategy: // // User supplies: // 1. a table of numbers (for now we use uint16, so full Unicode table is 4MB) // 2. a "...
orochi/stb
tools/unicode.c
C++
mit
21,826
# Microsoft Developer Studio Project File - Name="unicode" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Console Application" 0x0103 CFG=unicode - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using NMA...
orochi/stb
tools/unicode/unicode.dsp
dsp
mit
3,894