//-------------------------------------------------------------- // draw the cursor image void mgDX9Display::drawCursor() { int x = m_cursorX; int y = m_cursorY; if (!m_cursorTrack) { x = m_graphicsWidth/2; y = m_graphicsHeight/2; } drawOverlayTexture(m_cursorTexture, x - m_cursorHotX, y - m_cursorHotY, m_cursorTexture->m_width, m_cursorTexture->m_height); }
//-------------------------------------------------------------- // draw the cursor image void mgGL33Services::drawCursor() { // draw the cursor, if enabled if (!m_cursorEnabled || m_cursorTexture == mgNullHandle) return; int x = m_cursorX; int y = m_cursorY; if (!m_cursorTrack) { x = m_graphicsWidth/2; y = m_graphicsHeight/2; } glEnable(GL_BLEND); glDisable(GL_DEPTH_TEST); drawOverlayTexture(m_cursorTexture, x - m_cursorHotX, y - m_cursorHotY, m_cursorTexture->m_width, m_cursorTexture->m_height); }