1
0
mirror of synced 2024-12-04 20:08:00 +01:00
Switch-Toolbox/Switch_FileFormatsMain/GUI/BFRES/SamplerEditor.cs

35 lines
1013 B
C#
Raw Normal View History

2018-11-12 02:51:12 +01:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using OpenTK.Graphics.OpenGL;
namespace FirstPlugin
{
public partial class SamplerEditor : Form
{
public SamplerEditor()
{
InitializeComponent();
foreach (var type in Enum.GetValues(typeof(TextureWrapMode)).Cast<TextureWrapMode>())
{
wrapXCB.Items.Add(type);
wrapYCB.Items.Add(type);
wrapWCB.Items.Add(type);
}
}
public void LoadSampler(BFRESRender.MatTexture texture)
{
wrapXCB.SelectedItem = BFRESRender.MatTexture.wrapmode[texture.wrapModeS];
wrapYCB.SelectedItem = BFRESRender.MatTexture.wrapmode[texture.wrapModeT];
wrapWCB.SelectedItem = BFRESRender.MatTexture.wrapmode[texture.wrapModeW];
}
}
}