@recedent, post #33
@mateusz_s, post #35
@waldiamiga, post #38
@mateusz_s, post #25
@waldiamiga, post #41
Udało się uruchomić na AmigaOS4.x z VooDoo3, półtorej klatki na sekundę i zielony ekran.
@MUFA-amigaone-pl, post #46
@michal_zukowski, post #42
@mateusz_s, post #50
@mateusz_s, post #51
@mateusz_s, post #53
for (u_int16 ry = 0; ry < APP_requested_height; ++ry)
{
........
// drawing floor and ceiling from left to right
for (u_int16 ry_x = 0; ry_x < APP_requested_width; ++ry_x)
{
...........
// get pixel coords in texture
u_int32 texture_pixel_index = texture_pixel_x + texture_pixel_y * RC_texture_size_i;
// draw into buffer
u_int32 output_pixel_index = ry_x + ry * RC_render_width_i;
// kolor pobrany z textury
unsigned int tmp = GP_level_textures[texture_index].pixels[texture_pixel_index];
// zapisuje wynik w buforze ekranowym
my_buf_1[output_pixel_index] =
(((tmp >> 16 & 0x0ff) * intensity_value) >> 8 ) << 16 |
(((tmp >> 8 & 0x0ff) * intensity_value) >> 8) << 8 |
(((tmp & 0x0ff) * intensity_value) >> 8);
}
}@mateusz_s, post #54
@mateusz_s, post #54
@Kefir_Union, post #55