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