Exemple #1
0
void InitializeAntTweakBar()
{
  auto& input = GetInputInterface();
  input.RegisterOnInputQueueEntry(HandleInputQueueEntry);

  auto& render = GetRenderInterface();
  render.RegisterOnFrame(OnFrameAntTweakBar);
  render.RegisterOnResize(OnResizeAntTweakBar);
  render.RegisterOnInitializeGui(OnInitializeAntTweakBarGui);
  render.RegisterOnCleanupGui(OnCleanupAntTweakBarGui);
  render.RegisterOnSetGuiVisibility(SetAllTweakBarVisibility);

  RegisterOnUnloadPlugins(OnUnloadPlugins);
}
Exemple #2
0
 void NascentModelCommandStream::Serialize(Serialization::NascentBlockSerializer& serializer) const
 {
     serializer.SerializeSubBlock(AsPointer(_geometryInstances.begin()), AsPointer(_geometryInstances.end()));
     serializer.SerializeValue(_geometryInstances.size());
     serializer.SerializeSubBlock(AsPointer(_skinControllerInstances.begin()), AsPointer(_skinControllerInstances.end()));
     serializer.SerializeValue(_skinControllerInstances.size());
         
         //
         //      Turn our list of input matrices into hash values, and write out the
         //      run-time input interface definition...
         //
     ConsoleRig::DebuggerOnlyWarning("Command stream input interface:\n");
     auto inputInterface = GetInputInterface();
     serializer.SerializeSubBlock(AsPointer(inputInterface.cbegin()), AsPointer(inputInterface.cend()));
     serializer.SerializeValue(_transformationMachineOutputs.size());
 }