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; }
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; }
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; }