Added View::SetSize(width, height)
Former-commit-id: 9afd04b62e99702720cb10feae2462eaad33a90b
This commit is contained in:
parent
03b91575fb
commit
18367d26da
|
|
@ -45,6 +45,7 @@ class NAZARA_API NzView : public NzAbstractViewer, public NzNode, NzRenderTarget
|
|||
float GetZNear() const;
|
||||
|
||||
void SetSize(const NzVector2f& size);
|
||||
void SetSize(float width, float height);
|
||||
void SetTarget(const NzRenderTarget* renderTarget);
|
||||
void SetTarget(const NzRenderTarget& renderTarget);
|
||||
void SetTargetRegion(const NzRectf& region);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ m_zNear(-1.f)
|
|||
NzView::NzView(const NzVector2f& size) :
|
||||
NzView() // On délègue
|
||||
{
|
||||
m_size = size;
|
||||
SetSize(size);
|
||||
}
|
||||
|
||||
NzView::~NzView()
|
||||
|
|
@ -147,6 +147,17 @@ float NzView::GetZNear() const
|
|||
return m_zNear;
|
||||
}
|
||||
|
||||
void NzView::SetSize(const NzVector2f& size)
|
||||
{
|
||||
SetSize(size.x, size.y);
|
||||
}
|
||||
|
||||
void NzView::SetSize(float width, float height)
|
||||
{
|
||||
m_size.Set(width, height);
|
||||
m_projectionMatrixUpdated = false;
|
||||
}
|
||||
|
||||
void NzView::SetTarget(const NzRenderTarget* renderTarget)
|
||||
{
|
||||
if (m_target)
|
||||
|
|
|
|||
Loading…
Reference in New Issue