C# 클래스 PantheonPrototype.Camera

The class that contains all of the information for the camera's rotation, position, zoom, and related.
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Position Vector2
Transform Matrix

보호된 프로퍼티들

프로퍼티 타입 설명
rotation float
zoom float

공개 메소드들

메소드 설명
Camera ( int w, int h ) : System

The constructor that reads in the initial camera frame size and initializes the other information.

Move ( Vector2 offset ) : void

An additional way to move the camera.

getTransformation ( ) : Matrix

The method to get the matrix that is the transformed screen based on zooms, shifts, rotations, and the like.

메소드 상세

Camera() 공개 메소드

The constructor that reads in the initial camera frame size and initializes the other information.
public Camera ( int w, int h ) : System
w int Screen width.
h int Screen height.
리턴 System

Move() 공개 메소드

An additional way to move the camera.
public Move ( Vector2 offset ) : void
offset Vector2 The offest for the camera
리턴 void

getTransformation() 공개 메소드

The method to get the matrix that is the transformed screen based on zooms, shifts, rotations, and the like.
public getTransformation ( ) : Matrix
리턴 Matrix

프로퍼티 상세

Position 공개적으로 프로퍼티

public Vector2 Position
리턴 Vector2

Transform 공개적으로 프로퍼티

public Matrix Transform
리턴 Matrix

rotation 보호되어 있는 프로퍼티

protected float rotation
리턴 float

zoom 보호되어 있는 프로퍼티

protected float zoom
리턴 float