Semi Mod Loader
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
Semi.RuntimeAtlasPage Class Reference

Public Member Functions

 RuntimeAtlasPage (int width=0, int height=0, TextureFormat format=TextureFormat.RGBA32, int padding=2)
 
RuntimeAtlasSegment Pack (Texture2D tex, bool apply=false)
 
void Apply ()
 

Public Attributes

List< RuntimeAtlasSegmentSegments = new List<RuntimeAtlasSegment>()
 
Texture2D Texture
 
int Padding
 

Static Public Attributes

static int DefaultSize = Math.Min(SystemInfo.maxTextureSize, 4096)
 

Protected Member Functions

bool _Feasible (Rect rect, int skip)
 

Protected Attributes

Rect _MainRect
 
List< Rect > _Rects = new List<Rect>()
 
int _Changes
 

Private Attributes

Rect texRect = new Rect()
 
bool right = true
 

Constructor & Destructor Documentation

◆ RuntimeAtlasPage()

Semi.RuntimeAtlasPage.RuntimeAtlasPage ( int  width = 0,
int  height = 0,
TextureFormat  format = TextureFormat.RGBA32,
int  padding = 2 
)
inline

Member Function Documentation

◆ _Feasible()

bool Semi.RuntimeAtlasPage._Feasible ( Rect  rect,
int  skip 
)
inlineprotected

◆ Apply()

void Semi.RuntimeAtlasPage.Apply ( )
inline

◆ Pack()

RuntimeAtlasSegment Semi.RuntimeAtlasPage.Pack ( Texture2D  tex,
bool  apply = false 
)
inline

Member Data Documentation

◆ _Changes

int Semi.RuntimeAtlasPage._Changes
protected

◆ _MainRect

Rect Semi.RuntimeAtlasPage._MainRect
protected

◆ _Rects

List<Rect> Semi.RuntimeAtlasPage._Rects = new List<Rect>()
protected

◆ DefaultSize

int Semi.RuntimeAtlasPage.DefaultSize = Math.Min(SystemInfo.maxTextureSize, 4096)
static

◆ Padding

int Semi.RuntimeAtlasPage.Padding

◆ right

bool Semi.RuntimeAtlasPage.right = true
private

◆ Segments

List<RuntimeAtlasSegment> Semi.RuntimeAtlasPage.Segments = new List<RuntimeAtlasSegment>()

◆ texRect

Rect Semi.RuntimeAtlasPage.texRect = new Rect()
private

◆ Texture

Texture2D Semi.RuntimeAtlasPage.Texture

The documentation for this class was generated from the following file: