mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 14:23:02 +01:00
Removed D3D9. (#3191)
This commit is contained in:
26
src/bgfx.cpp
26
src/bgfx.cpp
@@ -784,14 +784,12 @@ namespace bgfx
|
||||
uint32_t yy = 0;
|
||||
uint32_t xx = 0;
|
||||
|
||||
const float texelWidth = 1.0f/2048.0f;
|
||||
const float texelWidthHalf = RendererType::Direct3D9 == g_caps.rendererType ? 0.0f : texelWidth*0.5f;
|
||||
const float texelHeight = 1.0f/24.0f;
|
||||
const float texelHeightHalf = RendererType::Direct3D9 == g_caps.rendererType ? texelHeight*0.5f : 0.0f;
|
||||
const float utop = (_mem.m_small ? 0.0f : 8.0f)*texelHeight + texelHeightHalf;
|
||||
const float ubottom = (_mem.m_small ? 8.0f : 24.0f)*texelHeight + texelHeightHalf;
|
||||
const float fontHeight = (_mem.m_small ? 8.0f : 16.0f)*_blitter.m_scale;
|
||||
const float fontWidth = 8.0f * _blitter.m_scale;
|
||||
const float texelWidth = 1.0f/2048.0f;
|
||||
const float texelHeight = 1.0f/24.0f;
|
||||
const float utop = (_mem.m_small ? 0.0f : 8.0f)*texelHeight;
|
||||
const float ubottom = (_mem.m_small ? 8.0f : 24.0f)*texelHeight;
|
||||
const float fontHeight = (_mem.m_small ? 8.0f : 16.0f)*_blitter.m_scale;
|
||||
const float fontWidth = 8.0f * _blitter.m_scale;
|
||||
|
||||
_renderCtx->blitSetup(_blitter);
|
||||
|
||||
@@ -830,10 +828,10 @@ namespace bgfx
|
||||
|
||||
Vertex vert[4] =
|
||||
{
|
||||
{ (xx )*fontWidth, (yy )*fontHeight, 0.0f, fg, bg, (ch )*8.0f*texelWidth - texelWidthHalf, utop },
|
||||
{ (xx+1)*fontWidth, (yy )*fontHeight, 0.0f, fg, bg, (ch+1)*8.0f*texelWidth - texelWidthHalf, utop },
|
||||
{ (xx+1)*fontWidth, (yy+1)*fontHeight, 0.0f, fg, bg, (ch+1)*8.0f*texelWidth - texelWidthHalf, ubottom },
|
||||
{ (xx )*fontWidth, (yy+1)*fontHeight, 0.0f, fg, bg, (ch )*8.0f*texelWidth - texelWidthHalf, ubottom },
|
||||
{ (xx )*fontWidth, (yy )*fontHeight, 0.0f, fg, bg, (ch )*8.0f*texelWidth, utop },
|
||||
{ (xx+1)*fontWidth, (yy )*fontHeight, 0.0f, fg, bg, (ch+1)*8.0f*texelWidth, utop },
|
||||
{ (xx+1)*fontWidth, (yy+1)*fontHeight, 0.0f, fg, bg, (ch+1)*8.0f*texelWidth, ubottom },
|
||||
{ (xx )*fontWidth, (yy+1)*fontHeight, 0.0f, fg, bg, (ch )*8.0f*texelWidth, ubottom },
|
||||
};
|
||||
|
||||
bx::memCopy(vertex, vert, sizeof(vert) );
|
||||
@@ -2618,7 +2616,6 @@ namespace bgfx
|
||||
|
||||
BGFX_RENDERER_CONTEXT(noop);
|
||||
BGFX_RENDERER_CONTEXT(agc);
|
||||
BGFX_RENDERER_CONTEXT(d3d9);
|
||||
BGFX_RENDERER_CONTEXT(d3d11);
|
||||
BGFX_RENDERER_CONTEXT(d3d12);
|
||||
BGFX_RENDERER_CONTEXT(gnm);
|
||||
@@ -2642,7 +2639,6 @@ namespace bgfx
|
||||
{
|
||||
{ noop::rendererCreate, noop::rendererDestroy, BGFX_RENDERER_NOOP_NAME, true }, // Noop
|
||||
{ agc::rendererCreate, agc::rendererDestroy, BGFX_RENDERER_AGC_NAME, !!BGFX_CONFIG_RENDERER_AGC }, // GNM
|
||||
{ d3d9::rendererCreate, d3d9::rendererDestroy, BGFX_RENDERER_DIRECT3D9_NAME, !!BGFX_CONFIG_RENDERER_DIRECT3D9 }, // Direct3D9
|
||||
{ d3d11::rendererCreate, d3d11::rendererDestroy, BGFX_RENDERER_DIRECT3D11_NAME, !!BGFX_CONFIG_RENDERER_DIRECT3D11 }, // Direct3D11
|
||||
{ d3d12::rendererCreate, d3d12::rendererDestroy, BGFX_RENDERER_DIRECT3D12_NAME, !!BGFX_CONFIG_RENDERER_DIRECT3D12 }, // Direct3D12
|
||||
{ gnm::rendererCreate, gnm::rendererDestroy, BGFX_RENDERER_GNM_NAME, !!BGFX_CONFIG_RENDERER_GNM }, // GNM
|
||||
@@ -2715,7 +2711,6 @@ namespace bgfx
|
||||
else if (windowsVersionIs(Condition::GreaterEqual, 0x0601) )
|
||||
{
|
||||
score += RendererType::Direct3D11 == renderer ? 20 : 0;
|
||||
score += RendererType::Direct3D9 == renderer ? 10 : 0;
|
||||
score += RendererType::Direct3D12 == renderer ? -100 : 0;
|
||||
}
|
||||
else
|
||||
@@ -2730,7 +2725,6 @@ namespace bgfx
|
||||
score += RendererType::OpenGLES == renderer ? 30 : 0;
|
||||
score += RendererType::Direct3D12 == renderer ? 20 : 0;
|
||||
score += RendererType::Direct3D11 == renderer ? 10 : 0;
|
||||
score += RendererType::Direct3D9 == renderer ? 5 : 0;
|
||||
}
|
||||
else if (BX_ENABLED(BX_PLATFORM_OSX) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user