예제 #1
0
        public override void TextureWrap2D(Texture.WrapMode s, Texture.WrapMode t)
        {
            TextureWrapMode tkWrapModeS = TextureWrapMode.Repeat, tkWrapModeT = TextureWrapMode.Repeat;

            if (s == Texture.WrapMode.Repeat)
            {
                tkWrapModeS = TextureWrapMode.Repeat;
            }
            else if (s == Texture.WrapMode.ClampToBorder)
            {
                tkWrapModeS = TextureWrapMode.ClampToBorder;
            }
            else if (s == Texture.WrapMode.ClampToEdge)
            {
                tkWrapModeS = TextureWrapMode.ClampToEdge;
            }

            if (t == Texture.WrapMode.Repeat)
            {
                tkWrapModeT = TextureWrapMode.Repeat;
            }
            else if (t == Texture.WrapMode.ClampToBorder)
            {
                tkWrapModeT = TextureWrapMode.ClampToBorder;
            }
            else if (t == Texture.WrapMode.ClampToEdge)
            {
                tkWrapModeT = TextureWrapMode.ClampToEdge;
            }

            GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureWrapS, Convert.ToInt32(tkWrapModeS));
            GL.TexParameter(TextureTarget.Texture2D, TextureParameterName.TextureWrapT, Convert.ToInt32(tkWrapModeT));
        }
예제 #2
0
 public abstract void TextureWrapCube(Texture.WrapMode r, Texture.WrapMode s, Texture.WrapMode t);
예제 #3
0
 public abstract void TextureWrap2D(Texture.WrapMode s, Texture.WrapMode t);