/// <summary> /// Texture. /// </summary> /// <param name="imageBuilder"></param> /// <param name="parameters"></param> /// <param name="mipmapFiltering"></param> /// <param name="target"></param> public Texture(NewImageBuilder imageBuilder, SamplerParameters parameters = null, MipmapFilter mipmapFiltering = MipmapFilter.LinearMipmapLinear, BindTextureTarget target = BindTextureTarget.Texture2D) : this(imageBuilder, new FakeSampler(parameters, mipmapFiltering), target) { }
/// <summary> /// Texture. /// </summary> /// <param name="imageBuilder"></param> /// <param name="samplerBuilder"></param> /// <param name="target"></param> public Texture(NewImageBuilder imageBuilder, SamplerBase samplerBuilder, BindTextureTarget target = BindTextureTarget.Texture2D) { if (imageBuilder == null || samplerBuilder == null) { throw new ArgumentNullException(); } this.ImageBuilder = imageBuilder; this.SamplerBuilder = samplerBuilder; this.ActiveTexture = OpenGL.GL_TEXTURE0; this.Target = target; }