Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create output
- colorOutput_t *output = NULL;
- yi->paramsClearAll();
- yi->paramsSetString("type", "tga");
- yi->paramsSetInt("width", 640);
- yi->paramsSetInt("height", 480);
- imageHandler_t *ih = yi->createImageHandler("outFile");
- if(ih)
- {
- output = new imageOutput_t(ih,"test.tga", 0, 0);
- if(!output) return 1;
- }
- else return 1;
- yi->render(*output);
- yi->clearAll();
- delete yi;
- //save tga file:
- output->flush();
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement