Logo
Static Public Member Functions | List of all members
Yukar.Engine.ChipUtil Class Reference

Utility class for terrain resources More...

Static Public Member Functions

static string getNormalImageName (Common.Resource.MapChip mc, bool forStair=false)
 
static string getMaskImageName (Common.Resource.MapChip mc, bool forStair=false)
 
static uint[] getImage (string path, out int width, out int height)
 
static uint[] scaledChip (uint[] src, int stride, int origin, int dstUnit, int srcUnit)
 
static uint[] scaledChipZoom (uint[] src, int stride, int origin, int dstUnit, int srcUnit)
 
static uint[] rescale (uint[] src, int width, int height, int dstUnit, int srcUnit)
 

Detailed Description

Utility class for terrain resources

Member Function Documentation

◆ getImage()

static uint[] Yukar.Engine.ChipUtil.getImage ( string  path,
out int  width,
out int  height 
)
static

◆ getMaskImageName()

static string Yukar.Engine.ChipUtil.getMaskImageName ( Common.Resource.MapChip  mc,
bool  forStair = false 
)
static

◆ getNormalImageName()

static string Yukar.Engine.ChipUtil.getNormalImageName ( Common.Resource.MapChip  mc,
bool  forStair = false 
)
static

◆ rescale()

static uint[] Yukar.Engine.ChipUtil.rescale ( uint[]  src,
int  width,
int  height,
int  dstUnit,
int  srcUnit 
)
static

◆ scaledChip()

static uint[] Yukar.Engine.ChipUtil.scaledChip ( uint[]  src,
int  stride,
int  origin,
int  dstUnit,
int  srcUnit 
)
static

◆ scaledChipZoom()

static uint[] Yukar.Engine.ChipUtil.scaledChipZoom ( uint[]  src,
int  stride,
int  origin,
int  dstUnit,
int  srcUnit 
)
static