Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
Microsoft.Xna.Framework.Graphics.Viewport Struct Reference

Public Member Functions

 Viewport (int x, int y, int width, int height)
 
 Viewport (Rectangle bounds)
 
override string ToString ()
 
Vector3 Project (Vector3 source, Matrix projection, Matrix view, Matrix world)
 
Vector3 Unproject (Vector3 source, Matrix projection, Matrix view, Matrix world)
 

Static Package Functions

static Rectangle GetTitleSafeArea (int x, int y, int w, int h)
 

Properties

int X [get, set]
 
int Y [get, set]
 
int Width [get, set]
 
int Height [get, set]
 
float MinDepth [get, set]
 
float MaxDepth [get, set]
 
Rectangle Bounds [get, set]
 
float AspectRatio [get]
 
Rectangle TitleSafeArea [get]
 

Static Private Member Functions

static bool WithinEpsilon (float a, float b)
 

Private Attributes

int _x
 
int _y
 
int _width
 
int _height
 
float _minZ
 
float _maxZ
 

Detailed Description

Definition at line 7 of file Viewport.cs.


The documentation for this struct was generated from the following file: