コード例 #1
0
ファイル: SharedPtr.cs プロジェクト: AnomalousMedical/Engine
 internal SharedPtr(T value, IntPtr nativeObject, IntPtr heapSharedPtr, SharedPtrCollection <T> owner)
 {
     this.value         = value;
     this.nativeObject  = nativeObject;
     this.owner         = owner;
     this.heapSharedPtr = heapSharedPtr;
 }
コード例 #2
0
        private SkeletonManager()
        {
            skeletonPtrCollection = new SharedPtrCollection <Skeleton>(Skeleton.createWrapper, SkeletonPtr_createHeapPtr, SkeletonPtr_Delete
#if FULL_AOT_COMPILE
                                                                       , processWrapperObject_AOT
#endif
                                                                       );
        }
コード例 #3
0
        static OgreDataStream()
        {
            dataStreamCollection = new SharedPtrCollection <OgreDataStream>(createWrapper, DataStreamPtr_createHeapPtr, DataStreamPtr_Delete
#if FULL_AOT_COMPILE
                                                                            , processWrapperObject_AOT
#endif
                                                                            );
        }
コード例 #4
0
 private MeshManager()
 {
     PerformanceMonitor.addValueProvider("Ogre Mesh Memory Usage", () => Prettify.GetSizeReadable(MemoryUsage));
     meshPtrCollection = new SharedPtrCollection <Mesh>(Mesh.createWrapper, MeshPtr_createHeapPtr, MeshPtr_Delete
     #if FULL_AOT_COMPILE
                                                        , processWrapperObject_AOT
     #endif
                                                        );
 }
コード例 #5
0
        private HardwareBufferManager()
        {
            indexBuffers = new SharedPtrCollection <HardwareIndexBuffer>(HardwareIndexBuffer.createWrapper, HardwareIndexBufferPtr_createHeapPtr, HardwareIndexBufferPtr_Delete
#if FULL_AOT_COMPILE
                                                                         , processWrapperIndexBuffer_AOT
#endif
                                                                         );
            vertexBuffers = new SharedPtrCollection <HardwareVertexBuffer>(HardwareVertexBuffer.createWrapper, HardwareVertexBufferPtr_createHeapPtr, HardwareVertexBufferPtr_Delete
#if FULL_AOT_COMPILE
                                                                           , processWrapperVertexBuffer_AOT
#endif
                                                                           );
            pixelBuffers = new SharedPtrCollection <HardwarePixelBuffer>(HardwarePixelBuffer.createWrapper, HardwarePixelBufferPtr_createHeapPtr, HardwarePixelBufferPtr_Delete
#if FULL_AOT_COMPILE
                                                                         , processWrapperPixelBuffer_AOT
#endif
                                                                         );
        }