44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
// MonoGame - Copyright (C) The MonoGame Team
|
|
// This file is subject to the terms and conditions defined in
|
|
// file 'LICENSE.txt', which is part of this source code package.
|
|
//
|
|
// Author: Kenneth James Pouncey
|
|
|
|
using System;
|
|
|
|
namespace Microsoft.Xna.Framework.Graphics
|
|
{
|
|
using MonoGame.Web;
|
|
|
|
public sealed partial class SamplerStateCollection
|
|
{
|
|
private void PlatformSetSamplerState(int index)
|
|
{
|
|
}
|
|
|
|
private void PlatformClear()
|
|
{
|
|
}
|
|
|
|
private void PlatformDirty()
|
|
{
|
|
}
|
|
|
|
internal void PlatformSetSamplers(GraphicsDevice device)
|
|
{
|
|
for (var i = 0; i < _actualSamplers.Length; i++)
|
|
{
|
|
var sampler = _actualSamplers[i];
|
|
var texture = device.Textures[i];
|
|
|
|
if (sampler != null && texture != null && sampler != texture.glLastSamplerState)
|
|
{
|
|
// TODO
|
|
|
|
texture.glLastSamplerState = sampler;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|