{
return (m_renderCaps & RENDER_CAPS_DXT) == RENDER_CAPS_DXT;
}
+
+bool CRenderSystemBase::SupportsBGRA() const
+{
+ return (m_renderCaps & RENDER_CAPS_BGRA) == RENDER_CAPS_BGRA;
+}
+
+bool CRenderSystemBase::SupportsBGRAApple() const
+{
+ return (m_renderCaps & RENDER_CAPS_BGRA_APPLE) == RENDER_CAPS_BGRA_APPLE;
+}
+
{
RENDER_CAPS_DXT = (1 << 0),
RENDER_CAPS_NPOT = (1 << 1),
- RENDER_CAPS_DXT_NPOT = (1 << 2)
+ RENDER_CAPS_DXT_NPOT = (1 << 2),
+ RENDER_CAPS_BGRA = (1 << 3),
+ RENDER_CAPS_BGRA_APPLE = (1 << 4)
};
class CRenderSystemBase
const CStdString& GetRenderRenderer() const { return m_RenderRenderer; }
const CStdString& GetRenderVersionString() const { return m_RenderVersion; }
bool SupportsDXT() const;
+ bool SupportsBGRA() const;
+ bool SupportsBGRAApple() const;
bool SupportsNPOT(bool dxt) const;
unsigned int GetMaxTextureSize() const { return m_maxTextureSize; }
unsigned int GetMinDXTPitch() const { return m_minDXTPitch; }
m_renderCaps |= RENDER_CAPS_NPOT;
}
+ if (IsExtSupported("GL_IMG_texture_format_BGRA8888"))
+ {
+ m_renderCaps |= RENDER_CAPS_BGRA;
+ }
+
+ if (IsExtSupported("GL_APPLE_texture_format_BGRA8888"))
+ {
+ m_renderCaps |= RENDER_CAPS_BGRA_APPLE;
+ }
+
+
+
m_bRenderCreated = true;
InitialiseGUIShader();