コード例 #1
0
ファイル: ant_tweak_bar.cpp プロジェクト: GliderPro/hadesmem
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);
}
コード例 #2
0
ファイル: NascentCommandStream.cpp プロジェクト: ldh9451/XLE
 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());
 }