/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/CameraInfo.cs
ViewVC logotype

Annotation of /trunk/gr2lib/core/coretypes/implementation/CameraInfo.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 83 - (hide annotations) (download)
Fri Jul 16 21:26:08 2010 UTC (10 years, 2 months ago) by william
File size: 1431 byte(s)
bulk commit --
** Enable Support for Skeletons & Bones

** A bug has found its way into the code
 -get an unhandled EHAccessViolation
 - I think the problem is in the Textures Class (or one of the sub-classes)

1 william 83 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5     using gr2lib.core.interfaces;
6     using gr2lib.core.helpers;
7    
8     namespace gr2lib.core.coretypes.implementation
9     {
10     public class CameraInfo : ICameraInfo
11     {
12    
13     public CameraInfo()
14     {
15     //this.NativePointer = IntPtr.Zero;
16     //this.ExtendedData = IntPtr.Zero;
17     }
18    
19     internal static CameraInfo ReadFromMemory(IntPtr pointer)
20     {
21     if (pointer == IntPtr.Zero) return null;
22     native.CameraInfo native = Helpers.ReadFromMemory<native.CameraInfo>(pointer);
23     CameraInfo managed = ReadFromNative(native);
24     managed.NativePointer = pointer;
25     return managed;
26     }
27    
28     internal static CameraInfo ReadFromNative(native.CameraInfo native)
29     {
30     CameraInfo managed = new CameraInfo();
31     managed.ExtendedData = native.ExtendedData;
32     return managed;
33     }
34    
35     #region INativePointer Members
36     private IntPtr _NativePointer;
37     public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
38     #endregion
39    
40     #region IExtendedData Members
41     private IntPtr _ExtendedData;
42     public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }
43     #endregion
44     }
45     }

  ViewVC Help
Powered by ViewVC 1.1.22