since it does not preserve alpha. */ if (src.ref.pitch == dst.ref.pitch) { print('(1)kotti'); /* If the pitch is the same for both surfaces, the memory can be copied all at once. */ sdlMemcpy( dst.ref.pixels, src.ref.pixels, (src.ref.h * src.ref.pitch)); } else {...
const SDL_ALPHA_OPAQUE = 255; const SDL_ALPHA_TRANSPARENT = 0; @@ -2587,7 +2594,8 @@ const SDL_WINDOW_EXTERNAL = 0x0000000000000800; const SDL_WINDOW_MODAL = 0x0000000000001000; const SDL_WINDOW_HIGH_PIXEL_DENSITY = 0x0000000000002000; const SDL_WINDOW_MOUSE_CAPTURE = 0x0000000000004000; co...
..setRgba(255, 255, 255, SDL_ALPHA_OPAQUE); Pointer<SdlTexture> text = nullptr; late Rectangle<double> textRect; var textSurface = font.renderUtf8Shaded( '赤い四角/Red square', SdlColorEx.rgbaToU32(0, 0, 0, SDL_ALPHA_OPAQUE), SdlColorEx.rgbaToU32(255, 255, 255, SDL_ALPHA_OP...