map3drendering/LandblockExtraction/AtlasMaker/AtlasMaker.cs
Troispoils 18203c539f DatReader class heritage
Start Atlas maker class for generate atlas texture
2024-02-26 17:06:03 +01:00

29 lines
840 B
C#

using LandblockExtraction.DatEngine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace LandblockExtraction.AtlasMaker;
public class AtlasMaker {
private readonly int TEXTURESIZE = 64;
private PortalEngine portalEngine;
public Dictionary<uint, Vector2> textureCoord;
public AtlasMaker(PortalEngine portalEngine) {
this.portalEngine = portalEngine;
textureCoord = new Dictionary<uint, Vector2>();
}
public void InitTerrainWithTexture() {
Dictionary<uint, uint> TerrainAndSurfaceIndex = new Dictionary<uint, uint>();
foreach(var terrain in portalEngine.cTerrainDesc.terrains) {
TerrainAndSurfaceIndex.Add(terrain.terrainIndex, terrain.surfaceInfo);
}
}
}