/[gr2lib]/trunk/gr2lib/core/typedefs/typedefs.cs
ViewVC logotype

Contents of /trunk/gr2lib/core/typedefs/typedefs.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 145 - (show annotations) (download)
Mon Jul 19 09:39:21 2010 UTC (10 years ago) by william
File size: 56363 byte(s)
coreapi.GrannyCopyTextureImage -> Finially got a return value of true from the copy function.
Will have to check and see what exactly was copied

1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.Runtime.InteropServices;
5 using gr2lib.core.coretypes.implementation;
6
7 namespace gr2lib.core.typedefs
8 {
9 #region typedefs
10
11
12 public struct granny_pixel_layout_types
13 {
14 #region Pixel Layout: GrannyRGB555PixelFormat
15 public static Layout GrannyRGB555PixelFormat
16 {
17 get
18 {
19 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
20 if (hdl != IntPtr.Zero)
21 {
22 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGB555PixelFormat");
23 if (addr != IntPtr.Zero)
24 {
25 gr2lib.core.coretypes.native.Layout _native;
26 Layout _tmp_layout = new Layout();
27 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
28 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
29 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
30 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
31 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
32 return _tmp_layout;
33 }
34 else
35 {
36 return new Layout();
37 }
38 }
39 else
40 {
41 return new Layout();
42 }
43 }
44 }
45 #endregion
46 #region Pixel Layout: GrannyRGBA5551PixelFormat
47 public static Layout GrannyRGBA5551PixelFormat
48 {
49 get
50 {
51 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
52 if (hdl != IntPtr.Zero)
53 {
54 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGBA5551PixelFormat");
55 if (addr != IntPtr.Zero)
56 {
57 gr2lib.core.coretypes.native.Layout _native;
58 Layout _tmp_layout = new Layout();
59 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
60 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
61 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
62 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
63 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
64 return _tmp_layout;
65 }
66 else
67 {
68 return new Layout();
69 }
70 }
71 else
72 {
73 return new Layout();
74 }
75 }
76 }
77 #endregion
78 #region Pixel Layout: GrannyRGBA4444PixelFormat
79 public static Layout GrannyRGBA4444PixelFormat
80 {
81 get
82 {
83 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
84 if (hdl != IntPtr.Zero)
85 {
86 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGBA4444PixelFormat");
87 if (addr != IntPtr.Zero)
88 {
89 gr2lib.core.coretypes.native.Layout _native;
90 Layout _tmp_layout = new Layout();
91 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
92 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
93 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
94 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
95 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
96 return _tmp_layout;
97 }
98 else
99 {
100 return new Layout();
101 }
102 }
103 else
104 {
105 return new Layout();
106 }
107 }
108 }
109 #endregion
110 #region Pixel Layout: GrannyRGB888PixelFormat
111 public static Layout GrannyRGB888PixelFormat
112 {
113 get
114 {
115 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
116 if (hdl != IntPtr.Zero)
117 {
118 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGB888PixelFormat");
119 if (addr != IntPtr.Zero)
120 {
121 gr2lib.core.coretypes.native.Layout _native;
122 Layout _tmp_layout = new Layout();
123 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
124 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
125 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
126 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
127 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
128 return _tmp_layout;
129 }
130 else
131 {
132 return new Layout();
133 }
134 }
135 else
136 {
137 return new Layout();
138 }
139 }
140 }
141 #endregion
142 #region Pixel Layout: GrannyRGBA8888PixelFormat
143 public static Layout GrannyRGBA8888PixelFormat
144 {
145 get
146 {
147 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
148 if (hdl != IntPtr.Zero)
149 {
150 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyRGBA8888PixelFormat");
151 if (addr != IntPtr.Zero)
152 {
153 gr2lib.core.coretypes.native.Layout _native;
154 Layout _tmp_layout = new Layout();
155 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
156 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
157 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
158 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
159 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
160 return _tmp_layout;
161 }
162 else
163 {
164 return new Layout();
165 }
166 }
167 else
168 {
169 return new Layout();
170 }
171 }
172 }
173 #endregion
174 #region Pixel Layout: GrannyARGB8888PixelFormat
175 public static Layout GrannyARGB8888PixelFormat
176 {
177 get
178 {
179 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
180 if (hdl != IntPtr.Zero)
181 {
182 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyARGB8888PixelFormat");
183 if (addr != IntPtr.Zero)
184 {
185 gr2lib.core.coretypes.native.Layout _native;
186 Layout _tmp_layout = new Layout();
187 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
188 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
189 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
190 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
191 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
192 return _tmp_layout;
193 }
194 else
195 {
196 return new Layout();
197 }
198 }
199 else
200 {
201 return new Layout();
202 }
203 }
204 }
205 #endregion
206 #region Pixel Layout: GrannyBGR555PixelFormat
207 public static Layout GrannyBGR555PixelFormat
208 {
209 get
210 {
211 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
212 if (hdl != IntPtr.Zero)
213 {
214 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyBGR555PixelFormat");
215 if (addr != IntPtr.Zero)
216 {
217 gr2lib.core.coretypes.native.Layout _native;
218 Layout _tmp_layout = new Layout();
219 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
220 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
221 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
222 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
223 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
224 return _tmp_layout;
225 }
226 else
227 {
228 return new Layout();
229 }
230 }
231 else
232 {
233 return new Layout();
234 }
235 }
236 }
237 #endregion
238 #region Pixel Layout: GrannyBGR565PixelFormat
239 public static Layout GrannyBGR565PixelFormat
240 {
241 get
242 {
243 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
244 if (hdl != IntPtr.Zero)
245 {
246 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyBGR565PixelFormat");
247 if (addr != IntPtr.Zero)
248 {
249 gr2lib.core.coretypes.native.Layout _native;
250 Layout _tmp_layout = new Layout();
251 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
252 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
253 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
254 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
255 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
256 return _tmp_layout;
257 }
258 else
259 {
260 return new Layout();
261 }
262 }
263 else
264 {
265 return new Layout();
266 }
267 }
268 }
269 #endregion
270 #region Pixel Layout: GrannyBGRA5551PixelFormat
271 public static Layout GrannyBGRA5551PixelFormat
272 {
273 get
274 {
275 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
276 if (hdl != IntPtr.Zero)
277 {
278 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyBGRA5551PixelFormat");
279 if (addr != IntPtr.Zero)
280 {
281 gr2lib.core.coretypes.native.Layout _native;
282 Layout _tmp_layout = new Layout();
283 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
284 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
285 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
286 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
287 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
288 return _tmp_layout;
289 }
290 else
291 {
292 return new Layout();
293 }
294 }
295 else
296 {
297 return new Layout();
298 }
299 }
300 }
301 #endregion
302 #region Pixel Layout: GrannyBGRA4444PixelFormat
303 public static Layout GrannyBGRA4444PixelFormat
304 {
305 get
306 {
307 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
308 if (hdl != IntPtr.Zero)
309 {
310 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyBGRA4444PixelFormat");
311 if (addr != IntPtr.Zero)
312 {
313 gr2lib.core.coretypes.native.Layout _native;
314 Layout _tmp_layout = new Layout();
315 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
316 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
317 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
318 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
319 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
320 return _tmp_layout;
321 }
322 else
323 {
324 return new Layout();
325 }
326 }
327 else
328 {
329 return new Layout();
330 }
331 }
332 }
333 #endregion
334 #region Pixel Layout: GrannyBGR888PixelFormat
335 public static Layout GrannyBGR888PixelFormat
336 {
337 get
338 {
339 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
340 if (hdl != IntPtr.Zero)
341 {
342 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyBGR888PixelFormat");
343 if (addr != IntPtr.Zero)
344 {
345 gr2lib.core.coretypes.native.Layout _native;
346 Layout _tmp_layout = new Layout();
347 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
348 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
349 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
350 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
351 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
352 return _tmp_layout;
353 }
354 else
355 {
356 return new Layout();
357 }
358 }
359 else
360 {
361 return new Layout();
362 }
363 }
364 }
365 #endregion
366 #region Pixel Layout: GrannyBGRA8888PixelFormat
367 public static Layout GrannyBGRA8888PixelFormat
368 {
369 get
370 {
371 IntPtr hdl = coreapi.LoadLibrary("granny2.dll");
372 if (hdl != IntPtr.Zero)
373 {
374 IntPtr addr = coreapi.GetProcAddress(hdl, "GrannyBGRA8888PixelFormat");
375 if (addr != IntPtr.Zero)
376 {
377 gr2lib.core.coretypes.native.Layout _native;
378 Layout _tmp_layout = new Layout();
379 _native = (gr2lib.core.coretypes.native.Layout)Marshal.PtrToStructure(addr, typeof(gr2lib.core.coretypes.native.Layout));
380 _tmp_layout.BytesPerPixel = Marshal.ReadInt32((IntPtr)_native.BytesPerPixel);
381 for (int i = 0; i < _native.ShiftForComponent.Length; i++) { _tmp_layout.ShiftForComponent[i] = Marshal.ReadInt32((IntPtr)_native.ShiftForComponent[i]); }
382 for (int i = 0; i < _native.BitsForComponent.Length; i++) { _tmp_layout.BitsForComponent[i] = Marshal.ReadInt32((IntPtr)_native.BitsForComponent[i]); }
383 _tmp_layout.NativePointer = (IntPtr)_native.BytesPerPixel;
384 return _tmp_layout;
385 }
386 else
387 {
388 return new Layout();
389 }
390 }
391 else
392 {
393 return new Layout();
394 }
395 }
396 }
397 #endregion
398 }
399
400 #region enum typedefs
401 #region public enum granny_texture_type
402 public enum granny_texture_type
403 {
404 GrannyColorMapTextureType,
405 GrannyCubeMapTextureType,
406 GrannyOnePastLastTextureType
407 }
408 #endregion
409 #region public enum granny_texture_encoding
410 public enum granny_texture_encoding
411 {
412 GrannyUserTextureEncoding,
413 GrannyRawTextureEncoding,
414 GrannyS3TCTextureEncoding,
415 GrannyBinkTextureEncoding,
416 GrannyOnePastLastTextureEncoding
417 }
418 #endregion
419 #region public enum granny_transform_track_flags
420 public enum granny_transform_track_flags
421 {
422 GrannyUseAccumulatorNeighborhood = 0x1
423 }
424 #endregion
425 #region public enum granny_vector_diff_mode
426 public enum granny_vector_diff_mode
427 {
428 GrannyDiffAsVectors,
429 GrannyDiffAsQuaternions,
430 GrannyManhattanMetric
431 }
432 #endregion
433 #region public enum granny_extract_track_mask_result
434 public enum granny_extract_track_mask_result
435 {
436 GrannyExtractTrackMaskResult_AllDataPresent,
437 GrannyExtractTrackMaskResult_PartialDataPresent,
438 GrannyExtractTrackMaskResult_NoDataPresent
439 }
440 #endregion
441 #region public enum granny_composite_flag
442 public enum granny_composite_flag
443 {
444 GrannyIncludeComposites = 0,
445 GrannyExcludeComposites = 1
446 }
447 #endregion
448 #region public enum granny_transform_flags
449 public enum granny_transform_flags
450 {
451 GrannyHasPosition = 0x1,
452 GrannyHasOrientation = 0x2,
453 GrannyHasScaleShear = 0x4
454 }
455 #endregion
456 #region public enum granny_marshalling_type
457 public enum granny_marshalling_type
458 {
459 GrannyAnyMarshalling = 0x0,
460 GrannyInt8Marshalling = 0x1,
461 GrannyInt16Marshalling = 0x2,
462 GrannyInt32Marshalling = 0x4,
463 GrannyMarshallingMask = 0x7
464 }
465 #endregion
466 #region public enum granny_member_type
467 public enum granny_member_type
468 {
469 GrannyEndMember,
470 GrannyInlineMember,
471 GrannyReferenceMember,
472 GrannyReferenceToArrayMember,
473 GrannyArrayOfReferencesMember,
474 GrannyVariantReferenceMember,
475 GrannyUnsupportedMemberType_Remove,
476 GrannyReferenceToVariantArrayMember,
477 GrannyStringMember,
478 GrannyTransformMember,
479 GrannyReal32Member,
480 GrannyInt8Member,
481 GrannyUInt8Member,
482 GrannyBinormalInt8Member,
483 GrannyNormalUInt8Member,
484 GrannyInt16Member,
485 GrannyUInt16Member,
486 GrannyBinormalInt16Member,
487 GrannyNormalUInt16Member,
488 GrannyInt32Member,
489 GrannyUInt32Member,
490 GrannyReal16Member,
491 GrannyEmptyReferenceMember,
492 GrannyOnePastLastMemberType,
493 GrannyBool32Member = GrannyInt32Member
494 };
495 #endregion
496 #region public enum granny_material_texture_type
497 public enum granny_material_texture_type
498 {
499 GrannyUnknownTextureType,
500 GrannyAmbientColorTexture,
501 GrannyDiffuseColorTexture,
502 GrannySpecularColorTexture,
503 GrannySelfIlluminationTexture,
504 GrannyOpacityTexture,
505 GrannyBumpHeightTexture,
506 GrannyReflectionTexture,
507 GrannyRefractionTexture,
508 GrannyDisplacementTexture,
509 GrannyOnePastLastMaterialTextureType
510 }
511 #endregion
512 #region public enum granny_bound_transform_track_flags
513 public enum granny_bound_transform_track_flags
514 {
515 GrannyBoundPositionCurveIsIdentity = (0x0 << 0),
516 GrannyBoundPositionCurveIsConstant = (0x1 << 0),
517 GrannyBoundPositionCurveIsKeyframed = (0x2 << 0),
518 GrannyBoundPositionCurveIsGeneral = (0x3 << 0),
519 GrannyBoundPositionCurveFlagMask = (0x3 << 0),
520 GrannyBoundOrientationCurveIsIdentity = (0x0 << 2),
521 GrannyBoundOrientationCurveIsConstant = (0x1 << 2),
522 GrannyBoundOrientationCurveIsKeyframed = (0x2 << 2),
523 GrannyBoundOrientationCurveIsGeneral = (0x3 << 2),
524 GrannyBoundOrientationCurveFlagMask = (0x3 << 2),
525 GrannyBoundScaleShearCurveIsIdentity = (0x0 << 4),
526 GrannyBoundScaleShearCurveIsConstant = (0x1 << 4),
527 GrannyBoundScaleShearCurveIsKeyframed = (0x2 << 4),
528 GrannyBoundScaleShearCurveIsGeneral = (0x3 << 4),
529 GrannyBoundScaleShearCurveFlagMask = (0x3 << 4)
530 }
531 #endregion
532 #region public enum granny_transform_file_flags
533 public enum granny_transform_file_flags
534 {
535 GrannyRenormalizeNormals = 0x1,
536 GrannyReorderTriangleIndices = 0x2
537 }
538 #endregion
539 #region public enum granny_bink_texture_flags
540 public enum granny_bink_texture_flags
541 {
542 GrannyBinkEncodeAlpha = 0x1,
543 GrannyBinkUseScaledRGBInsteadOfYUV = 0x2,
544 GrannyBinkUseBink1 = 0x4
545 }
546 #endregion
547 #region public enum granny_bspline_solver_flags
548 public enum granny_bspline_solver_flags
549 {
550 GrannyBSplineSolverEvaluateAsQuaternions = 0x1,
551 GrannyBSplineSolverAllowC0Splitting = 0x2,
552 GrannyBSplineSolverAllowC1Splitting = 0x4,
553 GrannyBSplineSolverExtraDOFKnotZero = 0x10,
554 GrannyBSplineSolverForceEndpointAlignment = 0x20,
555 GrannyBSplineSolverAllowReduceKeys = 0x40
556 }
557 #endregion
558 #region public enum granny_camera_output_z_range
559 public enum granny_camera_output_z_range
560 {
561 GrannyCameraOutputZZeroToOne,
562 GrannyCameraOutputZNegativeOneToOne,
563 GrannyCameraOutputZNegativeOneToZero
564 }
565 #endregion
566 #region public enum granny_accumulation_mode
567 public enum granny_accumulation_mode
568 {
569 GrannyNoAccumulation,
570 GrannyConstantExtractionAccumulation,
571 GrannyVariableDeltaAccumulation
572 }
573 #endregion
574 #region public enum granny_blend_dag_node_type
575 public enum granny_blend_dag_node_type
576 {
577 GrannyDagNodeType_Leaf_AnimationBlend,
578 GrannyDagNodeType_Leaf_LocalPose,
579 GrannyDagNodeType_Leaf_Callback,
580 GrannyDagNodeType_OnePastLastLeafType,
581 GrannyDagNodeType_Node_Crossfade,
582 GrannyDagNodeType_Node_WeightedBlend,
583 GrannyDagNodeType_OnePastLast
584 }
585 #endregion
586 #region public enum granny_file_data_tree_flags
587 public enum granny_file_data_tree_flags
588 {
589 GrannyExcludeTypeTree = 0x1
590 }
591 #endregion
592 #region public enum granny_deformation_type
593 public enum granny_deformation_type
594 {
595 GrannyDeformPosition = 1,
596 GrannyDeformPositionNormal,
597 GrannyDeformPositionNormalTangent,
598 GrannyDeformPositionNormalTangentBinormal
599 }
600 #endregion
601 #region public enum granny_degree_of_freedom
602 public enum granny_degree_of_freedom
603 {
604 GrannyNoDOFs = 0,
605 GrannyXTranslation = 0x001,
606 GrannyYTranslation = 0x002,
607 GrannyZTranslation = 0x004,
608 GrannyXRotation = 0x008,
609 GrannyYRotation = 0x010,
610 GrannyZRotation = 0x020,
611 GrannyXScaleShear = 0x040,
612 GrannyYScaleShear = 0x080,
613 GrannyZScaleShear = 0x100,
614 GrannyTranslationDOFs = GrannyXTranslation | GrannyYTranslation | GrannyZTranslation,
615 GrannyRotationDOFs = GrannyXRotation | GrannyYRotation | GrannyZRotation,
616 GrannyScaleShearDOFs = GrannyXScaleShear | GrannyYScaleShear | GrannyZScaleShear,
617 GrannyAllDOFs = GrannyTranslationDOFs | GrannyRotationDOFs | GrannyScaleShearDOFs
618 }
619 #endregion
620 #region public enum granny_compression_type
621 public enum granny_compression_type
622 {
623 GrannyNoCompression,
624 GrannyOodle0Compression,
625 GrannyOodle1Compression,
626 GrannyOnePastLastCompressionType
627 }
628 #endregion
629 #region public enum granny_standard_section_index
630 public enum granny_standard_section_index
631 {
632 GrannyStandardMainSection = 0,
633 GrannyStandardRigidVertexSection = 1,
634 GrannyStandardRigidIndexSection = 2,
635 GrannyStandardDeformableVertexSection = 3,
636 GrannyStandardDeformableIndexSection = 4,
637 GrannyStandardTextureSection = 5,
638 GrannyStandardDiscardableSection = 6,
639 GrannyStandardUnloadedSection = 7,
640 GrannyStandardSectionCount
641 }
642 #endregion
643 #region public enum granny_grn_type_tag
644 public enum granny_grn_type_tag : uint
645 {
646 GrannyFirstGRNUserTag = 0,
647 GrannyLastGRNUserTag = 0x7FFFFFFF,
648 GrannyFirstGRNStandardTag = 0x80000000,
649 GrannyLastGRNStandardTag = 0xFFFFFFFF
650 }
651 #endregion
652 #region public enum granny_file_writer_seek_type
653 public enum granny_file_writer_seek_type
654 {
655 GrannySeekStart,
656 GrannySeekEnd,
657 GrannySeekCurrent
658 }
659 #endregion
660 #region public enum granny_pixel_filter_type
661 public enum granny_pixel_filter_type
662 {
663 GrannyCubicPixelFilter,
664 GrannyLinearPixelFilter,
665 GrannyBoxPixelFilter,
666 GrannyOnePastLastPixelFilterType
667 }
668 #endregion
669 #region public enum granny_quaternion_mode
670 public enum granny_quaternion_mode
671 {
672 GrannyBlendQuaternionDirectly = 0,
673 GrannyBlendQuaternionInverted = 1,
674 GrannyBlendQuaternionNeighborhooded = 2,
675 GrannyBlendQuaternionAccumNeighborhooded = 3
676 }
677 #endregion
678 #region public enum granny_log_message_type
679 public enum granny_log_message_type
680 {
681 GrannyIgnoredLogMessage,
682 GrannyNoteLogMessage,
683 GrannyWarningLogMessage,
684 GrannyErrorLogMessage,
685 GrannyOnePastLastMessageType
686 }
687 #endregion
688 #region public enum granny_log_message_origin
689 public enum granny_log_message_origin
690 {
691 GrannyNotImplementedLogMessage,
692 GrannyApplicationLogMessage,
693 GrannyWin32SubsystemLogMessage,
694 GrannyWin64SubsystemLogMessage,
695 GrannyMacOSSubsystemLogMessage,
696 GrannyANSISubsystemLogMessage,
697 GrannyGamecubeSubsystemLogMessage,
698 GrannyPS2SubsystemLogMessage,
699 GrannyPSPSubsystemLogMessage,
700 GrannyPS3SubsystemLogMessage,
701 GrannyXboxSubsystemLogMessage,
702 GrannyXenonSubsystemLogMessage,
703 GrannyMAXSubsystemLogMessage,
704 GrannyMayaSubsystemLogMessage,
705 GrannyXSISubsystemLogMessage,
706 GrannyLightwaveSubsystemLogMessage,
707 GrannyFileWritingLogMessage,
708 GrannyFileReadingLogMessage,
709 GrannyExporterLogMessage,
710 GrannyCompressorLogMessage,
711 GrannyStringLogMessage,
712 GrannyStringTableLogMessage,
713 GrannyVertexLayoutLogMessage,
714 GrannyMeshLogMessage,
715 GrannyPropertyLogMessage,
716 GrannySkeletonLogMessage,
717 GrannyAnimationLogMessage,
718 GrannySetupGraphLogMessage,
719 GrannyTextureLogMessage,
720 GrannyBSplineLogMessage,
721 GrannyHashLogMessage,
722 GrannyLinkerLogMessage,
723 GrannyInstantiatorLogMessage,
724 GrannyDataTypeLogMessage,
725 GrannyNameMapLogMessage,
726 GrannyMaterialLogMessage,
727 GrannyModelLogMessage,
728 GrannyStackAllocatorLogMessage,
729 GrannyFixedAllocatorLogMessage,
730 GrannySceneLogMessage,
731 GrannyTrackMaskLogMessage,
732 GrannyLocalPoseLogMessage,
733 GrannyWorldPoseLogMessage,
734 GrannyNameLibraryLogMessage,
735 GrannyControlLogMessage,
736 GrannyMeshBindingLogMessage,
737 GrannyMathLogMessage,
738 GrannyVersionLogMessage,
739 GrannyMemoryLogMessage,
740 GrannyDeformerLogMessage,
741 GrannyVoxelLogMessage,
742 GrannyBitmapLogMessage,
743 GrannyIKLogMessage,
744 GrannyCurveLogMessage,
745 GrannyTrackGroupLogMessage,
746 GrannyThreadSafetyLogMessage,
747 GrannyQuantizeLogMessage,
748 GrannyBlendDagLogMessage,
749 GrannyOnePastLastMessageOrigin
750 }
751 #endregion
752 #region public enum granny_deformer_tail_flags
753 public enum granny_deformer_tail_flags
754 {
755 GrannyDontAllowUncopiedTail,
756 GrannyAllowUncopiedTail
757 }
758 #endregion
759 #region public enum granny_s3tc_texture_format
760 public enum granny_s3tc_texture_format
761 {
762 GrannyS3TCBGR565,
763 GrannyS3TCBGRA5551,
764 GrannyS3TCBGRA8888MappedAlpha,
765 GrannyS3TCBGRA8888InterpolatedAlpha,
766 GrannyOnePastLastS3TCTextureFormat
767 }
768 #endregion
769 #region public enum granny_skeleton_lod_type
770 public enum granny_skeleton_lod_type
771 {
772 GrannyNoSkeletonLOD = 0x0,
773 GrannyEstimatedLOD = 0x1,
774 GrannyMeasuredLOD = 0x2
775 }
776 #endregion
777 #region public enum granny_spu_curve_types
778 public enum granny_spu_curve_types
779 {
780 GrannySPUCurveTypeReal32 = 0,
781 GrannySPUCurveTypeK16 = 1,
782 GrannySPUCurveTypeK8 = 2,
783 GrannySPUCurveType4nK16 = 3,
784 GrannySPUCurveType4nK8 = 4
785 }
786 #endregion
787 #region public enum granny_spu_replication_type
788 public enum granny_spu_replication_type
789 {
790 GrannySPUReplicationRaw = 0,
791 GrannySPUReplicationNormOri = 1,
792 GrannySPUReplicationDiagonalSS = 2
793 }
794 #endregion
795 #region public enum granny_track_group_flags
796 public enum granny_track_group_flags
797 {
798 GrannyAccumulationExtracted = 0x1,
799 GrannyTrackGroupIsSorted = 0x2,
800 GrannyAccumulationIsVDA = 0x4
801 }
802 #endregion
803 #endregion
804
805
806
807 public struct granny_transform
808 {
809 #pragma warning disable 0169
810 granny_uint32 Flags;
811 granny_triple Position;
812 granny_quad Orientation;
813 granny_triple[] ScaleShear;//[3];
814 #pragma warning restore 0169
815 };
816 public struct granny_curve2
817 {
818 #pragma warning disable 0169
819 granny_variant CurveData;
820 #pragma warning restore 0169
821 };
822 #region public struct granny_data_type_definition
823 [StructLayout(LayoutKind.Sequential)]
824 public struct granny_data_type_definition
825 {
826 granny_member_type Type;
827 string Name;
828 //unsafe granny_data_type_definition* ReferenceType;
829 granny_int32 ArrayWidth;
830 granny_int32 Extra;//[3];
831 granny_uintaddrx Ignored__Ignored;
832 };
833 #endregion
834
835 #region public struct granny_variant
836 public struct granny_variant
837 {
838 #pragma warning disable 0169
839 granny_data_type_definition Type;
840 object Object;
841 #pragma warning restore 0169
842 }
843 #endregion
844
845 #region public struct granny_uint32
846 public struct granny_uintaddrx
847 {
848 public granny_uintaddrx(System.UInt32 value)
849 {
850 this.realValue = value;
851 }
852 private System.UInt32 realValue;
853 public static implicit operator System.UInt32(granny_uintaddrx value)
854 {
855 return value.realValue;
856 }
857
858 public static implicit operator granny_uintaddrx(System.UInt32 value)
859 {
860 return new granny_uintaddrx(value);
861 }
862 public static implicit operator granny_uintaddrx(string value)
863 {
864 return Convert.ToUInt32(value);
865 }
866 public static implicit operator string(granny_uintaddrx value)
867 {
868 return value.ToString();
869 }
870 public override string ToString()
871 {
872 return realValue.ToString();
873 }
874 };//System.UInt32
875 #endregion
876
877 #region public struct granny_uint32
878 public struct granny_uint32
879 {
880 public granny_uint32(System.UInt32 value)
881 {
882 this.realValue = value;
883 }
884 private System.UInt32 realValue;
885 public static implicit operator System.UInt32(granny_uint32 value)
886 {
887 return value.realValue;
888 }
889
890 public static implicit operator granny_uint32(System.UInt32 value)
891 {
892 return new granny_uint32(value);
893 }
894 public static implicit operator granny_uint32(string value)
895 {
896 return Convert.ToUInt32(value);
897 }
898 public static implicit operator string(granny_uint32 value)
899 {
900 return value.ToString();
901 }
902 public override string ToString()
903 {
904 return realValue.ToString();
905 }
906 };//System.UInt32
907 #endregion
908
909 #region public struct granny_uint16
910 public struct granny_uint16
911 {
912 public granny_uint16(System.UInt16 value)
913 {
914 this.realValue = value;
915 }
916 private System.UInt16 realValue;
917 public static implicit operator System.UInt16(granny_uint16 value)
918 {
919 return value.realValue;
920 }
921
922 public static implicit operator granny_uint16(System.UInt16 value)
923 {
924 return new granny_uint16(value);
925 }
926 public static implicit operator granny_uint16(string value)
927 {
928 return Convert.ToUInt16(value);
929 }
930 public static implicit operator string(granny_uint16 value)
931 {
932 return value.ToString();
933 }
934 public override string ToString()
935 {
936 return realValue.ToString();
937 }
938 };//System.UInt16;
939 #endregion
940
941 #region public struct granny_uint8
942 public struct granny_uint8
943 {
944 public granny_uint8(System.Byte value)
945 {
946 this.realValue = value;
947 }
948 private System.Byte realValue;
949 public static implicit operator System.Byte(granny_uint8 value)
950 {
951 return value.realValue;
952 }
953
954 public static implicit operator granny_uint8(System.Byte value)
955 {
956 return new granny_uint8(value);
957 }
958 public static implicit operator granny_uint8(string value)
959 {
960 return Convert.ToByte(value);
961 }
962 public static implicit operator string(granny_uint8 value)
963 {
964 return value.ToString();
965 }
966 public override string ToString()
967 {
968 return realValue.ToString();
969 }
970 }; //System.Byte;
971 #endregion
972
973 #region public struct granny_int32
974 public struct granny_int32
975 {
976 public granny_int32(System.Int32 value)
977 {
978 this.realValue = value;
979 }
980 private System.Int32 realValue;
981 public static implicit operator System.Int32(granny_int32 value)
982 {
983 return value.realValue;
984 }
985
986 public static implicit operator granny_int32(System.Int32 value)
987 {
988 return new granny_int32(value);
989 }
990 public static implicit operator granny_int32(string value)
991 {
992 return Convert.ToInt32(value);
993 }
994 public static implicit operator string(granny_int32 value)
995 {
996 return value.ToString();
997 }
998 public override string ToString()
999 {
1000 return realValue.ToString();
1001 }
1002 }; //System.Int32;
1003 #endregion
1004
1005 #region public struct granny_int16
1006 public struct granny_int16
1007 {
1008 public granny_int16(System.Int16 value)
1009 {
1010 this.realValue = value;
1011 }
1012 private System.Int16 realValue;
1013 public static implicit operator System.Int16(granny_int16 value)
1014 {
1015 return value.realValue;
1016 }
1017
1018 public static implicit operator granny_int16(System.Int16 value)
1019 {
1020 return new granny_int16(value);
1021 }
1022 public static implicit operator granny_int16(string value)
1023 {
1024 return Convert.ToInt16(value);
1025 }
1026 public static implicit operator string(granny_int16 value)
1027 {
1028 return value.ToString();
1029 }
1030 public override string ToString()
1031 {
1032 return realValue.ToString();
1033 }
1034 };//System.Int16;
1035 #endregion
1036
1037 #region public struct granny_int8
1038 public struct granny_int8
1039 {
1040 public granny_int8(System.SByte value)
1041 {
1042 this.realValue = value;
1043 }
1044 private System.SByte realValue;
1045 public static implicit operator System.SByte(granny_int8 value)
1046 {
1047 return value.realValue;
1048 }
1049
1050 public static implicit operator granny_int8(System.SByte value)
1051 {
1052 return new granny_int8(value);
1053 }
1054 public static implicit operator granny_int8(string value)
1055 {
1056 return Convert.ToSByte(value);
1057 }
1058 public static implicit operator string(granny_int8 value)
1059 {
1060 return value.ToString();
1061 }
1062 public override string ToString()
1063 {
1064 return realValue.ToString();
1065 }
1066 };//System.SByte;
1067 #endregion
1068
1069 #region public struct granny_bool32
1070 public struct granny_bool32
1071 {
1072 public granny_bool32(System.Int32 value)
1073 {
1074 this.realValue = value;
1075 }
1076 private System.Int32 realValue;
1077 public static implicit operator System.Int32(granny_bool32 value)
1078 {
1079 return value.realValue;
1080 }
1081
1082 public static implicit operator granny_bool32(System.Int32 value)
1083 {
1084 return new granny_bool32(value);
1085 }
1086 public static implicit operator granny_bool32(string value)
1087 {
1088 return Convert.ToInt32(value);
1089 }
1090 public static implicit operator string(granny_bool32 value)
1091 {
1092 return value.ToString();
1093 }
1094 public override string ToString()
1095 {
1096 return realValue.ToString();
1097 }
1098 }; //System.Int32;
1099 #endregion
1100
1101 #region public struct granny_real32
1102 public struct granny_real32
1103 {
1104 public granny_real32(System.Single value)
1105 {
1106 this.realValue = value;
1107 }
1108 private System.Single realValue;
1109 public static implicit operator System.Single(granny_real32 value)
1110 {
1111 return value.realValue;
1112 }
1113
1114 public static implicit operator granny_real32(System.Single value)
1115 {
1116 return new granny_real32(value);
1117 }
1118 public static implicit operator granny_real32(string value)
1119 {
1120 return Convert.ToSingle(value);
1121 }
1122 public static implicit operator string(granny_real32 value)
1123 {
1124 return value.ToString();
1125 }
1126 public override string ToString()
1127 {
1128 return realValue.ToString();
1129 }
1130 }; //System.Single;
1131 #endregion
1132
1133 #region public struct granny_real16
1134 public struct granny_real16
1135 {
1136 public granny_real16(System.UInt16 value)
1137 {
1138 this.realValue = value;
1139 }
1140 private System.UInt16 realValue;
1141 public static implicit operator System.UInt16(granny_real16 value)
1142 {
1143 return value.realValue;
1144 }
1145
1146 public static implicit operator granny_real16(System.UInt16 value)
1147 {
1148 return new granny_real16(value);
1149 }
1150 public static implicit operator granny_real16(string value)
1151 {
1152 return Convert.ToUInt16(value);
1153 }
1154 public static implicit operator string(granny_real16 value)
1155 {
1156 return value.ToString();
1157 }
1158 public override string ToString()
1159 {
1160 return realValue.ToString();
1161 }
1162 };//System.UInt16;
1163 #endregion
1164
1165 #region public struct granny_uint32x
1166 public struct granny_uint32x
1167 {
1168 public granny_uint32x(System.UInt32 value)
1169 {
1170 this.realValue = value;
1171 }
1172 private System.UInt32 realValue;
1173 public static implicit operator System.UInt32(granny_uint32x value)
1174 {
1175 return value.realValue;
1176 }
1177
1178 public static implicit operator granny_uint32x(System.UInt32 value)
1179 {
1180 return new granny_uint32x(value);
1181 }
1182 public static implicit operator granny_uint32x(string value)
1183 {
1184 return Convert.ToUInt32(value);
1185 }
1186 public static implicit operator string(granny_uint32x value)
1187 {
1188 return value.ToString();
1189 }
1190 public override string ToString()
1191 {
1192 return realValue.ToString();
1193 }
1194 }; //System.UInt32;
1195 #endregion
1196
1197 #region public struct granny_uint16x
1198 public struct granny_uint16x
1199 {
1200 public granny_uint16x(System.UInt32 value)
1201 {
1202 this.realValue = value;
1203 }
1204 private System.UInt32 realValue;
1205 public static implicit operator System.UInt32(granny_uint16x value)
1206 {
1207 return value.realValue;
1208 }
1209
1210 public static implicit operator granny_uint16x(System.UInt32 value)
1211 {
1212 return new granny_uint16x(value);
1213 }
1214 public static implicit operator granny_uint16x(string value)
1215 {
1216 return Convert.ToUInt32(value);
1217 }
1218 public static implicit operator string(granny_uint16x value)
1219 {
1220 return value.ToString();
1221 }
1222 public override string ToString()
1223 {
1224 return realValue.ToString();
1225 }
1226 };//System.UInt32;
1227 #endregion
1228
1229 #region public struct granny_uint8x
1230 public struct granny_uint8x
1231 {
1232 public granny_uint8x(System.UInt32 value)
1233 {
1234 this.realValue = value;
1235 }
1236 private System.UInt32 realValue;
1237 public static implicit operator System.UInt32(granny_uint8x value)
1238 {
1239 return value.realValue;
1240 }
1241
1242 public static implicit operator granny_uint8x(System.UInt32 value)
1243 {
1244 return new granny_uint8x(value);
1245 }
1246 public static implicit operator granny_uint8x(string value)
1247 {
1248 return Convert.ToUInt32(value);
1249 }
1250 public static implicit operator string(granny_uint8x value)
1251 {
1252 return value.ToString();
1253 }
1254 public override string ToString()
1255 {
1256 return realValue.ToString();
1257 }
1258 };//System.UInt32;
1259 #endregion
1260
1261 #region public struct granny_int32x
1262 public struct granny_int32x
1263 {
1264 public granny_int32x(System.Int32 value)
1265 {
1266 this.realValue = value;
1267 }
1268 private System.Int32 realValue;
1269 public static implicit operator System.Int32(granny_int32x value)
1270 {
1271 return value.realValue;
1272 }
1273
1274 public static implicit operator granny_int32x(System.Int32 value)
1275 {
1276 return new granny_int32x(value);
1277 }
1278 public static implicit operator granny_int32x(string value)
1279 {
1280 return Convert.ToInt32(value);
1281 }
1282 public static implicit operator string(granny_int32x value)
1283 {
1284 return value.ToString();
1285 }
1286 public override string ToString()
1287 {
1288 return realValue.ToString();
1289 }
1290
1291 }; //System.Int32;
1292 #endregion
1293
1294 #region public struct granny_int16x
1295 public struct granny_int16x
1296 {
1297 public granny_int16x(System.Int32 value)
1298 {
1299 this.realValue = value;
1300 }
1301 private System.Int32 realValue;
1302 public static implicit operator System.Int32(granny_int16x value)
1303 {
1304 return value.realValue;
1305 }
1306
1307 public static implicit operator granny_int16x(System.Int32 value)
1308 {
1309 return new granny_int16x(value);
1310 }
1311 public static implicit operator granny_int16x(string value)
1312 {
1313 return Convert.ToInt32(value);
1314 }
1315 public static implicit operator string(granny_int16x value)
1316 {
1317 return value.ToString();
1318 }
1319 public override string ToString()
1320 {
1321 return realValue.ToString();
1322 }
1323 };//System.Int32;
1324 #endregion
1325
1326 #region public struct granny_int8x
1327 public struct granny_int8x
1328 {
1329 public granny_int8x(System.Int32 value)
1330 {
1331 this.realValue = value;
1332 }
1333 private System.Int32 realValue;
1334 public static implicit operator System.Int32(granny_int8x value)
1335 {
1336 return value.realValue;
1337 }
1338
1339 public static implicit operator granny_int8x(System.Int32 value)
1340 {
1341 return new granny_int8x(value);
1342 }
1343 public static implicit operator granny_int8x(string value)
1344 {
1345 return Convert.ToInt32(value);
1346 }
1347 public static implicit operator string(granny_int8x value)
1348 {
1349 return value.ToString();
1350 }
1351 public override string ToString()
1352 {
1353 return realValue.ToString();
1354 }
1355 }; //System.Int32;
1356 #endregion
1357
1358 #region public struct granny_bool32x
1359 public struct granny_bool32x
1360 {
1361 public granny_bool32x(System.Int32 value)
1362 {
1363 this.realValue = value;
1364 }
1365 private System.Int32 realValue;
1366 public static implicit operator System.Int32(granny_bool32x value)
1367 {
1368 return value.realValue;
1369 }
1370
1371 public static implicit operator granny_bool32x(System.Int32 value)
1372 {
1373 return new granny_bool32x(value);
1374 }
1375 public static implicit operator granny_bool32x(string value)
1376 {
1377 return Convert.ToInt32(value);
1378 }
1379 public static implicit operator string(granny_bool32x value)
1380 {
1381 return value.ToString();
1382 }
1383 public override string ToString()
1384 {
1385 return realValue.ToString();
1386 }
1387 };//System.Int32;
1388 #endregion
1389
1390 #region public struct granny_real64x
1391 public struct granny_real64x
1392 {
1393 public granny_real64x(System.Double value)
1394 {
1395 this.realValue = value;
1396 }
1397 private System.Double realValue;
1398 public static implicit operator System.Double(granny_real64x value)
1399 {
1400 return value.realValue;
1401 }
1402
1403 public static implicit operator granny_real64x(System.Double value)
1404 {
1405 return new granny_real64x(value);
1406 }
1407 public static implicit operator granny_real64x(string value)
1408 {
1409 return Convert.ToDouble(value);
1410 }
1411 public static implicit operator string(granny_real64x value)
1412 {
1413 return value.ToString();
1414 }
1415 public override string ToString()
1416 {
1417 return realValue.ToString();
1418 }
1419 }; //System.Double;
1420 #endregion
1421
1422 #region public struct granny_real32x
1423 public struct granny_real32x
1424 {
1425 public granny_real32x(System.Single value)
1426 {
1427 this.realValue = value;
1428 }
1429 private System.Single realValue;
1430 public static implicit operator System.Single(granny_real32x value)
1431 {
1432 return value.realValue;
1433 }
1434
1435 public static implicit operator granny_real32x(System.Single value)
1436 {
1437 return new granny_real32x(value);
1438 }
1439 public static implicit operator granny_real32x(string value)
1440 {
1441 return Convert.ToSingle(value);
1442 }
1443 public static implicit operator string(granny_real32x value)
1444 {
1445 return value.ToString();
1446 }
1447 };//System.Single;
1448 #endregion
1449
1450 #region public struct granny_triple
1451 public struct granny_triple
1452 {
1453 public granny_triple(System.Single[] value)
1454 {
1455 this.realValue = value;
1456 }
1457 private System.Single[] realValue;
1458 public static implicit operator System.Single[](granny_triple value)
1459 {
1460 return value.realValue;
1461 }
1462
1463 public static implicit operator granny_triple(System.Single[] value)
1464 {
1465 return new granny_triple(value);
1466 }
1467 public override string ToString()
1468 {
1469 string val = "";
1470 foreach (System.Single f in realValue)
1471 {
1472 val = val + "[" + f.ToString() + "]";
1473 }
1474 return val;
1475 }
1476 public System.Single this[int index]
1477 {
1478 get { return this.realValue[index]; }
1479 }
1480 }; //System.Single;//[3]; // declare type -> unsafe fixed
1481 #endregion
1482
1483 #region public struct granny_quad
1484 public struct granny_quad
1485 {
1486 public granny_quad(System.Single[] value)
1487 {
1488 this.realValue = value;
1489 }
1490 private System.Single[] realValue;//[4];
1491 public static implicit operator System.Single[](granny_quad value)
1492 {
1493 return value.realValue;
1494 }
1495
1496 public static implicit operator granny_quad(System.Single[] value)
1497 {
1498 return new granny_quad(value);
1499 }
1500 public override string ToString()
1501 {
1502 string val = "";
1503 foreach (System.Single f in realValue)
1504 {
1505 val = val + "[" + f.ToString() + "]";
1506 }
1507 return val;
1508 }
1509 };//System.Single;//[4]; // declare type -> unsafe fixed
1510 #endregion
1511
1512 #region public struct granny_matrix_3x3
1513 public struct granny_matrix_3x3
1514 {
1515 public granny_matrix_3x3(System.Single[,] value)
1516 {
1517 this.realValue = value;
1518 }
1519 private System.Single[,] realValue;
1520 public static implicit operator System.Single[,](granny_matrix_3x3 value)
1521 {
1522 return value.realValue;
1523 }
1524
1525 public static implicit operator granny_matrix_3x3(System.Single[,] value)
1526 {
1527 return new granny_matrix_3x3(value);
1528 }
1529 public override string ToString()
1530 {
1531 string val = "";
1532 foreach (System.Single f in realValue)
1533 {
1534 val = val + "[" + f.ToString() + "]";
1535 }
1536 return val;
1537 }
1538 }; //System.Single;//[3][3]; // declare type -> unsafe fixed
1539 #endregion
1540
1541 #region public struct granny_matrix_4x4
1542 public struct granny_matrix_4x4
1543 {
1544 public granny_matrix_4x4(System.Single[,] value)
1545 {
1546 this.realValue = value;
1547 }
1548 private System.Single[,] realValue;
1549 public static implicit operator System.Single[,](granny_matrix_4x4 value)
1550 {
1551 return value.realValue;
1552 }
1553
1554 public static implicit operator granny_matrix_4x4(System.Single[,] value)
1555 {
1556 return new granny_matrix_4x4(value);
1557 }
1558 public override string ToString()
1559 {
1560 string val = "";
1561 foreach (System.Single f in realValue)
1562 {
1563 val = val + "[" + f.ToString() + "]";
1564 }
1565 return val;
1566 }
1567 };//System.Single;//[4][4]; // declare type -> unsafe fixed
1568 #endregion
1569
1570 #region public struct granny_matrix_3x4
1571 public struct granny_matrix_3x4
1572 {
1573 public granny_matrix_3x4(System.Single[,] value)
1574 {
1575 this.realValue = value;
1576 }
1577 private System.Single[,] realValue;
1578 public static implicit operator System.Single[,](granny_matrix_3x4 value)
1579 {
1580 return value.realValue;
1581 }
1582
1583 public static implicit operator granny_matrix_3x4(System.Single[,] value)
1584 {
1585 return new granny_matrix_3x4(value);
1586 }
1587 public override string ToString()
1588 {
1589 string val = "";
1590 foreach (System.Single f in realValue)
1591 {
1592 val = val + "[" + f.ToString() + "]";
1593 }
1594 return val;
1595 }
1596 }; //System.Single;//[3][4]; // declare type -> unsafe fixed
1597 #endregion
1598
1599 #endregion
1600 }

  ViewVC Help
Powered by ViewVC 1.1.22