Beispiel #1
0
 internal SharedPtr(T value, IntPtr nativeObject, IntPtr heapSharedPtr, SharedPtrCollection <T> owner)
 {
     this.value         = value;
     this.nativeObject  = nativeObject;
     this.owner         = owner;
     this.heapSharedPtr = heapSharedPtr;
 }
Beispiel #2
0
        private SkeletonManager()
        {
            skeletonPtrCollection = new SharedPtrCollection <Skeleton>(Skeleton.createWrapper, SkeletonPtr_createHeapPtr, SkeletonPtr_Delete
#if FULL_AOT_COMPILE
                                                                       , processWrapperObject_AOT
#endif
                                                                       );
        }
        static OgreDataStream()
        {
            dataStreamCollection = new SharedPtrCollection <OgreDataStream>(createWrapper, DataStreamPtr_createHeapPtr, DataStreamPtr_Delete
#if FULL_AOT_COMPILE
                                                                            , processWrapperObject_AOT
#endif
                                                                            );
        }
Beispiel #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
                                                        );
 }
        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
                                                                         );
        }