Horizontal rendering

This commit is contained in:
Ben
2019-08-26 11:52:18 +01:00
parent 3523b646d4
commit 75f54c1717
6 changed files with 58 additions and 37 deletions

View File

@@ -0,0 +1,16 @@
#include "tonemap.hpp"
// Need to map a vector of floats to a buffer. need to rework engine first
void MapHRDLDRBasic(uint32_t* buffer, int w, int h) {
for (int x = 0; x < w; x++)
for (int y = 0; y < h; y++) {
}
}
int index(int x, int y, int w) {
return (y * w + x);
}