예제 #1
0
 override public void SetParameter(TextureUnit unit, TextureCube cube)
 {
     if (cube == null)
     {
         return;
     }
     GL.ActiveTexture(unit);
     GL.BindTexture(TextureTarget.TextureCubeMap, cube.texture);
 }
예제 #2
0
        override public void SetParameterBySemantic(string semantic, TextureCube cube)
        {
            if (program == -1 || cube == null || !cube.Loaded)
            {
                return;
            }
            var param = GetParamBySemantic(semantic);

            if (param == null)
            {
                return;
            }
            GL.ActiveTexture(param.unit);
            GL.BindTexture(TextureTarget.TextureCubeMap, cube.texture);
        }
예제 #3
0
 public abstract void SetParameterBySemantic(string semantic, TextureCube cube);
예제 #4
0
 public abstract void SetParameterByName(string name, TextureCube cube);
예제 #5
0
 public abstract void SetParameter(TextureUnit unit, TextureCube cube);