1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Halofreak1990 8f089dc2ab Added the current XFX directory tree.
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
2010-12-04 16:14:34 +00:00

37 lines
869 B
C++

/********************************************************
* Viewport.h *
* *
* XFX Viewport definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
namespace XFX
{
struct Matrix;
struct Vector3;
namespace Graphics
{
/// <summary>
/// Defines the window dimensions of a render-target surface onto which a 3D volume projects.
/// </summary>
struct Viewport
{
private:
static bool WithinEpsilon(float a, float b);
public:
float AspectRatio();
int Height;
int MaxDepth;
int MinDepth;
int Width;
int X;
int Y;
Vector3 Project(Vector3 source, Matrix projection, Matrix view, Matrix world);
Vector3 Unproject(Vector3 source, Matrix projection, Matrix view, Matrix world);
};
}
}