blocksds / sdk

Main BlocksDS SDK repository
https://blocksds.github.io/docs/
155 stars 8 forks source link

Fix size handling of `glTexImage2D()` #129

Closed AntonioND closed 7 months ago

AntonioND commented 7 months ago

Currently, glTexImage2D() takes one of the values of GL_TEXTURE_SIZE_ENUM as input. There are two different issues to deal with:

My proposal:

rmn20 commented 7 months ago

Wow that sounds really good

AntonioND commented 7 months ago

This is a helper to convert sizes in pixels to texture enums. For now, I haven't made more changes. https://github.com/blocksds/libnds/commit/f01c830d1f00bf7559dd60c79894a37bb311e56c

AntonioND commented 7 months ago

Well, this is now fully supported: https://github.com/blocksds/libnds/commit/2d947e6a6709e646c3366425a840167f2ef5e9c1