diff options
author | Treeki <treeki@gmail.com> | 2011-02-18 03:28:31 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-02-18 03:28:31 +0100 |
commit | b0760b28807b31cc1403584265c07feb87ac4887 (patch) | |
tree | dc97346a0c0d0cdcdc066d77df3905a614a858e8 /NW4RTools/Enums.cs | |
parent | 7d7491feb41bc9724bf63bef545b996226406889 (diff) | |
download | nw4rtools-b0760b28807b31cc1403584265c07feb87ac4887.tar.gz nw4rtools-b0760b28807b31cc1403584265c07feb87ac4887.zip |
some collada work, and an unfinished OGL renderer using OpenTK. huge commit
Diffstat (limited to '')
-rw-r--r-- | NW4RTools/Enums.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/NW4RTools/Enums.cs b/NW4RTools/Enums.cs index 0b3518b..a81da6c 100644 --- a/NW4RTools/Enums.cs +++ b/NW4RTools/Enums.cs @@ -25,4 +25,26 @@ namespace NW4RTools { C14X2 = 0xA, CMPR = 0xE } + + + public enum TextureWrapType { + CLAMP, + REPEAT, + MIRROR + } + + public static class TextureWrapTypeExtensionMethods { + public static Collada141.fx_sampler_wrap_common ToColladaSamplerWrap(this TextureWrapType t) { + if (t == TextureWrapType.CLAMP) + return Collada141.fx_sampler_wrap_common.CLAMP; + + if (t == TextureWrapType.REPEAT) + return Collada141.fx_sampler_wrap_common.WRAP; + + if (t == TextureWrapType.MIRROR) + return Collada141.fx_sampler_wrap_common.MIRROR; + + return Collada141.fx_sampler_wrap_common.WRAP; + } + } } |