DragonMinded / libdragon

Open source library for N64 development.
https://libdragon.dev
The Unlicense
748 stars 108 forks source link

Add `glTexSizeN64` #499

Closed Hazematman closed 9 months ago

Hazematman commented 9 months ago

Add new glTexSizeN64 api which can be used with GL_RDPQ_TEXTURING_N64 to set internal texture state on the rsp.

When I started implementing this I realized no ucode changes were required and that the internal state on the rsp could be programmed through the existing GL_CMD_SET_* commands.

I also added an example of the commands in use to the gldemo example so its more clear how to use it.