Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
C-/C++-Quelltext |
|
1 2 3 4 5 6 7 8 |
if((pEntry->Data->m_iPage == m_iCurrentPage || pEntry->Data->m_iPage == -1) && pEntry->Data->m_bVisible && pEntry->Data->m_bEnabled && m_vCursorPos.x > pEntry->Data->m_vPosition.x && m_vCursorPos.y > pEntry->Data->m_vPosition.y && m_vCursorPos.x < pEntry->Data->m_vPosition.x + pEntry->Data->m_vSize.x && m_vCursorPos.y < pEntry->Data->m_vPosition.y + pEntry->Data->m_vSize.y) { |
C-/C++-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
tbDraw2D* hallo = new tbDraw2D; D3DCOLOR Farbe; if(hallo->Init(m_Skin.pSkinTexture, 0)) TB_INFO("FEHLLLLER"); hallo->BeginDraw(NULL, D3DLOCK_READONLY); Farbe = hallo->GetPixel((m_vCursorPos-pEntry->Data->m_vPosition+pEntry->Data->m_vTextureCoords).x, (m_vCursorPos-pEntry->Data->m_vPosition+pEntry->Data->m_vTextureCoords).y); if(Farbe == 0) { pEntry->Data->m_bPressed = FALSE; } else { pEntry->Data->m_bPressed = TRUE; } |
Zitat
Tun sie das nicht alle? Zumindest laut Spezifikation!
Zitat von »"dot"«
Zitat
Tun sie das nicht alle? Zumindest laut Spezifikation!
!?
Zitat
Width
[in] Width in pixels. If this value is zero or D3DX_DEFAULT, the dimensions are taken from the file and rounded up to a power of two. If the device supports non-power of 2 textures and D3DX_DEFAULT_NONPOW2 is specified, the size will not be rounded.
Werbeanzeige