예제 #1
0
파일: IoGLScissor.c 프로젝트: Akiyah/io
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;
}
예제 #2
0
파일: IoGLScissor.c 프로젝트: Akiyah/io
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;
}
예제 #3
0
파일: IoBox.c 프로젝트: 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;
}