Example #1
0
IoObject *IoGLScissor_unionWithScreenRect(IoGLScissor *self, IoObject *locals, IoMessage *m)
{
	IoBox *box = IoMessage_locals_boxArgAt_(m, locals, 0);
	IoBox_rawUnion(DATA(self)->rect, box);
	IoGLScissor_set(self, locals, m);
	return self;
}
Example #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;
}
Example #3
0
File: IoBox.c Project: 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;
}