Skip to content

Commit f4a0bd7

Browse files
committed
sprites
1 parent b07ebe6 commit f4a0bd7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

toc.hanson

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"2d": [
5252
"webgl-2d-drawimage.md",
5353
"webgl-2d-matrix-stack.md",
54+
"webgl-sprites.md",
5455
],
5556
"3d": [
5657
"webgl-cube-maps.md",

webgl/lessons/webgl-sprites.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Title: WebGL Sprites
2+
Description: How to do sprites in WebGL
3+
TOC: Sprites
4+
5+
This article for now is just a place holder.
6+
7+
Sprites have arguably already been covered, they just weren't called "sprites".
8+
9+
The article on sprites is [the article on how to draw
10+
text with textures](webgl-text-texture.html). Replace the
11+
text images with sprite images and you have sprites.
12+
13+
A related article on is [the article on reproducing
14+
canvas 2D's `drawImage` function in WebGL](webgl-2d-drawimage.html) and the following
15+
article on [matrix stacks](webgl-2d-matrix-stack.html)
16+
17+
Together those articles mostly cover sprites in WebGL.
18+
If you have other things you want covered consider
19+
[leaving a request](https://github.com/gfxfundamentals/webgl-fundamentals/issues/new?assignees=&labels=suggested+topic&template=suggest-topic.md&title=%5BSUGGESTION%5D).

0 commit comments

Comments
 (0)