C# 클래스 MyGame.Camera

상속: IOObserver
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Position Vector3
Target Vector3

보호된 프로퍼티들

프로퍼티 타입 설명
myGame MyGame

공개 메소드들

메소드 설명
BoundingVolumeIsInView ( Microsoft.Xna.Framework.BoundingBox box ) : bool

Checks if the bounding box is in the camera frustrum or not

BoundingVolumeIsInView ( BoundingSphere sphere ) : bool

Checks if the bounding sphere is in the camera frustrum or not

Camera ( MyGame game ) : System

Constructor that initiliaze the projection matrix

비공개 메소드들

메소드 설명
generateFrustum ( ) : void

Generate the camera frustrum from the view projection matrix

메소드 상세

BoundingVolumeIsInView() 공개 메소드

Checks if the bounding box is in the camera frustrum or not
public BoundingVolumeIsInView ( Microsoft.Xna.Framework.BoundingBox box ) : bool
box Microsoft.Xna.Framework.BoundingBox the Bounding box to check
리턴 bool

BoundingVolumeIsInView() 공개 메소드

Checks if the bounding sphere is in the camera frustrum or not
public BoundingVolumeIsInView ( BoundingSphere sphere ) : bool
sphere BoundingSphere the Bounding sphere to check
리턴 bool

Camera() 공개 메소드

Constructor that initiliaze the projection matrix
public Camera ( MyGame game ) : System
game MyGame The instance of MyGame the game component is attached to
리턴 System

프로퍼티 상세

Position 공개적으로 프로퍼티

public Vector3 Position
리턴 Vector3

Target 공개적으로 프로퍼티

public Vector3 Target
리턴 Vector3

myGame 보호되어 있는 프로퍼티

protected MyGame myGame
리턴 MyGame