コード例 #1
0
void FrameBufferObject::AttachCubeMapFace(const FBAttachment &attachment, const TextureTarget &texTarget, const TextureCubeMap &texture, GLint level) const
{
	glFramebufferTexture2D(FBTarget::FRAMEBUFFER().GetValue(), attachment.GetValue(), texTarget.GetValue(), texture.GetID(), level);
}
コード例 #2
0
void FrameBufferObject::AttachTexture2D(const FBAttachment &attachment, const Texture2D &texture, GLint level) const
{
	glFramebufferTexture2D(FBTarget::FRAMEBUFFER().GetValue(), attachment.GetValue(), TextureTarget::TEXTURE_2D().GetValue(), texture.GetID(), level);
}