bug fixed
This commit is contained in:
parent
3794cef124
commit
fff3e8c370
|
|
@ -52,14 +52,10 @@ void e2d::Collider::_render()
|
||||||
{
|
{
|
||||||
if (m_pTransformedGeometry && m_bEnable)
|
if (m_pTransformedGeometry && m_bEnable)
|
||||||
{
|
{
|
||||||
|
// 获取纯色画刷
|
||||||
ID2D1SolidColorBrush * pBrush = Renderer::getSolidColorBrush();
|
ID2D1SolidColorBrush * pBrush = Renderer::getSolidColorBrush();
|
||||||
// ´´½¨»Ë¢
|
// 设置画刷颜色和透明度
|
||||||
Renderer::getRenderTarget()->CreateSolidColorBrush(
|
pBrush->SetColor(D2D1::ColorF(m_nColor, m_fOpacity));
|
||||||
D2D1::ColorF(
|
|
||||||
m_nColor,
|
|
||||||
m_fOpacity),
|
|
||||||
&pBrush
|
|
||||||
);
|
|
||||||
// 삥齡섯부툭旒竟
|
// 삥齡섯부툭旒竟
|
||||||
Renderer::getRenderTarget()->DrawGeometry(m_pTransformedGeometry, pBrush);
|
Renderer::getRenderTarget()->DrawGeometry(m_pTransformedGeometry, pBrush);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue