Пример #1
0
static void soy_joints_joint_finalize (GObject* obj) {
	soyjointsJoint * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SOY_JOINTS_TYPE_JOINT, soyjointsJoint);
	_dJointDestroy0 (self->joint);
	_vala_clear_GMutex (&self->mutex);
	_g_object_unref0 (self->priv->_material);
	G_OBJECT_CLASS (soy_joints_joint_parent_class)->finalize (obj);
}
Пример #2
0
static void soy_joints_joint_real_create (soyjointsJoint* self) {
	struct dxWorld* _tmp0_;
	struct dxJoint* _tmp1_;
	_tmp0_ = soy_scenes__world;
	_tmp1_ = dJointCreateNull (_tmp0_, NULL);
	_dJointDestroy0 (self->joint);
	self->joint = _tmp1_;
}
Пример #3
0
static void soy_joints_hinge_real_create (soyjointsJoint* base) {
	soyjointsHinge * self;
	struct dxWorld* _tmp0_;
	struct dxJoint* _tmp1_;
	self = (soyjointsHinge*) base;
	_tmp0_ = soy_scenes__world;
	_tmp1_ = dJointCreateHinge (_tmp0_, NULL);
	_dJointDestroy0 (((soyjointsJoint*) self)->joint);
	((soyjointsJoint*) self)->joint = _tmp1_;
}
Пример #4
0
static void soy_joints_universal_real_create (soyjointsJoint* base) {
	soyjointsUniversal * self;
	soyscenesScene* _tmp0_;
	struct dxWorld* _tmp1_;
	struct dxJoint* _tmp2_;
	self = (soyjointsUniversal*) base;
	_tmp0_ = ((soyjointsJoint*) self)->scene;
	_tmp1_ = _tmp0_->world;
	_tmp2_ = dJointCreateUniversal (_tmp1_, NULL);
	_dJointDestroy0 (((soyjointsJoint*) self)->joint);
	((soyjointsJoint*) self)->joint = _tmp2_;
}
Пример #5
0
static void soy_joints_plane2_d_real_create (soyjointsJoint* base) {
	soyjointsPlane2D * self;
	soyscenesScene* _tmp0_;
	struct dxWorld* _tmp1_;
	struct dxJoint* _tmp2_;
	self = (soyjointsPlane2D*) base;
	_tmp0_ = ((soyjointsJoint*) self)->scene;
	_tmp1_ = _tmp0_->world;
	_tmp2_ = dJointCreatePlane2D (_tmp1_, NULL);
	_dJointDestroy0 (((soyjointsJoint*) self)->joint);
	((soyjointsJoint*) self)->joint = _tmp2_;
}
Пример #6
0
static void soy_joints_plane2_d_real_create (soyjointsJoint* base) {
	soyjointsPlane2D * self;
	struct dxWorld* _tmp0_ = NULL;
	struct dxJoint* _tmp1_ = NULL;
#line 28 "/home/jeff/Documents/libraries/libsoy/src/joints/Plane2D.gs"
	self = (soyjointsPlane2D*) base;
#line 29 "/home/jeff/Documents/libraries/libsoy/src/joints/Plane2D.gs"
	_tmp0_ = soy_scenes__world;
#line 29 "/home/jeff/Documents/libraries/libsoy/src/joints/Plane2D.gs"
	_tmp1_ = dJointCreatePlane2D (_tmp0_, NULL);
#line 29 "/home/jeff/Documents/libraries/libsoy/src/joints/Plane2D.gs"
	_dJointDestroy0 (((soyjointsJoint*) self)->joint);
#line 29 "/home/jeff/Documents/libraries/libsoy/src/joints/Plane2D.gs"
	((soyjointsJoint*) self)->joint = _tmp1_;
#line 198 "Plane2D.c"
}
Пример #7
0
static void soy_joints_hinge_real_create (soyjointsJoint* base) {
	soyjointsHinge * self;
	struct dxWorld* _tmp0_ = NULL;
	struct dxJoint* _tmp1_ = NULL;
#line 29 "/home/jeff/Documents/libraries/libsoy/src/joints/Hinge.gs"
	self = (soyjointsHinge*) base;
#line 30 "/home/jeff/Documents/libraries/libsoy/src/joints/Hinge.gs"
	_tmp0_ = soy_scenes__world;
#line 30 "/home/jeff/Documents/libraries/libsoy/src/joints/Hinge.gs"
	_tmp1_ = dJointCreateHinge (_tmp0_, NULL);
#line 30 "/home/jeff/Documents/libraries/libsoy/src/joints/Hinge.gs"
	_dJointDestroy0 (((soyjointsJoint*) self)->joint);
#line 30 "/home/jeff/Documents/libraries/libsoy/src/joints/Hinge.gs"
	((soyjointsJoint*) self)->joint = _tmp1_;
#line 247 "Hinge.c"
}