//////////////////////////////////////////////////////////////////////////////////// ITriDevice::SetPresentation Called from the App to set some attributes ////////////////////////////////////////////////////////////////////////////////////
| 667 | // Called from the App to set some attributes |
| 668 | ///////////////////////////////////////////////////////////////////////////////////////// |
| 669 | bool TriDevice::SetPresentation( int adapter, const Tr2PresentParametersAL* d3dpp ) |
| 670 | { |
| 671 | if( d3dpp ) |
| 672 | { |
| 673 | mAdapter = adapter; |
| 674 | mPresentParam = *d3dpp; |
| 675 | mHwnd = d3dpp->outputWindow; |
| 676 | mWidth = d3dpp->mode.width; |
| 677 | mHeight = d3dpp->mode.height; |
| 678 | BeOS->RegisterForTicks( this, (void*)TRINITY ); |
| 679 | } |
| 680 | else |
| 681 | { |
| 682 | InvalidateAndUnregisterForTicks(); |
| 683 | } |
| 684 | return true; |
| 685 | } |
| 686 | |
| 687 | void TriDevice::InvalidateAndUnregisterForTicks() |
| 688 | { |