void XPCWidget::AddAttachment( XPCWidgetAttachment * inAttachment, bool inOwnsAttachment, bool inPrefilter) { if (inPrefilter) { mAttachments.insert(mAttachments.begin(), AttachmentInfo(inAttachment, inOwnsAttachment)); } else { mAttachments.push_back(AttachmentInfo(inAttachment, inOwnsAttachment)); } }
kit::PixelBuffer::Ptr kit::PixelBuffer::createShadowBuffer(glm::uvec2 resolution) { return kit::PixelBuffer::create(resolution, AttachmentList(), AttachmentInfo(kit::Texture::createShadowmap(resolution))); }