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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 72 - (show annotations) (download)
Thu Jul 15 14:22:00 2010 UTC (11 years, 4 months ago) by william
File size: 582 byte(s)
add: reading of textures

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 [StructLayout(LayoutKind.Sequential, Pack = 4), Size(Size = 36)]
10 internal struct Layout
11 {
12 public Int32 BytesPerPixel;
13 [MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 4)]
14 public int[] ShiftForComponent;//4 values
15 [MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 4)]
16 public int[] BitsForComponent ;//4 values
17 }
18 }

  ViewVC Help
Powered by ViewVC 1.1.22