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

Contents of /trunk/gr2lib/core/coretypes/implementation/LightInfo.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 83 - (show annotations) (download)
Fri Jul 16 21:26:08 2010 UTC (10 years, 1 month ago) by william
File size: 1420 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 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 LightInfo : ILightInfo
11 {
12
13 public LightInfo()
14 {
15 //this.NativePointer = IntPtr.Zero;
16 //this.ExtendedData = IntPtr.Zero;
17 }
18
19 internal static LightInfo ReadFromMemory(IntPtr pointer)
20 {
21 if (pointer == IntPtr.Zero) return null;
22 native.LightInfo native = Helpers.ReadFromMemory<native.LightInfo>(pointer);
23 LightInfo managed = ReadFromNative(native);
24 managed.NativePointer = pointer;
25 return managed;
26 }
27
28 internal static LightInfo ReadFromNative(native.LightInfo native)
29 {
30 LightInfo managed = new LightInfo();
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