mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Feat] (MG_Util/Converters): add symbolic constants for default FBO into ConvertGLEnumToFramebufferAttachmentType
This commit is contained in:
@@ -36,6 +36,14 @@ namespace MobileGL {
|
|||||||
return FramebufferAttachmentType::Depth;
|
return FramebufferAttachmentType::Depth;
|
||||||
case GL_STENCIL_ATTACHMENT:
|
case GL_STENCIL_ATTACHMENT:
|
||||||
return FramebufferAttachmentType::Stencil;
|
return FramebufferAttachmentType::Stencil;
|
||||||
|
case GL_FRONT_LEFT:
|
||||||
|
return FramebufferAttachmentType::FrontLeft;
|
||||||
|
case GL_FRONT_RIGHT:
|
||||||
|
return FramebufferAttachmentType::FrontRight;
|
||||||
|
case GL_BACK_LEFT:
|
||||||
|
return FramebufferAttachmentType::BackLeft;
|
||||||
|
case GL_BACK_RIGHT:
|
||||||
|
return FramebufferAttachmentType::BackRight;
|
||||||
default:
|
default:
|
||||||
return FramebufferAttachmentType::Unknown;
|
return FramebufferAttachmentType::Unknown;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user