rdsedmundo

Untitled

Jun 26th, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. LPDIRECT3DTEXTURE9 texYellow, texRed;
  2. IDirect3DVertexBuffer9* pStreamData = NULL;
  3. UINT iOffsetInBytes,m_Stride;
  4. pDevice->GetStreamSource(0,&pStreamData,&iOffsetInBytes,&m_Stride);
  5. if ( ( m_Stride == 44 || m_Stride == 40 ) ){
  6. Beep(750,500);
  7. DWORD dwReEnableZB = D3DZB_TRUE;
  8. pDevice->GetRenderState(D3DRS_ZENABLE, &dwReEnableZB); //Cheque se o Buffer esta ligado
  9. pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE); // Desligue o Buffer
  10. pDevice->SetRenderState(D3DRS_ZFUNC, D3DCMP_NEVER);// Rejeita os pixels(shaders)
  11. ExitThread(0);
  12. } else {
  13. MessageBox(0, "Erro, NOBODY "+m_Stride, "D3D LOG", MB_OK + MB_ICONSTOP);
Advertisement
Add Comment
Please, Sign In to add comment