Skip to content

Instantly share code, notes, and snippets.

@h0hmj
Created October 12, 2017 11:02
Show Gist options
  • Save h0hmj/be9dd8489ef9c2e7b120de8d957947f9 to your computer and use it in GitHub Desktop.
Save h0hmj/be9dd8489ef9c2e7b120de8d957947f9 to your computer and use it in GitHub Desktop.
3d miniproject1 basic render
//Combine the multiple images into a single integrated image
void render() {
int x, y, z, v, m, n;
z = COL * 3;
for (x = 0; x < ROW; x++) {
for (y = 0; y < z; y++) {
back_buf[x][y] = image[mask[x % 9][y % 9]][x][y];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment