# HG changeset patch # User LordOfWar # Date 2009-02-16 00:49:03 # Node ID 1395d646ea88d2d75406e9c70a650dd7e3528367 # Parent f9139e24ffa80b1d8f0942356f1e0cbf445c80c8 attempting to fix error in distren c, changed the " and " around the string being passed in line 33 to ' and '. brainstorming layout for server, adding random code for brainstorming. diff --git a/src/client/distren.c b/src/client/distren.c --- a/src/client/distren.c +++ b/src/client/distren.c @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) frame_to_render = 10; // temporary, the number 10 will be replaced with a function call char name[25]; // declares a variable to hold the file name - name = "file_name"; // file_name will be replaced with a function call + name = 'file_name'; // file_name will be replaced with a function call char string[100]; sprintf(string, "blender.exe -b %s.blend -o //tmp/frame -f %d -F JPEG -x 1", name, frame_to_render); diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -46,7 +46,30 @@ void blender() int first_frame; int last_frame; - int pieces_per_frame; // for use of rendering piece so frames and stitching them together int current_frame; } + +int blender_get_frame() +{ + + + if(current_frame == (last_frame + 1)) + { + //get_job_frame(); // Will retrieve the new start frame from job_master + } + else + { + current_frame++; + } + + return frame_to_render; +} + +char blender_get_filename() +{ + char file_name[25]; + + return file_name; +} +