Try to fix some errors

This commit is contained in:
KillzXGaming 2020-01-14 19:35:41 -05:00
parent f7d674fe18
commit 6d33556e2c
9 changed files with 12 additions and 1 deletions

View file

@ -240,7 +240,7 @@ namespace FirstPlugin
throw new NotImplementedException("Cannot set image data! Operation not implemented!");
}
public override byte[] GetImageData(int ArrayLevel = 0, int MipLevel = 0)
public override byte[] GetImageData(int ArrayLevel = 0, int MipLevel = 0, int DepthLevel = 0)
{
if (GX2Surface != null)
{

View file

@ -129,6 +129,7 @@ namespace FirstPlugin
animCurve.Keys[i, 1] = Delta;
}
animCurve.StartFrame = animCurve.Frames.Max();
animCurve.EndFrame = animCurve.Frames.Max();
if (animCurve.Keys.Length > 1)
animCurve.Delta = values[values.Count - 1] - values[0];

View file

@ -414,6 +414,8 @@ namespace Toolbox.Library.Rendering
public void DrawModel(GLControl control, STSkeleton Skeleton, STGenericMaterial Material, STGenericObject m, ShaderProgram shader)
{
GL.PushAttrib(AttribMask.ColorBufferBit);
if (m.PolygonGroups.Count > 0)
{
foreach (var group in m.PolygonGroups)
@ -473,6 +475,7 @@ namespace Toolbox.Library.Rendering
}
}
GL.PopAttrib();
}
private static void DrawModelWireframe(STGenericObject p, ShaderProgram shader)

Binary file not shown.

Binary file not shown.

BIN
Toolbox/Lib/SPICA.dll Normal file

Binary file not shown.

BIN
Toolbox/Lib/SPICA.pdb Normal file

Binary file not shown.

BIN
Toolbox/Lib/yaz0_x86.dll Normal file

Binary file not shown.

View file

@ -509,6 +509,12 @@
<Content Include="Lib\SharpYaml.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Lib\SPICA.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Lib\SPICA.Rendering.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Lib\SuperBMDLib.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@ -542,6 +548,7 @@
<Content Include="Lib\Yaz0.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Lib\yaz0_x86.dll" />
<Content Include="LZ4.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>