/[gr2lib]/trunk/gr2lib/core/coretypes/native/Texture.cs
ViewVC logotype

Contents of /trunk/gr2lib/core/coretypes/native/Texture.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186 - (show annotations) (download)
Sat Jul 24 02:23:18 2010 UTC (9 years, 6 months ago) by william
File size: 1426 byte(s)
continue to add xml documentation

1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.Runtime.InteropServices;
5 using gr2lib.core.typedefs;
6
7 namespace gr2lib.core.coretypes.native
8 {
9 /// <summary>
10 /// Texture structure
11 /// </summary>
12 [StructLayout(LayoutKind.Sequential, Pack = 4), Size(Size = 72)]
13 public struct Texture
14 {
15 /// <summary>
16 /// Texture filename
17 /// </summary>
18 [MarshalAs(UnmanagedType.LPStr)]
19 public string FromFileName;
20 /// <summary>
21 /// TextureType
22 /// </summary>
23 public Int32 TextureType;
24 /// <summary>
25 /// Width
26 /// </summary>
27 public Int32 Width;
28 /// <summary>
29 /// Height
30 /// </summary>
31 public Int32 Height;
32 /// <summary>
33 /// Encoding
34 /// </summary>
35 public Int32 Encoding;
36 /// <summary>
37 /// SubFormat
38 /// </summary>
39 public Int32 SubFormat;
40 /// <summary>
41 /// Pixel layout
42 /// </summary>
43 public Layout Layout;//no pointer used in C code, typo?; 36
44 /// <summary>
45 /// Images associated with this texture
46 /// </summary>
47 public ArrayOfStructures Images;
48 /// <summary>
49 /// pointer to ExtendedData
50 /// </summary>
51 public IntPtr ExtendedData;
52 }
53 }

  ViewVC Help
Powered by ViewVC 1.1.22