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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 193 - (hide annotations) (download)
Sat Jul 24 08:47:15 2010 UTC (11 years, 10 months ago) by william
File size: 37337 byte(s)
granny_bink_texture_flags -> Treat as bitFlags with [Flags] attribute

1 william 187 #define HIDE_MISSING_XML_COMMENTS_FOR_TYPEDEFS // when defined will disable warnings about missing XML comments for all typedefs (CS1591)
2    
3     using System;
4 william 10 using System.Collections.Generic;
5     using System.Text;
6 william 70 using System.Runtime.InteropServices;
7 william 142 using gr2lib.core.coretypes.implementation;
8 william 10
9     namespace gr2lib.core.typedefs
10     {
11 william 187 #if HIDE_MISSING_XML_COMMENTS_FOR_TYPEDEFS
12     #pragma warning disable 1591
13     #endif
14    
15 william 10 #region typedefs
16    
17 william 140 #region enum typedefs
18     #region public enum granny_texture_type
19     public enum granny_texture_type
20     {
21     GrannyColorMapTextureType,
22     GrannyCubeMapTextureType,
23     GrannyOnePastLastTextureType
24     }
25     #endregion
26     #region public enum granny_texture_encoding
27     public enum granny_texture_encoding
28     {
29     GrannyUserTextureEncoding,
30     GrannyRawTextureEncoding,
31     GrannyS3TCTextureEncoding,
32     GrannyBinkTextureEncoding,
33     GrannyOnePastLastTextureEncoding
34     }
35     #endregion
36     #region public enum granny_transform_track_flags
37     public enum granny_transform_track_flags
38     {
39     GrannyUseAccumulatorNeighborhood = 0x1
40     }
41     #endregion
42     #region public enum granny_vector_diff_mode
43     public enum granny_vector_diff_mode
44     {
45     GrannyDiffAsVectors,
46     GrannyDiffAsQuaternions,
47     GrannyManhattanMetric
48     }
49     #endregion
50     #region public enum granny_extract_track_mask_result
51     public enum granny_extract_track_mask_result
52     {
53     GrannyExtractTrackMaskResult_AllDataPresent,
54     GrannyExtractTrackMaskResult_PartialDataPresent,
55     GrannyExtractTrackMaskResult_NoDataPresent
56     }
57     #endregion
58     #region public enum granny_composite_flag
59     public enum granny_composite_flag
60     {
61     GrannyIncludeComposites = 0,
62     GrannyExcludeComposites = 1
63     }
64     #endregion
65     #region public enum granny_transform_flags
66     public enum granny_transform_flags
67     {
68     GrannyHasPosition = 0x1,
69     GrannyHasOrientation = 0x2,
70     GrannyHasScaleShear = 0x4
71     }
72     #endregion
73     #region public enum granny_marshalling_type
74     public enum granny_marshalling_type
75     {
76     GrannyAnyMarshalling = 0x0,
77     GrannyInt8Marshalling = 0x1,
78     GrannyInt16Marshalling = 0x2,
79     GrannyInt32Marshalling = 0x4,
80     GrannyMarshallingMask = 0x7
81     }
82     #endregion
83 william 70 #region public enum granny_member_type
84     public enum granny_member_type
85     {
86     GrannyEndMember,
87     GrannyInlineMember,
88     GrannyReferenceMember,
89     GrannyReferenceToArrayMember,
90     GrannyArrayOfReferencesMember,
91     GrannyVariantReferenceMember,
92     GrannyUnsupportedMemberType_Remove,
93     GrannyReferenceToVariantArrayMember,
94     GrannyStringMember,
95     GrannyTransformMember,
96     GrannyReal32Member,
97     GrannyInt8Member,
98     GrannyUInt8Member,
99     GrannyBinormalInt8Member,
100     GrannyNormalUInt8Member,
101     GrannyInt16Member,
102     GrannyUInt16Member,
103     GrannyBinormalInt16Member,
104     GrannyNormalUInt16Member,
105     GrannyInt32Member,
106     GrannyUInt32Member,
107     GrannyReal16Member,
108     GrannyEmptyReferenceMember,
109     GrannyOnePastLastMemberType,
110     GrannyBool32Member = GrannyInt32Member
111     };
112     #endregion
113 william 140 #region public enum granny_material_texture_type
114     public enum granny_material_texture_type
115     {
116     GrannyUnknownTextureType,
117     GrannyAmbientColorTexture,
118     GrannyDiffuseColorTexture,
119     GrannySpecularColorTexture,
120     GrannySelfIlluminationTexture,
121     GrannyOpacityTexture,
122     GrannyBumpHeightTexture,
123     GrannyReflectionTexture,
124     GrannyRefractionTexture,
125     GrannyDisplacementTexture,
126     GrannyOnePastLastMaterialTextureType
127     }
128     #endregion
129     #region public enum granny_bound_transform_track_flags
130     public enum granny_bound_transform_track_flags
131     {
132     GrannyBoundPositionCurveIsIdentity = (0x0 << 0),
133     GrannyBoundPositionCurveIsConstant = (0x1 << 0),
134     GrannyBoundPositionCurveIsKeyframed = (0x2 << 0),
135     GrannyBoundPositionCurveIsGeneral = (0x3 << 0),
136     GrannyBoundPositionCurveFlagMask = (0x3 << 0),
137     GrannyBoundOrientationCurveIsIdentity = (0x0 << 2),
138     GrannyBoundOrientationCurveIsConstant = (0x1 << 2),
139     GrannyBoundOrientationCurveIsKeyframed = (0x2 << 2),
140     GrannyBoundOrientationCurveIsGeneral = (0x3 << 2),
141     GrannyBoundOrientationCurveFlagMask = (0x3 << 2),
142     GrannyBoundScaleShearCurveIsIdentity = (0x0 << 4),
143     GrannyBoundScaleShearCurveIsConstant = (0x1 << 4),
144     GrannyBoundScaleShearCurveIsKeyframed = (0x2 << 4),
145     GrannyBoundScaleShearCurveIsGeneral = (0x3 << 4),
146     GrannyBoundScaleShearCurveFlagMask = (0x3 << 4)
147     }
148     #endregion
149     #region public enum granny_transform_file_flags
150     public enum granny_transform_file_flags
151     {
152     GrannyRenormalizeNormals = 0x1,
153     GrannyReorderTriangleIndices = 0x2
154     }
155     #endregion
156     #region public enum granny_bink_texture_flags
157 william 193 [Flags]
158 william 140 public enum granny_bink_texture_flags
159     {
160     GrannyBinkEncodeAlpha = 0x1,
161     GrannyBinkUseScaledRGBInsteadOfYUV = 0x2,
162     GrannyBinkUseBink1 = 0x4
163     }
164     #endregion
165     #region public enum granny_bspline_solver_flags
166     public enum granny_bspline_solver_flags
167     {
168     GrannyBSplineSolverEvaluateAsQuaternions = 0x1,
169     GrannyBSplineSolverAllowC0Splitting = 0x2,
170     GrannyBSplineSolverAllowC1Splitting = 0x4,
171     GrannyBSplineSolverExtraDOFKnotZero = 0x10,
172     GrannyBSplineSolverForceEndpointAlignment = 0x20,
173     GrannyBSplineSolverAllowReduceKeys = 0x40
174     }
175     #endregion
176     #region public enum granny_camera_output_z_range
177     public enum granny_camera_output_z_range
178     {
179     GrannyCameraOutputZZeroToOne,
180     GrannyCameraOutputZNegativeOneToOne,
181     GrannyCameraOutputZNegativeOneToZero
182     }
183     #endregion
184     #region public enum granny_accumulation_mode
185     public enum granny_accumulation_mode
186     {
187     GrannyNoAccumulation,
188     GrannyConstantExtractionAccumulation,
189     GrannyVariableDeltaAccumulation
190     }
191     #endregion
192     #region public enum granny_blend_dag_node_type
193     public enum granny_blend_dag_node_type
194     {
195     GrannyDagNodeType_Leaf_AnimationBlend,
196     GrannyDagNodeType_Leaf_LocalPose,
197     GrannyDagNodeType_Leaf_Callback,
198     GrannyDagNodeType_OnePastLastLeafType,
199     GrannyDagNodeType_Node_Crossfade,
200     GrannyDagNodeType_Node_WeightedBlend,
201     GrannyDagNodeType_OnePastLast
202     }
203     #endregion
204     #region public enum granny_file_data_tree_flags
205     public enum granny_file_data_tree_flags
206     {
207     GrannyExcludeTypeTree = 0x1
208     }
209     #endregion
210     #region public enum granny_deformation_type
211     public enum granny_deformation_type
212     {
213     GrannyDeformPosition = 1,
214     GrannyDeformPositionNormal,
215     GrannyDeformPositionNormalTangent,
216     GrannyDeformPositionNormalTangentBinormal
217     }
218     #endregion
219     #region public enum granny_degree_of_freedom
220     public enum granny_degree_of_freedom
221     {
222     GrannyNoDOFs = 0,
223     GrannyXTranslation = 0x001,
224     GrannyYTranslation = 0x002,
225     GrannyZTranslation = 0x004,
226     GrannyXRotation = 0x008,
227     GrannyYRotation = 0x010,
228     GrannyZRotation = 0x020,
229     GrannyXScaleShear = 0x040,
230     GrannyYScaleShear = 0x080,
231     GrannyZScaleShear = 0x100,
232     GrannyTranslationDOFs = GrannyXTranslation | GrannyYTranslation | GrannyZTranslation,
233     GrannyRotationDOFs = GrannyXRotation | GrannyYRotation | GrannyZRotation,
234     GrannyScaleShearDOFs = GrannyXScaleShear | GrannyYScaleShear | GrannyZScaleShear,
235     GrannyAllDOFs = GrannyTranslationDOFs | GrannyRotationDOFs | GrannyScaleShearDOFs
236     }
237     #endregion
238     #region public enum granny_compression_type
239     public enum granny_compression_type
240     {
241     GrannyNoCompression,
242     GrannyOodle0Compression,
243     GrannyOodle1Compression,
244     GrannyOnePastLastCompressionType
245     }
246     #endregion
247     #region public enum granny_standard_section_index
248     public enum granny_standard_section_index
249     {
250     GrannyStandardMainSection = 0,
251     GrannyStandardRigidVertexSection = 1,
252     GrannyStandardRigidIndexSection = 2,
253     GrannyStandardDeformableVertexSection = 3,
254     GrannyStandardDeformableIndexSection = 4,
255     GrannyStandardTextureSection = 5,
256     GrannyStandardDiscardableSection = 6,
257     GrannyStandardUnloadedSection = 7,
258     GrannyStandardSectionCount
259     }
260     #endregion
261     #region public enum granny_grn_type_tag
262     public enum granny_grn_type_tag : uint
263     {
264     GrannyFirstGRNUserTag = 0,
265     GrannyLastGRNUserTag = 0x7FFFFFFF,
266     GrannyFirstGRNStandardTag = 0x80000000,
267     GrannyLastGRNStandardTag = 0xFFFFFFFF
268     }
269     #endregion
270     #region public enum granny_file_writer_seek_type
271     public enum granny_file_writer_seek_type
272     {
273     GrannySeekStart,
274     GrannySeekEnd,
275     GrannySeekCurrent
276     }
277     #endregion
278     #region public enum granny_pixel_filter_type
279     public enum granny_pixel_filter_type
280     {
281     GrannyCubicPixelFilter,
282     GrannyLinearPixelFilter,
283     GrannyBoxPixelFilter,
284     GrannyOnePastLastPixelFilterType
285     }
286     #endregion
287     #region public enum granny_quaternion_mode
288     public enum granny_quaternion_mode
289     {
290     GrannyBlendQuaternionDirectly = 0,
291     GrannyBlendQuaternionInverted = 1,
292     GrannyBlendQuaternionNeighborhooded = 2,
293     GrannyBlendQuaternionAccumNeighborhooded = 3
294     }
295     #endregion
296     #region public enum granny_log_message_type
297     public enum granny_log_message_type
298     {
299     GrannyIgnoredLogMessage,
300     GrannyNoteLogMessage,
301     GrannyWarningLogMessage,
302     GrannyErrorLogMessage,
303 william 187 GrannyOnePastLastMessageType,
304     GrannyUnknownLogMessage
305 william 140 }
306     #endregion
307     #region public enum granny_log_message_origin
308     public enum granny_log_message_origin
309     {
310     GrannyNotImplementedLogMessage,
311     GrannyApplicationLogMessage,
312     GrannyWin32SubsystemLogMessage,
313     GrannyWin64SubsystemLogMessage,
314     GrannyMacOSSubsystemLogMessage,
315     GrannyANSISubsystemLogMessage,
316     GrannyGamecubeSubsystemLogMessage,
317     GrannyPS2SubsystemLogMessage,
318     GrannyPSPSubsystemLogMessage,
319     GrannyPS3SubsystemLogMessage,
320     GrannyXboxSubsystemLogMessage,
321     GrannyXenonSubsystemLogMessage,
322     GrannyMAXSubsystemLogMessage,
323     GrannyMayaSubsystemLogMessage,
324     GrannyXSISubsystemLogMessage,
325     GrannyLightwaveSubsystemLogMessage,
326     GrannyFileWritingLogMessage,
327     GrannyFileReadingLogMessage,
328     GrannyExporterLogMessage,
329     GrannyCompressorLogMessage,
330     GrannyStringLogMessage,
331     GrannyStringTableLogMessage,
332     GrannyVertexLayoutLogMessage,
333     GrannyMeshLogMessage,
334     GrannyPropertyLogMessage,
335     GrannySkeletonLogMessage,
336     GrannyAnimationLogMessage,
337     GrannySetupGraphLogMessage,
338     GrannyTextureLogMessage,
339     GrannyBSplineLogMessage,
340     GrannyHashLogMessage,
341     GrannyLinkerLogMessage,
342     GrannyInstantiatorLogMessage,
343     GrannyDataTypeLogMessage,
344     GrannyNameMapLogMessage,
345     GrannyMaterialLogMessage,
346     GrannyModelLogMessage,
347     GrannyStackAllocatorLogMessage,
348     GrannyFixedAllocatorLogMessage,
349     GrannySceneLogMessage,
350     GrannyTrackMaskLogMessage,
351     GrannyLocalPoseLogMessage,
352     GrannyWorldPoseLogMessage,
353     GrannyNameLibraryLogMessage,
354     GrannyControlLogMessage,
355     GrannyMeshBindingLogMessage,
356     GrannyMathLogMessage,
357     GrannyVersionLogMessage,
358     GrannyMemoryLogMessage,
359     GrannyDeformerLogMessage,
360     GrannyVoxelLogMessage,
361     GrannyBitmapLogMessage,
362     GrannyIKLogMessage,
363     GrannyCurveLogMessage,
364     GrannyTrackGroupLogMessage,
365     GrannyThreadSafetyLogMessage,
366     GrannyQuantizeLogMessage,
367     GrannyBlendDagLogMessage,
368 william 187 GrannyOnePastLastMessageOrigin,
369     GrannyUnknownLogMessage
370 william 140 }
371     #endregion
372     #region public enum granny_deformer_tail_flags
373     public enum granny_deformer_tail_flags
374     {
375     GrannyDontAllowUncopiedTail,
376     GrannyAllowUncopiedTail
377     }
378     #endregion
379     #region public enum granny_s3tc_texture_format
380     public enum granny_s3tc_texture_format
381     {
382     GrannyS3TCBGR565,
383     GrannyS3TCBGRA5551,
384     GrannyS3TCBGRA8888MappedAlpha,
385     GrannyS3TCBGRA8888InterpolatedAlpha,
386     GrannyOnePastLastS3TCTextureFormat
387     }
388     #endregion
389     #region public enum granny_skeleton_lod_type
390     public enum granny_skeleton_lod_type
391     {
392     GrannyNoSkeletonLOD = 0x0,
393     GrannyEstimatedLOD = 0x1,
394     GrannyMeasuredLOD = 0x2
395     }
396     #endregion
397     #region public enum granny_spu_curve_types
398     public enum granny_spu_curve_types
399     {
400     GrannySPUCurveTypeReal32 = 0,
401     GrannySPUCurveTypeK16 = 1,
402     GrannySPUCurveTypeK8 = 2,
403     GrannySPUCurveType4nK16 = 3,
404     GrannySPUCurveType4nK8 = 4
405     }
406     #endregion
407     #region public enum granny_spu_replication_type
408     public enum granny_spu_replication_type
409     {
410     GrannySPUReplicationRaw = 0,
411     GrannySPUReplicationNormOri = 1,
412     GrannySPUReplicationDiagonalSS = 2
413     }
414     #endregion
415     #region public enum granny_track_group_flags
416     public enum granny_track_group_flags
417     {
418     GrannyAccumulationExtracted = 0x1,
419     GrannyTrackGroupIsSorted = 0x2,
420     GrannyAccumulationIsVDA = 0x4
421     }
422     #endregion
423     #endregion
424 william 70
425 william 140
426 william 187 #region public struct granny_transform
427 william 70 public struct granny_transform
428     {
429     #pragma warning disable 0169
430     granny_uint32 Flags;
431     granny_triple Position;
432     granny_quad Orientation;
433     granny_triple[] ScaleShear;//[3];
434     #pragma warning restore 0169
435     };
436     public struct granny_curve2
437     {
438     #pragma warning disable 0169
439     granny_variant CurveData;
440     #pragma warning restore 0169
441     };
442 william 187 #endregion
443 william 70 #region public struct granny_data_type_definition
444     [StructLayout(LayoutKind.Sequential)]
445     public struct granny_data_type_definition
446     {
447     granny_member_type Type;
448     string Name;
449     //unsafe granny_data_type_definition* ReferenceType;
450     granny_int32 ArrayWidth;
451 william 85 granny_int32 Extra;//[3];
452 william 70 granny_uintaddrx Ignored__Ignored;
453     };
454     #endregion
455     #region public struct granny_variant
456     public struct granny_variant
457     {
458     #pragma warning disable 0169
459     granny_data_type_definition Type;
460 william 85 object Object;
461 william 70 #pragma warning restore 0169
462     }
463     #endregion
464 william 187 #region public struct granny_uintaddrx
465 william 70 public struct granny_uintaddrx
466     {
467     public granny_uintaddrx(System.UInt32 value)
468     {
469     this.realValue = value;
470     }
471     private System.UInt32 realValue;
472     public static implicit operator System.UInt32(granny_uintaddrx value)
473     {
474     return value.realValue;
475     }
476    
477     public static implicit operator granny_uintaddrx(System.UInt32 value)
478     {
479     return new granny_uintaddrx(value);
480     }
481     public static implicit operator granny_uintaddrx(string value)
482     {
483     return Convert.ToUInt32(value);
484     }
485     public static implicit operator string(granny_uintaddrx value)
486     {
487     return value.ToString();
488     }
489     public override string ToString()
490     {
491     return realValue.ToString();
492     }
493     };//System.UInt32
494     #endregion
495     #region public struct granny_uint32
496 william 10 public struct granny_uint32
497     {
498     public granny_uint32(System.UInt32 value)
499     {
500 william 187 this.realValue = value;
501 william 10 }
502     private System.UInt32 realValue;
503     public static implicit operator System.UInt32(granny_uint32 value)
504     {
505     return value.realValue;
506     }
507    
508     public static implicit operator granny_uint32(System.UInt32 value)
509     {
510     return new granny_uint32(value);
511     }
512 william 53 public static implicit operator granny_uint32(string value)
513     {
514     return Convert.ToUInt32(value);
515     }
516     public static implicit operator string(granny_uint32 value)
517     {
518     return value.ToString();
519     }
520     public override string ToString()
521     {
522     return realValue.ToString();
523     }
524 william 10 };//System.UInt32
525     #endregion
526     #region public struct granny_uint16
527     public struct granny_uint16
528     {
529     public granny_uint16(System.UInt16 value)
530     {
531 william 187 this.realValue = value;
532 william 10 }
533     private System.UInt16 realValue;
534     public static implicit operator System.UInt16(granny_uint16 value)
535     {
536     return value.realValue;
537     }
538    
539     public static implicit operator granny_uint16(System.UInt16 value)
540     {
541     return new granny_uint16(value);
542     }
543 william 53 public static implicit operator granny_uint16(string value)
544     {
545     return Convert.ToUInt16(value);
546     }
547     public static implicit operator string(granny_uint16 value)
548     {
549     return value.ToString();
550     }
551     public override string ToString()
552     {
553     return realValue.ToString();
554     }
555 william 10 };//System.UInt16;
556     #endregion
557     #region public struct granny_uint8
558     public struct granny_uint8
559     {
560     public granny_uint8(System.Byte value)
561     {
562 william 187 this.realValue = value;
563 william 10 }
564     private System.Byte realValue;
565     public static implicit operator System.Byte(granny_uint8 value)
566     {
567     return value.realValue;
568     }
569    
570     public static implicit operator granny_uint8(System.Byte value)
571     {
572     return new granny_uint8(value);
573     }
574 william 53 public static implicit operator granny_uint8(string value)
575     {
576     return Convert.ToByte(value);
577     }
578     public static implicit operator string(granny_uint8 value)
579     {
580     return value.ToString();
581     }
582 william 10 public override string ToString()
583     {
584     return realValue.ToString();
585     }
586     }; //System.Byte;
587     #endregion
588     #region public struct granny_int32
589     public struct granny_int32
590     {
591     public granny_int32(System.Int32 value)
592     {
593 william 187 this.realValue = value;
594 william 10 }
595     private System.Int32 realValue;
596     public static implicit operator System.Int32(granny_int32 value)
597     {
598     return value.realValue;
599     }
600    
601     public static implicit operator granny_int32(System.Int32 value)
602     {
603     return new granny_int32(value);
604     }
605 william 53 public static implicit operator granny_int32(string value)
606     {
607     return Convert.ToInt32(value);
608     }
609     public static implicit operator string(granny_int32 value)
610     {
611     return value.ToString();
612     }
613 william 10 public override string ToString()
614     {
615     return realValue.ToString();
616     }
617     }; //System.Int32;
618     #endregion
619     #region public struct granny_int16
620     public struct granny_int16
621     {
622     public granny_int16(System.Int16 value)
623     {
624 william 187 this.realValue = value;
625 william 10 }
626     private System.Int16 realValue;
627     public static implicit operator System.Int16(granny_int16 value)
628     {
629     return value.realValue;
630     }
631    
632     public static implicit operator granny_int16(System.Int16 value)
633     {
634     return new granny_int16(value);
635     }
636 william 53 public static implicit operator granny_int16(string value)
637     {
638     return Convert.ToInt16(value);
639     }
640     public static implicit operator string(granny_int16 value)
641     {
642     return value.ToString();
643     }
644 william 10 public override string ToString()
645     {
646     return realValue.ToString();
647     }
648     };//System.Int16;
649     #endregion
650     #region public struct granny_int8
651     public struct granny_int8
652     {
653     public granny_int8(System.SByte value)
654     {
655 william 187 this.realValue = value;
656 william 10 }
657     private System.SByte realValue;
658     public static implicit operator System.SByte(granny_int8 value)
659     {
660     return value.realValue;
661     }
662    
663     public static implicit operator granny_int8(System.SByte value)
664     {
665     return new granny_int8(value);
666     }
667 william 53 public static implicit operator granny_int8(string value)
668     {
669     return Convert.ToSByte(value);
670     }
671     public static implicit operator string(granny_int8 value)
672     {
673     return value.ToString();
674     }
675 william 10 public override string ToString()
676     {
677     return realValue.ToString();
678     }
679     };//System.SByte;
680     #endregion
681     #region public struct granny_bool32
682     public struct granny_bool32
683     {
684     public granny_bool32(System.Int32 value)
685     {
686 william 187 this.realValue = value;
687 william 10 }
688     private System.Int32 realValue;
689     public static implicit operator System.Int32(granny_bool32 value)
690     {
691     return value.realValue;
692     }
693    
694     public static implicit operator granny_bool32(System.Int32 value)
695     {
696     return new granny_bool32(value);
697     }
698 william 53 public static implicit operator granny_bool32(string value)
699     {
700     return Convert.ToInt32(value);
701     }
702     public static implicit operator string(granny_bool32 value)
703     {
704     return value.ToString();
705     }
706 william 10 public override string ToString()
707     {
708     return realValue.ToString();
709     }
710     }; //System.Int32;
711     #endregion
712     #region public struct granny_real32
713     public struct granny_real32
714     {
715     public granny_real32(System.Single value)
716     {
717 william 187 this.realValue = value;
718 william 10 }
719     private System.Single realValue;
720     public static implicit operator System.Single(granny_real32 value)
721     {
722     return value.realValue;
723     }
724    
725     public static implicit operator granny_real32(System.Single value)
726     {
727     return new granny_real32(value);
728     }
729 william 53 public static implicit operator granny_real32(string value)
730     {
731     return Convert.ToSingle(value);
732     }
733     public static implicit operator string(granny_real32 value)
734     {
735     return value.ToString();
736     }
737 william 10 public override string ToString()
738     {
739     return realValue.ToString();
740     }
741     }; //System.Single;
742 william 187 #endregion
743 william 10 #region public struct granny_real16
744     public struct granny_real16
745     {
746     public granny_real16(System.UInt16 value)
747     {
748 william 187 this.realValue = value;
749 william 10 }
750     private System.UInt16 realValue;
751     public static implicit operator System.UInt16(granny_real16 value)
752     {
753     return value.realValue;
754     }
755    
756     public static implicit operator granny_real16(System.UInt16 value)
757     {
758     return new granny_real16(value);
759     }
760 william 53 public static implicit operator granny_real16(string value)
761     {
762     return Convert.ToUInt16(value);
763     }
764     public static implicit operator string(granny_real16 value)
765     {
766     return value.ToString();
767     }
768 william 10 public override string ToString()
769     {
770     return realValue.ToString();
771     }
772     };//System.UInt16;
773     #endregion
774     #region public struct granny_uint32x
775     public struct granny_uint32x
776     {
777     public granny_uint32x(System.UInt32 value)
778     {
779 william 187 this.realValue = value;
780 william 10 }
781     private System.UInt32 realValue;
782     public static implicit operator System.UInt32(granny_uint32x value)
783     {
784     return value.realValue;
785     }
786    
787     public static implicit operator granny_uint32x(System.UInt32 value)
788     {
789     return new granny_uint32x(value);
790     }
791 william 53 public static implicit operator granny_uint32x(string value)
792     {
793     return Convert.ToUInt32(value);
794     }
795     public static implicit operator string(granny_uint32x value)
796     {
797     return value.ToString();
798     }
799 william 10 public override string ToString()
800     {
801     return realValue.ToString();
802     }
803     }; //System.UInt32;
804     #endregion
805     #region public struct granny_uint16x
806     public struct granny_uint16x
807     {
808     public granny_uint16x(System.UInt32 value)
809     {
810 william 187 this.realValue = value;
811 william 10 }
812     private System.UInt32 realValue;
813     public static implicit operator System.UInt32(granny_uint16x value)
814     {
815     return value.realValue;
816     }
817    
818     public static implicit operator granny_uint16x(System.UInt32 value)
819     {
820     return new granny_uint16x(value);
821     }
822 william 53 public static implicit operator granny_uint16x(string value)
823     {
824     return Convert.ToUInt32(value);
825     }
826     public static implicit operator string(granny_uint16x value)
827     {
828     return value.ToString();
829     }
830 william 10 public override string ToString()
831     {
832     return realValue.ToString();
833     }
834     };//System.UInt32;
835     #endregion
836     #region public struct granny_uint8x
837     public struct granny_uint8x
838     {
839     public granny_uint8x(System.UInt32 value)
840     {
841 william 187 this.realValue = value;
842 william 10 }
843     private System.UInt32 realValue;
844     public static implicit operator System.UInt32(granny_uint8x value)
845     {
846     return value.realValue;
847     }
848    
849     public static implicit operator granny_uint8x(System.UInt32 value)
850     {
851     return new granny_uint8x(value);
852     }
853 william 53 public static implicit operator granny_uint8x(string value)
854     {
855     return Convert.ToUInt32(value);
856     }
857     public static implicit operator string(granny_uint8x value)
858     {
859     return value.ToString();
860     }
861 william 10 public override string ToString()
862     {
863     return realValue.ToString();
864     }
865     };//System.UInt32;
866     #endregion
867     #region public struct granny_int32x
868     public struct granny_int32x
869     {
870     public granny_int32x(System.Int32 value)
871     {
872 william 187 this.realValue = value;
873 william 10 }
874     private System.Int32 realValue;
875     public static implicit operator System.Int32(granny_int32x value)
876     {
877     return value.realValue;
878     }
879    
880     public static implicit operator granny_int32x(System.Int32 value)
881     {
882     return new granny_int32x(value);
883     }
884 william 53 public static implicit operator granny_int32x(string value)
885     {
886     return Convert.ToInt32(value);
887     }
888     public static implicit operator string(granny_int32x value)
889     {
890     return value.ToString();
891     }
892 william 10 public override string ToString()
893     {
894     return realValue.ToString();
895     }
896    
897     }; //System.Int32;
898     #endregion
899     #region public struct granny_int16x
900     public struct granny_int16x
901     {
902     public granny_int16x(System.Int32 value)
903     {
904 william 187 this.realValue = value;
905 william 10 }
906     private System.Int32 realValue;
907     public static implicit operator System.Int32(granny_int16x value)
908     {
909     return value.realValue;
910     }
911    
912     public static implicit operator granny_int16x(System.Int32 value)
913     {
914     return new granny_int16x(value);
915     }
916 william 53 public static implicit operator granny_int16x(string value)
917     {
918     return Convert.ToInt32(value);
919     }
920     public static implicit operator string(granny_int16x value)
921     {
922     return value.ToString();
923     }
924 william 10 public override string ToString()
925     {
926     return realValue.ToString();
927     }
928     };//System.Int32;
929     #endregion
930     #region public struct granny_int8x
931     public struct granny_int8x
932     {
933     public granny_int8x(System.Int32 value)
934     {
935 william 187 this.realValue = value;
936 william 10 }
937     private System.Int32 realValue;
938     public static implicit operator System.Int32(granny_int8x value)
939     {
940     return value.realValue;
941     }
942    
943     public static implicit operator granny_int8x(System.Int32 value)
944     {
945     return new granny_int8x(value);
946     }
947 william 53 public static implicit operator granny_int8x(string value)
948     {
949     return Convert.ToInt32(value);
950     }
951     public static implicit operator string(granny_int8x value)
952     {
953     return value.ToString();
954     }
955 william 10 public override string ToString()
956     {
957     return realValue.ToString();
958     }
959     }; //System.Int32;
960     #endregion
961     #region public struct granny_bool32x
962     public struct granny_bool32x
963     {
964     public granny_bool32x(System.Int32 value)
965     {
966 william 187 this.realValue = value;
967 william 10 }
968     private System.Int32 realValue;
969     public static implicit operator System.Int32(granny_bool32x value)
970     {
971     return value.realValue;
972     }
973    
974     public static implicit operator granny_bool32x(System.Int32 value)
975     {
976     return new granny_bool32x(value);
977     }
978 william 53 public static implicit operator granny_bool32x(string value)
979     {
980     return Convert.ToInt32(value);
981     }
982     public static implicit operator string(granny_bool32x value)
983     {
984     return value.ToString();
985     }
986 william 10 public override string ToString()
987     {
988     return realValue.ToString();
989     }
990     };//System.Int32;
991     #endregion
992     #region public struct granny_real64x
993     public struct granny_real64x
994     {
995     public granny_real64x(System.Double value)
996     {
997 william 187 this.realValue = value;
998 william 10 }
999     private System.Double realValue;
1000     public static implicit operator System.Double(granny_real64x value)
1001     {
1002     return value.realValue;
1003     }
1004    
1005     public static implicit operator granny_real64x(System.Double value)
1006     {
1007     return new granny_real64x(value);
1008     }
1009 william 53 public static implicit operator granny_real64x(string value)
1010     {
1011     return Convert.ToDouble(value);
1012     }
1013     public static implicit operator string(granny_real64x value)
1014     {
1015     return value.ToString();
1016     }
1017 william 10 public override string ToString()
1018     {
1019     return realValue.ToString();
1020     }
1021     }; //System.Double;
1022     #endregion
1023     #region public struct granny_real32x
1024     public struct granny_real32x
1025     {
1026     public granny_real32x(System.Single value)
1027     {
1028 william 187 this.realValue = value;
1029 william 10 }
1030     private System.Single realValue;
1031     public static implicit operator System.Single(granny_real32x value)
1032     {
1033     return value.realValue;
1034     }
1035    
1036     public static implicit operator granny_real32x(System.Single value)
1037     {
1038     return new granny_real32x(value);
1039     }
1040 william 53 public static implicit operator granny_real32x(string value)
1041     {
1042     return Convert.ToSingle(value);
1043     }
1044     public static implicit operator string(granny_real32x value)
1045     {
1046     return value.ToString();
1047     }
1048 william 10 };//System.Single;
1049     #endregion
1050     #region public struct granny_triple
1051     public struct granny_triple
1052     {
1053 william 85 public granny_triple(System.Single[] value)
1054 william 10 {
1055 william 187 this.realValue = value;
1056 william 10 }
1057 william 85 private System.Single[] realValue;
1058     public static implicit operator System.Single[](granny_triple value)
1059 william 10 {
1060     return value.realValue;
1061     }
1062    
1063 william 85 public static implicit operator granny_triple(System.Single[] value)
1064 william 10 {
1065     return new granny_triple(value);
1066     }
1067 william 85 public override string ToString()
1068 william 10 {
1069     string val = "";
1070     foreach (System.Single f in realValue)
1071     {
1072     val = val + "[" + f.ToString() + "]";
1073     }
1074     return val;
1075     }
1076 william 70 public System.Single this[int index]
1077     {
1078     get { return this.realValue[index]; }
1079     }
1080 william 10 }; //System.Single;//[3]; // declare type -> unsafe fixed
1081     #endregion
1082     #region public struct granny_quad
1083     public struct granny_quad
1084     {
1085 william 85 public granny_quad(System.Single[] value)
1086 william 10 {
1087 william 187 this.realValue = value;
1088 william 10 }
1089 william 85 private System.Single[] realValue;//[4];
1090     public static implicit operator System.Single[](granny_quad value)
1091 william 10 {
1092     return value.realValue;
1093     }
1094    
1095 william 85 public static implicit operator granny_quad(System.Single[] value)
1096 william 10 {
1097     return new granny_quad(value);
1098     }
1099 william 85 public override string ToString()
1100 william 10 {
1101     string val = "";
1102     foreach (System.Single f in realValue)
1103     {
1104     val = val + "[" + f.ToString() + "]";
1105     }
1106     return val;
1107     }
1108     };//System.Single;//[4]; // declare type -> unsafe fixed
1109     #endregion
1110     #region public struct granny_matrix_3x3
1111     public struct granny_matrix_3x3
1112     {
1113 william 85 public granny_matrix_3x3(System.Single[,] value)
1114 william 10 {
1115 william 187 this.realValue = value;
1116 william 10 }
1117 william 85 private System.Single[,] realValue;
1118     public static implicit operator System.Single[,](granny_matrix_3x3 value)
1119 william 10 {
1120     return value.realValue;
1121     }
1122    
1123 william 85 public static implicit operator granny_matrix_3x3(System.Single[,] value)
1124 william 10 {
1125     return new granny_matrix_3x3(value);
1126     }
1127 william 85 public override string ToString()
1128 william 10 {
1129     string val = "";
1130     foreach (System.Single f in realValue)
1131     {
1132     val = val + "[" + f.ToString() + "]";
1133     }
1134     return val;
1135     }
1136     }; //System.Single;//[3][3]; // declare type -> unsafe fixed
1137     #endregion
1138     #region public struct granny_matrix_4x4
1139     public struct granny_matrix_4x4
1140     {
1141 william 85 public granny_matrix_4x4(System.Single[,] value)
1142 william 10 {
1143 william 187 this.realValue = value;
1144 william 10 }
1145 william 85 private System.Single[,] realValue;
1146     public static implicit operator System.Single[,](granny_matrix_4x4 value)
1147 william 10 {
1148     return value.realValue;
1149     }
1150    
1151 william 85 public static implicit operator granny_matrix_4x4(System.Single[,] value)
1152 william 10 {
1153     return new granny_matrix_4x4(value);
1154     }
1155 william 85 public override string ToString()
1156 william 10 {
1157     string val = "";
1158     foreach (System.Single f in realValue)
1159     {
1160     val = val + "[" + f.ToString() + "]";
1161     }
1162     return val;
1163     }
1164     };//System.Single;//[4][4]; // declare type -> unsafe fixed
1165     #endregion
1166     #region public struct granny_matrix_3x4
1167     public struct granny_matrix_3x4
1168     {
1169 william 85 public granny_matrix_3x4(System.Single[,] value)
1170 william 10 {
1171 william 187 this.realValue = value;
1172 william 10 }
1173 william 85 private System.Single[,] realValue;
1174     public static implicit operator System.Single[,](granny_matrix_3x4 value)
1175 william 10 {
1176     return value.realValue;
1177     }
1178    
1179 william 85 public static implicit operator granny_matrix_3x4(System.Single[,] value)
1180 william 10 {
1181     return new granny_matrix_3x4(value);
1182     }
1183 william 85 public override string ToString()
1184 william 10 {
1185     string val = "";
1186     foreach (System.Single f in realValue)
1187     {
1188     val = val + "[" + f.ToString() + "]";
1189     }
1190     return val;
1191     }
1192     }; //System.Single;//[3][4]; // declare type -> unsafe fixed
1193     #endregion
1194    
1195     #endregion
1196 william 187
1197     #if HIDE_MISSING_XML_COMMENTS_FOR_TYPEDEFS
1198     #pragma warning restore 1591
1199     #endif
1200 william 10 }

  ViewVC Help
Powered by ViewVC 1.1.22