https://github.com/vivkin/forsyth
Linear-Speed Vertex Cache Optimization
https://github.com/vivkin/forsyth
Last synced: 6 months ago
JSON representation
Linear-Speed Vertex Cache Optimization
- Host: GitHub
- URL: https://github.com/vivkin/forsyth
- Owner: vivkin
- Created: 2014-06-22T12:29:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T06:26:45.000Z (about 8 years ago)
- Last Synced: 2024-11-14T22:35:34.075Z (about 1 year ago)
- Language: C
- Size: 7.81 KB
- Stars: 57
- Watchers: 8
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeCppGameDev - forsyth - Speed Vertex Cache Optimization (Graphics)
README
Tom Forsyth's [Linear-Speed Vertex Cache Optimisation](http://home.comcast.net/~tom_forsyth/papers/fast_vert_cache_opt.html) algorithm implementation by [Martin Storsjo](http://www.martin.st/thesis/) in header file single-file library.
Add `#define FORSYTH_IMPLEMENTATION` before `#include "forsyth.h"` in **one** .c or .cpp file to create the implementation.
Usage:
```c
forsythReorderIndices(outIndices, indices, numTriangles, numVertices);
```