MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetPresentation

Method SetPresentation

trinity/TriDevice.cpp:669–685  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////////////////// ITriDevice::SetPresentation Called from the App to set some attributes ////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

667// Called from the App to set some attributes
668/////////////////////////////////////////////////////////////////////////////////////////
669bool 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
687void TriDevice::InvalidateAndUnregisterForTicks()
688{

Callers 1

SetStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected