ssloy/tinyrenderer

3d model

lukesky1301 opened this issue ยท 0 comments

๊ง๐‘ฐ๐’Ž๐’‚๐’ˆ๐’Š๐’๐’† ๐‘ต๐’‚๐’“๐’–๐’•๐’ ๊ง‚Hฬถiฬถaฬถtฬถoฬถsฬถ (1)

#include "tgaimage.h"
const TGAColor white = TGAColor(255, 255, 255, 255);
const TGAColor red = TGAColor(255, 0, 0, 255);
int main(int argc, char** argv) {
TGAImage image(100, 100, TGAImage::RGB);
image.set(52, 41, red);
image.write_tga_file("output.tga");`
return 0;
}