C# 클래스 Axiom.Core.Billboard

A billboard is a primitive which always faces the camera in every frame.
Billboards can be used for special effects or some other trickery which requires the triangles to always facing the camera no matter where it is. The engine groups billboards into sets for efficiency, so you should never create a billboard on it's own (it's ok to have a set of one if you need it).

Billboards have their geometry generated every frame depending on where the camera is. It is most beneficial for all billboards in a set to be identically sized since the engine can take advantage of this and save some calculations - useful when you have sets of hundreds of billboards as is possible with special effects. You can deviate from this if you wish (example: a smoke effect would probably have smoke puffs expanding as they rise, so each billboard will legitimately have it's own size) but be aware the extra overhead this brings and try to avoid it if you can.

Billboards are just the mechanism for rendering a range of effects such as particles. It is other classes which use billboards to create their individual effects, so the methods here are quite generic.

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

공개 프로퍼티들

프로퍼티 타입 설명
Color ColorEx
Direction Vector3
ParentSet BillboardSet
Position Vector3
rotationInRadians float

보호된 프로퍼티들

프로퍼티 타입 설명
hasOwnDimensions bool
texcoordIndex short
texcoordRect RectangleF
useTexcoordRect bool

공개 메소드들

메소드 설명
Billboard ( ) : System

Default constructor.

Billboard ( Vector3 position, BillboardSet owner ) : System

Billboard ( Vector3 position, BillboardSet owner, ColorEx color ) : System

ResetDimensions ( ) : void

Resets this billboard to use the parent BillboardSet's dimensions instead of it's own.

SetDimensions ( float width, float height ) : void

Sets the width and height for this billboard.

비공개 메소드들

메소드 설명
NotifyOwner ( BillboardSet owner ) : void

Internal method for notifying a billboard of it's owner.

메소드 상세

Billboard() 공개 메소드

Default constructor.
public Billboard ( ) : System
리턴 System

Billboard() 공개 메소드

public Billboard ( Vector3 position, BillboardSet owner ) : System
position Vector3
owner BillboardSet
리턴 System

Billboard() 공개 메소드

public Billboard ( Vector3 position, BillboardSet owner, ColorEx color ) : System
position Vector3
owner BillboardSet
color ColorEx
리턴 System

ResetDimensions() 공개 메소드

Resets this billboard to use the parent BillboardSet's dimensions instead of it's own.
public ResetDimensions ( ) : void
리턴 void

SetDimensions() 공개 메소드

Sets the width and height for this billboard.
public SetDimensions ( float width, float height ) : void
width float Width of the billboard.
height float Height of the billboard.
리턴 void

프로퍼티 상세

Color 공개적으로 프로퍼티

public ColorEx,Axiom.Core Color
리턴 ColorEx

Direction 공개적으로 프로퍼티

public Vector3 Direction
리턴 Vector3

ParentSet 공개적으로 프로퍼티

public BillboardSet,Axiom.Core ParentSet
리턴 BillboardSet

Position 공개적으로 프로퍼티

public Vector3 Position
리턴 Vector3

hasOwnDimensions 보호되어 있는 프로퍼티

protected bool hasOwnDimensions
리턴 bool

rotationInRadians 공개적으로 프로퍼티

Needed for particle systems
public float rotationInRadians
리턴 float

texcoordIndex 보호되어 있는 프로퍼티

protected short texcoordIndex
리턴 short

texcoordRect 보호되어 있는 프로퍼티

protected RectangleF,Axiom.Core texcoordRect
리턴 RectangleF

useTexcoordRect 보호되어 있는 프로퍼티

protected bool useTexcoordRect
리턴 bool