本文整理汇总了C#中Library.CopyClassFields方法的典型用法代码示例。如果您正苦于以下问题:C# Library.CopyClassFields方法的具体用法?C# Library.CopyClassFields怎么用?C# Library.CopyClassFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Library
的用法示例。
在下文中一共展示了Library.CopyClassFields方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Preprocess
public void Preprocess(Driver driver, Library lib)
{
lib.IgnoreHeadersWithName("API.h");
lib.IgnoreHeadersWithName("Concurrency.h");
lib.IgnoreHeadersWithName("ConcurrentQueue.h");
lib.IgnoreHeadersWithName("Delegate.h");
lib.IgnoreHeadersWithName("Event.h");
lib.IgnoreHeadersWithName("Handle.h");
lib.IgnoreHeadersWithName("Object.h");
lib.IgnoreHeadersWithName("Pointers.h");
lib.IgnoreHeadersWithName("References.h");
lib.IgnoreHeadersWithName("Reflection.h");
lib.IgnoreHeadersWithName("ReflectionHelpers.h");
lib.IgnoreHeadersWithName("Task.h");
lib.IgnoreHeadersWithName("Timer.h");
//Core
lib.IgnoreClassWithName("Object");
lib.IgnoreClassWithName("Class");
lib.IgnoreClassWithName("ReferenceCounted");
lib.IgnoreClassWithName("HandleManager");
lib.IgnoreClassWithName("Delegate0");
lib.IgnoreClassWithName("Delegate1");
lib.IgnoreClassWithName("Delegate2");
lib.IgnoreClassWithName("TaskPool");
lib.IgnoreClassWithName("ConcurrentQueue");
lib.SetClassAsValueType("StringHash");
lib.IgnoreClassWithName("RawStringCompare");
lib.SetClassAsValueType("LogEntry");
lib.IgnoreFunctionWithName("LogCreate");
lib.IgnoreFunctionWithName("AllocatorAllocate");
lib.IgnoreFunctionWithName("AllocatorDeallocate");
lib.SetNameOfFunction("AllocatorReset", "AllocatorResetMemory");
lib.IgnoreClassWithName("StreamFuncs");
lib.IgnoreClassWithName("FileStream");
lib.SetClassAsValueType("FileWatchEvent");
lib.IgnoreFunctionWithPattern(".+GetType");
lib.IgnoreFunctionWithName("ClassGetIdMap");
lib.IgnoreFunctionWithName("ReflectionSetHandleContext");
lib.IgnoreFunctionWithName("SerializerCreateJSON");
lib.IgnoreFunctionWithName("SerializerCreateBinary");
lib.IgnoreClassWithName("ReflectionContext");
lib.IgnoreClassWithName("ValueContext");
lib.SetClassAsValueType("ExtensionMetadata");
lib.IgnoreClassWithName("MemoryStream");
lib.IgnoreClassWithName("Serializer");
lib.IgnoreClassWithName("Thread");
// Math
lib.SetClassAsValueType("ColorP");
lib.SetClassAsValueType("Color");
lib.SetClassAsValueType("Vector2P");
lib.SetClassAsValueType("Vector2");
lib.SetClassAsValueType("Vector2i");
lib.SetClassAsValueType("Vector3P");
lib.SetClassAsValueType("Vector3");
lib.SetClassAsValueType("Vector4");
lib.SetClassAsValueType("EulerAngles");
lib.SetClassAsValueType("QuaternionP");
lib.SetClassAsValueType("Quaternion");
lib.SetClassAsValueType("Matrix4x3");
lib.SetClassAsValueType("Matrix4x4");
lib.CopyClassFields("ColorP", "Color");
lib.CopyClassFields("Vector2P", "Vector2");
lib.CopyClassFields("Vector3P", "Vector3");
lib.CopyClassFields("QuaternionP", "Quaternion");
lib.IgnoreClassWithName("ColorP");
lib.IgnoreClassWithName("Vector2P");
lib.IgnoreClassWithName("Vector3P");
lib.IgnoreClassWithName("QuaternionP");
lib.SetNameOfClassMethod("Matrix4x3", "identity", "setIdentity");
lib.SetNameOfClassMethod("Matrix4x4", "identity", "setIdentity");
lib.SetNameOfClassMethod("Quaternion", "identity", "setIdentity");
lib.SetNameOfClassMethod("Vector2", "zero", "setZero");
lib.SetNameOfClassMethod("Vector3", "zero", "setZero");
lib.SetNameOfClassMethod("Vector4", "zero", "setZero");
// Resources
lib.IgnoreFunctionWithName("ResourcesInitialize");
lib.IgnoreFunctionWithName("ResourcesDeinitialize");
//lib.SetClassAsValueType("ResourceEvent");
lib.SetClassAsValueType("ResourceLoadOption");
lib.SetClassAsValueType("ResourceLoadOptions");
lib.SetNameOfClassMethod("Texture", "allocate", "alloc");
lib.ExcludeFromPass("ResourceHandleCreate", typeof (FunctionToInstanceMethodPass));
// Graphics
//.........这里部分代码省略.........