diff options
Diffstat (limited to 'src/texture.c')
-rw-r--r-- | src/texture.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/texture.c b/src/texture.c index b041b4f..c1a5843 100644 --- a/src/texture.c +++ b/src/texture.c @@ -36,3 +36,10 @@ enum honey_texture_result honey_texture_new(honey_texture* texture, return TEXTURE_OK; } + +/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +void honey_texture_use(honey_texture texture, int texture_unit) { + glActiveTexture(GL_TEXTURE0 + texture_unit); + glBindTexture(GL_TEXTURE_2D, texture.texture_id); +} |