Space Engineers
Public Member Functions | Static Public Attributes | List of all members
Sandbox.Engine.Voxels.MyTileTexture< Pixel > Class Template Reference

Public Member Functions

 MyTileTexture (PixelBuffer image, int cellSize)
 
 MyTileTexture ()
 
void GetValue (int corners, Vector2I coords, out Pixel value)
 
void GetValue (int corners, Vector2 coords, out Pixel value)
 

Static Public Attributes

static readonly MyTileTexture< Pixel > Default = new MyTileTexture<Pixel>()
 

Detailed Description

Textures used for tilesets (tiled texture joints maps).

Each texture contains a set of tiles or cells, one for each combination of same textured cells in the corners of a square.

This system allows for fast blending of textures on grid vertices.

Type Constraints
Pixel :struct 

Definition at line 312 of file MyPlanetCubemaps.cs.

Constructor & Destructor Documentation

Sandbox.Engine.Voxels.MyTileTexture< Pixel >.MyTileTexture ( PixelBuffer  image,
int  cellSize 
)
inline

Definition at line 350 of file MyPlanetCubemaps.cs.

Definition at line 360 of file MyPlanetCubemaps.cs.

Member Function Documentation

void Sandbox.Engine.Voxels.MyTileTexture< Pixel >.GetValue ( int  corners,
Vector2I  coords,
out Pixel  value 
)
inline

Get the value at a given position for a given configuration.

Definition at line 380 of file MyPlanetCubemaps.cs.

void Sandbox.Engine.Voxels.MyTileTexture< Pixel >.GetValue ( int  corners,
Vector2  coords,
out Pixel  value 
)
inline

Get the value at a given position for a given configuration.

Definition at line 398 of file MyPlanetCubemaps.cs.

Member Data Documentation

readonly MyTileTexture<Pixel> Sandbox.Engine.Voxels.MyTileTexture< Pixel >.Default = new MyTileTexture<Pixel>()
static

Definition at line 348 of file MyPlanetCubemaps.cs.


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