On Friday, 16 May 2025 at 19:04:24 UTC, WhatMeWorry wrote:
/+ SDL3 has a function
bool SDL_SetTextureAlphaMod(SDL_Texture *texture, Uint8 alpha);
which has a Uint8 for one of its parameters. So I try to use a ubyte
+/

[...]

So what would be best practice here?

Declare an int, manually make sure the value stays between 0 and 255, and then
cast it to the ubyte?

Reply via email to