Ejemplo n.º 1
0
IoObject *IoGLScissor_setScreenRect(IoGLScissor *self, IoObject *locals, IoMessage *m)
{
	IoBox *box = IoMessage_locals_boxArgAt_(m, locals, 0);
	IoBox_rawCopy(DATA(self)->rect, box);
	IoGLScissor_set(self, locals, m);
	return self;
}
Ejemplo n.º 2
0
IoObject *IoGLScissor_unionWithViewRect(IoGLScissor *self, IoObject *locals, IoMessage *m)
{
	IoBox *box = IoMessage_locals_boxArgAt_(m, locals, 0);
	IoBox_rawCopy(DATA(self)->tmpRect, box);
	IoBox_glProject(DATA(self)->tmpRect, locals, m);
	IoBox_rawUnion(DATA(self)->rect, DATA(self)->tmpRect);
	IoGLScissor_set(self, locals, m);
	return self;
}
Ejemplo n.º 3
0
Archivo: IoBox.c Proyecto: ADTSH/io
IoObject *IoBox_Union(IoBox *self, IoObject *locals, IoMessage *m)
{
	/*doc Box Union(aBox)
	Returns a new box containing the 2d union of the receiver and aBox.
	*/

	IoBox *other = IoMessage_locals_boxArgAt_(m, locals, 0);
	IoBox_rawUnion(self, other);
	return self;
}
Ejemplo n.º 4
0
Archivo: IoBox.c Proyecto: ADTSH/io
IoObject *IoBox_copy(IoBox *self, IoObject *locals, IoMessage *m)
{
	/*doc Box copy(aBox)
	Copies the values of aBox to the receiver.
	*/

	IoBox *other = IoMessage_locals_boxArgAt_(m, locals, 0);
	IoSeq_rawCopy_(DATA(self)->origin, DATA(other)->origin);
	IoSeq_rawCopy_(DATA(self)->size,   DATA(other)->size);
	return self;
}