Changeset - 63137fbb5790
[Not reviewed]
default
0 1 0
Nick & Matt's laptop - 17 years ago 2009-02-18 23:21:14

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
1 file changed with 8 insertions and 9 deletions:
0 comments (0 inline, 0 general)
src/client/distren.c
Show inline comments
 
@@ -18,33 +18,32 @@
 
*/
 

	
 
#include <stdio.h>
 

	
 
int main(int argc, char *argv[])
 
{
 
  int command; // changed from str command... what was that for?
 

	
 
  //just prove that linking to the shared lib werkz
 
  genericfunc();
 
  execlisten();
 

	
 
  struc job;
 
  // job =   // gets job structure from server
 
  // blender =   // gets blender structure from server
 

	
 
  /*-- job structure--
 
   * int file_name
 
   * int frame_to_render
 
   *
 
  /*-- 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 job structure
 
  // 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", name, frame_to_render);
 
  sprintf(string, "blender.exe -b (filename).blend -o //tmp/frame -f %d -F JPEG -x 1", frame_to_render);
 

	
 
  system(string);
 

	
 
  return 0;
 
}
0 comments (0 inline, 0 general)