Do I need to use the GXBeginDraw/GXEndDraw pair in the GapiDraw CGapiApplication::ProcessNextFrame method? Since the sample programs don't have it, I am assuming that the GapiDraw library takes care of it, but maybe my assumption is wrong? Thanks.
Hi,
There is no need for any GX<operation>() in GapiDraw. This reply will go straight to the FAQ. GapiDraw uses the following mappings to GAPI:
-CGapiDisplay::OpenDisplay() - Calls GXOpenDisplay() and GXBeginDraw()
-CGapiDisplay::Flip() - Calls GXEndDraw() and GXBeginDraw()
-CGapiDisplay::SuspendDisplay() - Calls GXSuspendDisplay()
-CGapiDisplay::ResumeDisplay() - Calls GXResumeDisplay()
-CGapiDisplay::CloseDisplay () - Calls GXCloseDisplay (also called in CGapiDisplay destructor if not being called earlier)
-CGapiInput::OpenInput() - Calls GXOpenInput()
-CGapiInput::CloseInput() - Calls GXCloseInput() (also called in CGapiInput destructor)
The internal logic in GapiDraw guarantees that none of the GX<operation> will be called at wrong times (e.g. suspending a display that have never been opened etc).