Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
TextureTools.TexLibraries.CommonLib Class Reference

Class CommonLib More...

Static Public Member Functions

static int CalculateMipCountFromSize (int size, int minimumSizeLastMip=4)
 Calculates the mip level from a specified size. More...
 
static int CalculateMipCount (int width, int height, int minimumSizeLastMip=4)
 Calculates the mip level from a specified width,height,depth. More...
 

Detailed Description

Class CommonLib

Definition at line 8 of file CommonLib.cs.

Member Function Documentation

static int TextureTools.TexLibraries.CommonLib.CalculateMipCount ( int  width,
int  height,
int  minimumSizeLastMip = 4 
)
static

Calculates the mip level from a specified width,height,depth.

Parameters
widthThe width.
heightThe height.
depthThe depth.
minimumSizeLastMipThe minimum size of the last mip.
Returns
The mip level.
Exceptions
System.ArgumentOutOfRangeExceptionValue must be > 0;size

Definition at line 47 of file CommonLib.cs.

static int TextureTools.TexLibraries.CommonLib.CalculateMipCountFromSize ( int  size,
int  minimumSizeLastMip = 4 
)
static

Calculates the mip level from a specified size.

Parameters
sizeThe size.
minimumSizeLastMipThe minimum size of the last mip.
Returns
The mip level.
Exceptions
System.ArgumentOutOfRangeExceptionValue must be > 0;size

Definition at line 17 of file CommonLib.cs.


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