diff options
| author | Mateja <mail@matejamaric.com> | 2021-01-18 16:57:38 +0100 |
|---|---|---|
| committer | Mateja <mail@matejamaric.com> | 2021-01-18 16:57:38 +0100 |
| commit | f401d2e9c253406355082eb0eed675e6430e5c48 (patch) | |
| tree | 0bb6c4b2407e15acd0a6d8aa833c2a233d438b99 | |
| parent | 7bd9013e43a65f7265a94d3d825ab83e292d00e1 (diff) | |
| download | barycentric-render-master.tar.gz barycentric-render-master.zip | |
| -rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -170,7 +170,7 @@ int main() std::ofstream imageFile; imageFile.open("./image.ppm"); - imageFile << "P6\n" << image.imageWidth << " " << image.imageHeight << "\n255\n"; + imageFile << "P6 " << image.imageWidth << " " << image.imageHeight << " 255 "; imageFile.write((char*)image.pixels, image.imageWidth * image.imageHeight * 3); imageFile.close(); |
