- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
union Viewport
{
private:
D3D10_VIEWPORT viewport;
public:
struct {
INT x;
INT y;
UINT width;
UINT height;
FLOAT minDepth;
FLOAT maxDepth;
};
Viewport(){}
Viewport(const Viewport& viewport)
:viewport(viewport.viewport) {}
Viewport(D3D10_VIEWPORT viewport)
:viewport(viewport) {}
Viewport(INT x, INT y, UINT width, UINT height, FLOAT minDepth, FLOAT maxDepth)
:x(x), y(y), width(width), height(height), minDepth(minDepth), maxDepth(maxDepth){}
FLOAT GetAspectRatio();
Vector3 Unproject(Vector3 source, Matrix projection, Matrix view, Matrix world);
};