A brief computer graphics / rendering course
Home Page:https://github.com/ssloy/tinyrenderer/wiki
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
lukesky1301 opened this issue 2 years ago ยท comments
#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; }