/*
Copyright 2008 Nathan Phillip Brink, Ethan Zonca, Matt Orlando
This file is a part of DistRen.
DistRen is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DistRen is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with DistRen. If not, see .
*/
#include
int main(int argc, char *argv[])
{
//just prove that linking to the shared lib werkz
genericfunc();
execlisten();
// blender = // gets blender structure from server
/*-- blender structure--
* file_name
* frame_to_render
* url to dl .blend file
*/
int frame_to_render;
frame_to_render = 10; // temporary, the number 10 will be replaced with a function call
char file_name[25]; // declares a variable to hold the file name
// file_name = job.file_name // retrieves file name from the blender structure
char string[100];
sprintf(string, "blender.exe -b (filename).blend -o //tmp/frame -f %d -F JPEG -x 1", frame_to_render);
system(string);
return 0;
}