1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00

49 lines
1.1 KiB
C
Raw Normal View History

/********************************************************
* Viewport.h *
* *
* XFX Viewport definition file *
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
********************************************************/
#ifndef _XFX_GRAPHICS_VIEWPORT_
#define _XFX_GRAPHICS_VIEWPORT_
#include <System/Object.h>
using namespace System;
namespace XFX
{
struct Matrix;
struct Vector3;
namespace Graphics
{
// Defines the window dimensions of a render-target surface onto which a 3D volume projects.
struct Viewport : virtual Object
{
private:
static bool WithinEpsilon(float a, float b);
public:
float AspectRatio();
int Height;
int MaxDepth;
int MinDepth;
int Width;
int X;
int Y;
bool Equals(Viewport obj);
int GetHashCode();
Vector3 Project(Vector3 source, Matrix projection, Matrix view, Matrix world);
char* ToString();
Vector3 Unproject(Vector3 source, Matrix projection, Matrix view, Matrix world);
bool operator !=(Viewport right);
bool operator ==(Viewport right);
};
}
}
#endif //_XFX_GRAPHICS_VIEWPORT_