示例#1
0
void callback_delete_all( GtkWidget *widget, gpointer data){
	while(frame_delete());
	frame_make_black();
	frame_load_colors(color_button);
	callback_color_changed(widget, data);
	window_update_label();
}
示例#2
0
void animation_delete(animation* a) {
  
  for(int i = 0; i < a->frame_count; i++) {
    frame_delete(a->frames[i]);
  }
  
  free(a->frames);
  free(a);
}
示例#3
0
void client_game_delete()
{
	stk_surface_free( &bkgnd );
	
	displays_clear();
	frame_delete();
	shrapnells_delete();
	shine_delete();
}
示例#4
0
void callback_delete_current( GtkWidget *widget, gpointer data){
	if(frame_header->current_frame->next_frame == NULL && frame_header->current_frame->prev_frame == NULL){
		window_popup_warning("Can't delete the last frame!");
	}
	else{
		frame_delete();
		frame_load_colors(color_button);
		callback_color_changed(widget, data);
		window_update_label();
	}
}
示例#5
0
void animated_object_update(animated_object* ao, float timestep) {
  
  ao->animation_time += timestep;
  
  animation* a = asset_hndl_ptr(&ao->animation);
  if (a == NULL) { return; }
  
  if (ao->pose != NULL) {
    frame_delete(ao->pose);
    ao->pose = NULL;
  }
  
  ao->pose = animation_sample(a, ao->animation_time);
  frame_gen_transforms(ao->pose);
  
}
示例#6
0
void animated_object_load_skeleton(animated_object* ao, asset_hndl ah) {
  if(ao->pose != NULL) { frame_delete(ao->pose); }
  ao->skeleton = ah;
  ao->pose = frame_copy(((skeleton*)asset_hndl_ptr(&ao->skeleton))->rest_pose);
  frame_gen_transforms(ao->pose);
}
示例#7
0
void animated_object_delete(animated_object* ao) {
  if (ao->pose) { frame_delete(ao->pose); }
  free(ao);
}