ssloy / tinyrenderer

A brief computer graphics / rendering course

Home Page:https://github.com/ssloy/tinyrenderer/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3d model

lukesky1301 opened this issue ยท 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;
}