Esempio n. 1
0
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));
	}
}								
Esempio n. 2
0
kit::PixelBuffer::Ptr kit::PixelBuffer::createShadowBuffer(glm::uvec2 resolution)
{
  return kit::PixelBuffer::create(resolution, AttachmentList(), AttachmentInfo(kit::Texture::createShadowmap(resolution)));
}