Files @ 63137fbb5790
Branch filter:

Location: DistRen/src/client/distren.c

Nick & Matt's laptop
Took out the structure declaration since a structure was never defined. It shouldn't have to be since it will be recieved from the server but we have no link to the server and no way to retrieve the blender job structure as of now.

Also took out the "name" string since I had trouble declaring it
/*
  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 <http://www.gnu.org/licenses/>.
*/

#include <stdio.h>

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;
}