Changeset - 8af1e34f742f
[Not reviewed]
default
0 2 0
LordOfWar - 17 years ago 2009-02-13 20:05:22

added noted out code to the client to call for the get_task function which I created in the client distren.c file

added a blender class and get_task function to the server distrend.c file
2 files changed with 38 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/client/distren.c
Show inline comments
 
@@ -16,14 +16,16 @@
 
  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();
 

	
 
  // get_task(); //asks server for next frame and part to be rendered
 

	
 
  return 0;
 
}
src/server/distrend.c
Show inline comments
 
@@ -15,14 +15,50 @@
 

	
 
  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[])
 
{
 

	
 

	
 

	
 
  return 0;
 
}
 

	
 

	
 
str blender()
 
{
 
	str = dont_no_yet;
 
	int first_frame;
 
	int last_frame;
 
	int pieces_per_frame; // for use of rendering piece so frames and stitching them together
 
	int current_frame;
 

	
 
	//(get first_fram and last_frame from form)
 

	
 
	current_frame = first_frame;
 

	
 
	str get_task();
 
	while (current_frame <= x)
 
	{
 

	
 
	//if (pieces_per_frame == 0)
 
	//{
 

	
 
	//}
 

	
 
	//(tell blender to render frame current_frame)
 

	
 
	return current_frame;
 

	
 
	current_frame --;
 
	}
 

	
 
	// generate command to pass to client
 

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