TexParameteriv() private method

private TexParameteriv ( UInt32 target, UInt32 pname, Int32 @params ) : void
target System.UInt32
pname System.UInt32
@params System.Int32
return void
Esempio n. 1
0
        internal void enable(Texture2D texture)
        {
            if (!texture.hasMipmaps)
            {
                GL.TexParameteri(GL.TEXTURE_2D, GL.TEXTURE_MIN_FILTER, desc.filterMin);
            }
            else
            {
                GL.TexParameteri(GL.TEXTURE_2D, GL.TEXTURE_MIN_FILTER, desc.filterMinMiped);
            }
            GL.TexParameteri(GL.TEXTURE_2D, GL.TEXTURE_MAG_FILTER, desc.filterMag);

            GL.TexParameteri(GL.TEXTURE_2D, GL.TEXTURE_WRAP_S, desc.addressU);
            GL.TexParameteri(GL.TEXTURE_2D, GL.TEXTURE_WRAP_T, desc.addressV);
                        #if !iOS && !ANDROID && !NaCl && !RPI
            GL.TexParameteri(GL.TEXTURE_2D, GL.TEXTURE_WRAP_R, desc.addressW);

            unsafe
            {
                int color = desc.borderColor;
                GL.TexParameteriv(GL.TEXTURE_2D, GL.TEXTURE_BORDER_COLOR, &color);
            }
                        #endif

                        #if DEBUG
            Video.checkForError();
                        #endif
        }