Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LPDIRECT3DTEXTURE9 texYellow, texRed;
- IDirect3DVertexBuffer9* pStreamData = NULL;
- UINT iOffsetInBytes,m_Stride;
- pDevice->GetStreamSource(0,&pStreamData,&iOffsetInBytes,&m_Stride);
- if ( ( m_Stride == 44 || m_Stride == 40 ) ){
- Beep(750,500);
- DWORD dwReEnableZB = D3DZB_TRUE;
- pDevice->GetRenderState(D3DRS_ZENABLE, &dwReEnableZB); //Cheque se o Buffer esta ligado
- pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE); // Desligue o Buffer
- pDevice->SetRenderState(D3DRS_ZFUNC, D3DCMP_NEVER);// Rejeita os pixels(shaders)
- ExitThread(0);
- } else {
- MessageBox(0, "Erro, NOBODY "+m_Stride, "D3D LOG", MB_OK + MB_ICONSTOP);
Advertisement
Add Comment
Please, Sign In to add comment