What the heck am i doing wrong? I'm just trying to create a 8 bit unsigned variable.
WhatMeWorry
kheaser at gmail.com
Wed May 21 17:47:20 UTC 2025
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?
More information about the Digitalmars-d-learn
mailing list