Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/gl-texture2d-display
Displays a given gl-texture2d on your screen. Useful for debugging.
https://github.com/hughsk/gl-texture2d-display
Last synced: 8 days ago
JSON representation
Displays a given gl-texture2d on your screen. Useful for debugging.
- Host: GitHub
- URL: https://github.com/hughsk/gl-texture2d-display
- Owner: hughsk
- License: other
- Created: 2014-09-16T00:08:59.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-16T00:09:01.000Z (about 10 years ago)
- Last Synced: 2024-10-17T16:41:12.757Z (22 days ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gl-texture2d-display [![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)
Displays a given [gl-texture2d](http://github.com/stackgl/gl-texture2d) on your
screen. Useful for debugging.## Usage
[![NPM](https://nodei.co/npm/gl-texture2d-display.png)](https://nodei.co/npm/gl-texture2d-display/)
### `display(texture2d, [scale])`
Displays the texture in the center of your screen. Optionally, you can pass in
a `scale` value to change the size of the texture, which defaults to 1.*Note that this will call `gl.viewport` and bind the texture for you, so you'll
want to reset these values afterwards if you plan on using them again.*## License
MIT. See [LICENSE.md](http://github.com/hughsk/gl-texture2d-display/blob/master/LICENSE.md) for details.