Adding some comments.

This commit is contained in:
2021-08-19 23:29:48 -07:00
parent 357c171d3a
commit 45a3ec30f5
9 changed files with 67 additions and 23 deletions

View File

@ -12,12 +12,16 @@
* store the pixels in memory because we don't need to!
*/
typedef struct {
/** Width (in pixels) of the texture */
int32_t width;
/** Height (in pixels) of the texture */
int32_t height;
/** Texture ID on the GPU */
GLuint id;
} texture_t;
/** Information about a single pixel. */
typedef struct {
/** RGBA Color values */
uint8_t r, g, b, a;
} pixel_t;