add multiple samples per pixel

This commit is contained in:
Fabien Freling 2021-04-26 22:51:49 +02:00
parent 79772c0df4
commit b0ce3eecec
5 changed files with 76 additions and 19 deletions

View file

@ -1,5 +1,5 @@
pub const c = @cImport({ @cInclude("SDL2/SDL.h"); });
const Color = @import("vec3.zig").Color;
const Color = @import("color.zig").Color;
pub fn setSurfacePixel(surface: *c.SDL_Surface, i: usize, j: usize, color: Color) void {
const bytePerPixel = 4;