C# 클래스 Axiom.Overlays.Elements.Panel

GuiElement representing a flat, single-material (or transparent) panel which can contain other elements.
This class subclasses GuiContainer because it can contain other elements. Like other containers, if hidden it's contents are also hidden, if moved it's contents also move etc. The panel itself is a 2D rectangle which is either completely transparent, or is rendered with a single material. The texture(s) on the panel can be tiled depending on your requirements.

This component is suitable for backgrounds and grouping other elements. Note that because it has a single repeating material it cannot have a discrete border (unless the texture has one and the texture is tiled only once). For a bordered panel, see it's subclass BorderPanel.

Note that the material can have all the usual effects applied to it like multiple texture layers, scrolling / animated textures etc. For multiple texture layers, you have to set the tiling level for each layer.

상속: OverlayElementContainer
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
isTransparent bool
numTexCoordsInBuffer int
tileX float[]
tileY float[]
topLeft System.Vector2

공개 메소드들

메소드 설명
GetTileX ( int layer ) : float
GetTileY ( int layer ) : float
GetUV ( Real &u1, Real &v1, Real &u2, Real &v2 ) : void
Initialize ( ) : void

SetTiling ( float x, float y, int layer ) : void

SetUV ( Real u1, Real v1, Real u2, Real v2 ) : void
UpdateRenderQueue ( RenderQueue queue ) : void

보호된 메소드들

메소드 설명
UpdatePositionGeometry ( ) : void

Internal method for setting up geometry, called by GuiElement.Update

UpdateTextureGeometry ( ) : void

Called to update the texture coords when layers change.

비공개 메소드들

메소드 설명
Panel ( string name ) : System

메소드 상세

GetTileX() 공개 메소드

public GetTileX ( int layer ) : float
layer int
리턴 float

GetTileY() 공개 메소드

public GetTileY ( int layer ) : float
layer int
리턴 float

GetUV() 공개 메소드

public GetUV ( Real &u1, Real &v1, Real &u2, Real &v2 ) : void
u1 Real
v1 Real
u2 Real
v2 Real
리턴 void

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

SetTiling() 공개 메소드

public SetTiling ( float x, float y, int layer ) : void
x float
y float
layer int
리턴 void

SetUV() 공개 메소드

public SetUV ( Real u1, Real v1, Real u2, Real v2 ) : void
u1 Real
v1 Real
u2 Real
v2 Real
리턴 void

UpdatePositionGeometry() 보호된 메소드

Internal method for setting up geometry, called by GuiElement.Update
protected UpdatePositionGeometry ( ) : void
리턴 void

UpdateRenderQueue() 공개 메소드

public UpdateRenderQueue ( RenderQueue queue ) : void
queue Axiom.Graphics.RenderQueue
리턴 void

UpdateTextureGeometry() 보호된 메소드

Called to update the texture coords when layers change.
protected UpdateTextureGeometry ( ) : void
리턴 void

프로퍼티 상세

isTransparent 보호되어 있는 프로퍼티

protected bool isTransparent
리턴 bool

numTexCoordsInBuffer 보호되어 있는 프로퍼티

protected int numTexCoordsInBuffer
리턴 int

tileX 보호되어 있는 프로퍼티

protected float[] tileX
리턴 float[]

tileY 보호되어 있는 프로퍼티

protected float[] tileY
리턴 float[]

topLeft 보호되어 있는 프로퍼티

protected Vector2,System topLeft
리턴 System.Vector2