Compare commits

..

7 Commits

Author SHA1 Message Date
Rekai Nyangadzayi Musuka 74e1fc31b9 fix(opengl): properly control whether vsync is enabled 2022-10-17 19:22:08 -03:00
Rekai Nyangadzayi Musuka 2dbbfab206 chore(ppu): remove BGR555 -> RGBA888 LUT
LUT probably couldn't fit in CPU cache anyways.

TODO: Consider whether LUTs for separate channels (size 32 * 3 * 3
instead of std.math.maxInt(u15))
2022-10-17 19:09:29 -03:00
Rekai Nyangadzayi Musuka 10aa5e3788 chore: replace OpenGL 4.5 bindings with OpenGL 3.3 2022-10-17 19:09:27 -03:00
Rekai Nyangadzayi Musuka fc94249954 chore: remove unnecessary ptr cast 2022-10-17 19:08:21 -03:00
Rekai Nyangadzayi Musuka 5bc8068876 feat: implement better Colour Emulation 2022-10-17 19:08:21 -03:00
Rekai Nyangadzayi Musuka 32983d9450 fix: lower required OpenGL version + resolve offset bug 2022-10-17 19:08:21 -03:00
Rekai Nyangadzayi Musuka e55e632901 feat: use opengl
TODO:
- Texture isn't scaling properly
- I need to reverse the colours in the frag shader
2022-10-17 19:08:16 -03:00
1 changed files with 0 additions and 2 deletions

View File

@ -68,8 +68,6 @@ pub const Gpio = struct {
log.info("Device: {}", .{kind});
const self = try allocator.create(Self);
errdefer allocator.destroy(self);
self.* = .{
.data = 0b0000,
.direction = 0b1111, // TODO: What is GPIO DIrection set to by default?