Parent Directory
|
Revision Log
|
Patch
--- trunk/gr2lib_typedefs/typedefs/coreapi.cs 2010/08/07 02:42:31 48 +++ trunk/gr2lib_typedefs/typedefs/coreapi.cs 2010/08/08 07:43:37 49 @@ -297,6 +297,14 @@ default: return granny_pixel_layouts.GrannyDefaultPixelLayout; } } + //public static granny_s3tc_texture_format GrannyGetS3TCPixelSubFormat(int Format) + //{ + // foreach(int value in Enum.GetValues(typeof(granny_s3tc_texture_format))) + // { + // if (value == Format) return (granny_s3tc_texture_format)value; + // } + // throw new InvalidCastException("Cannot Convert Value: 0x" + Format.ToString("X2") + " to a granny_s3tc_texture_format."); + //} public static granny_pixel_layout GrannyGetS3TCPixelSubFormat(granny_s3tc_texture_format Format) { switch (Format)
ViewVC Help | |
Powered by ViewVC 1.1.22 |