mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-13 17:08:11 +00:00
Move Common functionality to Core project & rendering and Model support as well
This commit is contained in:
22
PckStudio.Rendering/TextureVertex.cs
Normal file
22
PckStudio.Rendering/TextureVertex.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using OpenTK;
|
||||
|
||||
namespace PckStudio.Rendering
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 4, Size = 20)]
|
||||
public struct TextureVertex
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
public Vector2 TexPosition { get; set; }
|
||||
|
||||
public TextureVertex(Vector3 position, Vector2 texPosition)
|
||||
{
|
||||
Position = position;
|
||||
TexPosition = texPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user