Ejemplo n.º 1
0
Archivo: Light.c Proyecto: RONNCC/pysoy
static void soy_bodies_light_finalize (GObject* obj) {
	soybodiesLight * self;
	soyscenesScene* _tmp0_;
	GeeHashSet* _tmp1_;
	gboolean _tmp2_ = FALSE;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SOY_BODIES_TYPE_LIGHT, soybodiesLight);
	_tmp0_ = ((soybodiesBody*) self)->scene;
	_tmp1_ = _tmp0_->lights;
	_tmp2_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _tmp1_, self);
	if (_tmp2_) {
		soyscenesScene* _tmp3_;
		soyscenesScene* _tmp4_;
		GeeHashSet* _tmp5_;
		soyscenesScene* _tmp6_;
		_tmp3_ = ((soybodiesBody*) self)->scene;
		g_rw_lock_writer_lock (&_tmp3_->stepLock);
		_tmp4_ = ((soybodiesBody*) self)->scene;
		_tmp5_ = _tmp4_->lights;
		gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp5_, self);
		_tmp6_ = ((soybodiesBody*) self)->scene;
		g_rw_lock_writer_unlock (&_tmp6_->stepLock);
	}
	self->priv->_ambient = (g_free (self->priv->_ambient), NULL);
	self->priv->_diffuse = (g_free (self->priv->_diffuse), NULL);
	self->priv->_specular = (g_free (self->priv->_specular), NULL);
	_g_object_unref0 (self->priv->_texture);
	G_OBJECT_CLASS (soy_bodies_light_parent_class)->finalize (obj);
}
Ejemplo n.º 2
0
Archivo: Light.c Proyecto: RONNCC/pysoy
static void soy_bodies_light_real_remove_extra (soybodiesBody* base) {
	soybodiesLight * self;
	soyscenesScene* _tmp0_;
	GeeHashSet* _tmp1_;
	self = (soybodiesLight*) base;
	_tmp0_ = ((soybodiesBody*) self)->scene;
	_tmp1_ = _tmp0_->lights;
	gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp1_, self);
}
Ejemplo n.º 3
0
void soy_scenes_td_side_unset2d (soyscenesTDSide* self, soybodiesBody* body) {
	GeeLinkedList* _tmp0_ = NULL;
	soybodiesBody* _tmp1_ = NULL;
	GeeHashMap* _tmp2_ = NULL;
	soybodiesBody* _tmp3_ = NULL;
#line 51 "/home/jeff/Documents/libraries/libsoy/src/scenes/TDSide.gs"
	g_return_if_fail (self != NULL);
#line 51 "/home/jeff/Documents/libraries/libsoy/src/scenes/TDSide.gs"
	g_return_if_fail (body != NULL);
#line 52 "/home/jeff/Documents/libraries/libsoy/src/scenes/TDSide.gs"
	_tmp0_ = self->tdbodies;
#line 52 "/home/jeff/Documents/libraries/libsoy/src/scenes/TDSide.gs"
	_tmp1_ = body;
#line 52 "/home/jeff/Documents/libraries/libsoy/src/scenes/TDSide.gs"
	gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp0_, _tmp1_);
#line 53 "/home/jeff/Documents/libraries/libsoy/src/scenes/TDSide.gs"
	_tmp2_ = self->plane2ds;
#line 53 "/home/jeff/Documents/libraries/libsoy/src/scenes/TDSide.gs"
	_tmp3_ = body;
#line 53 "/home/jeff/Documents/libraries/libsoy/src/scenes/TDSide.gs"
	gee_abstract_map_unset ((GeeAbstractMap*) _tmp2_, _tmp3_, NULL);
#line 391 "TDSide.c"
}
Ejemplo n.º 4
0
static void ease_main_remove_window (EaseEditorWindow* win) {
#line 859 "ease-main.c"
	guint _tmp0_;
	guint _tmp1_;
	gboolean _tmp2_ = FALSE;
#line 278 "ease-main.vala"
	g_return_if_fail (win != NULL);
#line 865 "ease-main.c"
	{
		GeeIterator* _info_it;
#line 280 "ease-main.vala"
		_info_it = gee_abstract_collection_iterator ((GeeAbstractCollection*) ease_main_windows);
#line 280 "ease-main.vala"
		while (TRUE) {
#line 872 "ease-main.c"
			EaseMainEditorWindowInfo* info;
#line 280 "ease-main.vala"
			if (!gee_iterator_next (_info_it)) {
#line 280 "ease-main.vala"
				break;
#line 878 "ease-main.c"
			}
#line 280 "ease-main.vala"
			info = (EaseMainEditorWindowInfo*) gee_iterator_get (_info_it);
#line 282 "ease-main.vala"
			if (info->window == win) {
#line 284 "ease-main.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) ease_main_windows, info);
#line 886 "ease-main.c"
				_ease_main_editor_window_info_unref0 (info);
#line 285 "ease-main.vala"
				break;
#line 890 "ease-main.c"
			}
			_ease_main_editor_window_info_unref0 (info);
		}
		_g_object_unref0 (_info_it);
	}
#line 288 "ease-main.vala"
	g_signal_parse_name ("play", EASE_TYPE_EDITOR_WINDOW, &_tmp0_, NULL, FALSE);
#line 288 "ease-main.vala"
	g_signal_handlers_disconnect_matched (win, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _ease_main_on_play_ease_editor_window_play, NULL);
#line 289 "ease-main.vala"
	g_signal_parse_name ("close", EASE_TYPE_EDITOR_WINDOW, &_tmp1_, NULL, FALSE);
#line 289 "ease-main.vala"
	g_signal_handlers_disconnect_matched (win, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _ease_main_on_close_ease_editor_window_close, NULL);
#line 291 "ease-main.vala"
	if (gee_collection_get_size ((GeeCollection*) ease_main_windows) == 0) {
#line 291 "ease-main.vala"
		_tmp2_ = ease_main_welcome == NULL;
#line 908 "ease-main.c"
	} else {
#line 291 "ease-main.vala"
		_tmp2_ = FALSE;
#line 912 "ease-main.c"
	}
#line 291 "ease-main.vala"
	if (_tmp2_) {
#line 293 "ease-main.vala"
		gtk_main_quit ();
#line 918 "ease-main.c"
	}
}