Uniform1i() private method

private Uniform1i ( Int32 location, Int32 x ) : void
location System.Int32
x System.Int32
return void
Example #1
0
        private void setTexture2D()
        {
            GL.ActiveTexture(textureMaps[index]);
            GL.BindTexture(GL.TEXTURE_2D, resourceIndex);
            GL.Uniform1i(location, index);

                        #if DEBUG
            Video.checkForError();
                        #endif

            var state = video.currentSamplerStates[index];
            if (state != null)
            {
                state.enable((Texture2D)texture.Target);
            }
        }