int error = hw_MasterServer(lua_State *L, ULONG flags, struct hwTagList *tags);
flags
parameter determines which sections of
the master server you want to enter. The following flags are currently defined:
HWMSFLAGS_RUNCALLBACKS:
CheckEvent()
and WaitEvent()
. If for some reason your
display adapter cannot delegate event handling to CheckEvent()
or WaitEvent()
, the
HWMSFLAGS_RUNCALLBACKS
flag allows you to manually force Hollywood to run user
event callbacks when you need it. Use this flag with care. It's only needed under
very special circumstances.
HWMSFLAGS_DRAWVIDEOS:
hw_MasterServer()
with this flag set whenever it does some event
processing. Hollywood's video server worker threads will wake up your event loop using
ForceEventLoopIteration() whenever a video needs updating.
That's why you should always call hw_MasterServer()
with HWMSFLAGS_DRAWVIDEOS
whenever
you process your window events, preferably in your hw_HandleEvents()
implementation.
Please note that this function should only be used by display adapter plugins. If Hollywood is using its default display adapter, it will take care of calling into the master server on its own.
lua_State
NULL