C# 클래스 OpenMetaverse.Primitive.TextureEntry

Represents all of the texturable faces for an object
Grid objects have infinite faces, with each face using the properties of the default face unless set otherwise. So if you have a TextureEntry with a default texture uuid of X, and face 18 has a texture UUID of Y, every face would be textured with X except for face 18 that uses Y. In practice however, primitives utilize a maximum of nine faces
파일 보기 프로젝트 열기: 3di/3di-viewer-rei-libs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultTexture TextureEntryFace
FaceTextures TextureEntryFace[]
WHITE_TEXTURE UUID

공개 메소드들

메소드 설명
CreateFace ( uint index ) : TextureEntryFace

This will either create a new face if a custom face for the given index is not defined, or return the custom face for that index if it already exists

FromOSD ( OSD osd ) : TextureEntry
GetFace ( uint index ) : TextureEntryFace

GetOSD ( ) : OSD

TextureEntry ( TextureEntryFace defaultFace ) : System

Constructor that takes a TextureEntryFace for the default face

TextureEntry ( UUID defaultTextureID ) : System

Constructor that takes a default texture UUID

TextureEntry ( byte data, int pos, int length ) : System

Constructor that creates the TextureEntry class from a byte array

ToBytes ( ) : byte[]

ToString ( ) : string

비공개 메소드들

메소드 설명
FromBytes ( byte data, int pos, int length ) : void
GetFaceBitfieldBytes ( uint bitfield ) : byte[]
InitializeArray ( uint &array ) : void
ReadFaceBitfield ( byte data, int &pos, uint &faceBits, uint &bitfieldSize ) : bool

메소드 상세

CreateFace() 공개 메소드

This will either create a new face if a custom face for the given index is not defined, or return the custom face for that index if it already exists
public CreateFace ( uint index ) : TextureEntryFace
index uint The index number of the face to create or /// retrieve
리턴 TextureEntryFace

FromOSD() 공개 정적인 메소드

public static FromOSD ( OSD osd ) : TextureEntry
osd OSD
리턴 TextureEntry

GetFace() 공개 메소드

public GetFace ( uint index ) : TextureEntryFace
index uint
리턴 TextureEntryFace

GetOSD() 공개 메소드

public GetOSD ( ) : OSD
리턴 OSD

TextureEntry() 공개 메소드

Constructor that takes a TextureEntryFace for the default face
public TextureEntry ( TextureEntryFace defaultFace ) : System
defaultFace TextureEntryFace Face to use as the default face
리턴 System

TextureEntry() 공개 메소드

Constructor that takes a default texture UUID
public TextureEntry ( UUID defaultTextureID ) : System
defaultTextureID UUID Texture UUID to use as the default texture
리턴 System

TextureEntry() 공개 메소드

Constructor that creates the TextureEntry class from a byte array
public TextureEntry ( byte data, int pos, int length ) : System
data byte Byte array containing the TextureEntry field
pos int Starting position of the TextureEntry field in /// the byte array
length int Length of the TextureEntry field, in bytes
리턴 System

ToBytes() 공개 메소드

public ToBytes ( ) : byte[]
리턴 byte[]

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

DefaultTexture 공개적으로 프로퍼티

public TextureEntryFace DefaultTexture
리턴 TextureEntryFace

FaceTextures 공개적으로 프로퍼티

public TextureEntryFace[] FaceTextures
리턴 TextureEntryFace[]

WHITE_TEXTURE 공개적으로 정적으로 프로퍼티

public static UUID WHITE_TEXTURE
리턴 UUID