Viewport class
Base classes
-
template<typename T>struct BoundBox2<f32>
Public types
-
using Vector2 = sead::
Vector2<f32>
Constructors, destructors, conversion operators
- Viewport()
- Viewport(float left, float top, float right, float bottom)
- Viewport(const BoundBox2f& parent) explicit
- Viewport(const LogicalFrameBuffer& buffer) explicit
- ~Viewport() defaulted virtual
Public functions
- void setByFrameBuffer(const LogicalFrameBuffer& buffer)
- void apply(DrawContext*, const LogicalFrameBuffer& buffer) const
- void getOnFrameBufferPos(Vector2f* out, const LogicalFrameBuffer& buffer) const
- void getOnFrameBufferSize(Vector2f* out, const LogicalFrameBuffer& buffer) const
- void applyViewport(DrawContext* context, const LogicalFrameBuffer& buffer) const
- void applyScissor(DrawContext* context, const LogicalFrameBuffer& buffer) const
- void project(Vector2f*, const Vector3f&) const
- void project(Vector2f*, const Vector2f&) const
- void unproject(Vector3f*, const Vector2f&, const Projection&, const Camera&) const
- void unproject(Ray<Vector3f>*, const Vector2f&, const Projection&, const Camera&) const
- auto getSizeX() const -> f32
- auto getSizeY() const -> f32
- auto getHalfSizeX() const -> f32
- auto getHalfSizeY() const -> f32
- auto getMin() const -> const Vector2&
- auto getMax() const -> const Vector2&
- auto getTL() const -> Vector2
- auto getTR() const -> Vector2
- auto getBL() const -> Vector2
- auto getBR() const -> Vector2
- auto getCenter() const -> Vector2
- void getCenter(Vector2* p) const
- auto isUndef() const -> bool
- auto isInside(const Vector2& p) const -> bool
- void setUndef()
- void set(f32 x0, f32 y0, f32 x1, f32 y1)
- void set(const Vector2& min, const Vector2& max)
- void setMin(const Vector2& min)
- void setMax(const Vector2& max)
- void setFromCenterAndXY(f32 centerX, f32 centerY, f32 sizeX, f32 sizeY)
- void setFromCenterAndXY(const Vector2& center, f32 sizeX, f32 sizeY)
- void setFromCornerAndXY(f32 cornerX, f32 cornerY, f32 sizeX, f32 sizeY)
- void setFromCornerAndXY(const Vector2& corner, f32 sizeX, f32 sizeY)
- void offset(f32 dx, f32 dy)
- void offset(const Vector2& dv)
- void scaleX(f32 sx)
- void scaleY(f32 sy)
Typedef documentation
using sead:: Viewport:: Vector2 = sead:: Vector2<f32>
#include <math/seadBoundBox.h>
Function documentation
f32 sead:: Viewport:: getSizeX() const
#include <math/seadBoundBox.h>
f32 sead:: Viewport:: getSizeY() const
#include <math/seadBoundBox.h>
f32 sead:: Viewport:: getHalfSizeX() const
#include <math/seadBoundBox.h>
f32 sead:: Viewport:: getHalfSizeY() const
#include <math/seadBoundBox.h>
const Vector2& sead:: Viewport:: getMin() const
#include <math/seadBoundBox.h>
const Vector2& sead:: Viewport:: getMax() const
#include <math/seadBoundBox.h>
Vector2 sead:: Viewport:: getTL() const
#include <math/seadBoundBox.h>
Vector2 sead:: Viewport:: getTR() const
#include <math/seadBoundBox.h>
Vector2 sead:: Viewport:: getBL() const
#include <math/seadBoundBox.h>
Vector2 sead:: Viewport:: getBR() const
#include <math/seadBoundBox.h>
Vector2 sead:: Viewport:: getCenter() const
#include <math/seadBoundBox.h>
void sead:: Viewport:: getCenter(Vector2* p) const
#include <math/seadBoundBox.h>
bool sead:: Viewport:: isUndef() const
#include <math/seadBoundBox.h>
bool sead:: Viewport:: isInside(const Vector2& p) const
#include <math/seadBoundBox.h>
void sead:: Viewport:: setUndef()
#include <math/seadBoundBox.h>
void sead:: Viewport:: set(const Vector2& min,
const Vector2& max)
#include <math/seadBoundBox.h>
void sead:: Viewport:: setMin(const Vector2& min)
#include <math/seadBoundBox.h>
void sead:: Viewport:: setMax(const Vector2& max)
#include <math/seadBoundBox.h>
void sead:: Viewport:: setFromCenterAndXY(f32 centerX,
f32 centerY,
f32 sizeX,
f32 sizeY)
#include <math/seadBoundBox.h>
void sead:: Viewport:: setFromCenterAndXY(const Vector2& center,
f32 sizeX,
f32 sizeY)
#include <math/seadBoundBox.h>
void sead:: Viewport:: setFromCornerAndXY(f32 cornerX,
f32 cornerY,
f32 sizeX,
f32 sizeY)
#include <math/seadBoundBox.h>
void sead:: Viewport:: setFromCornerAndXY(const Vector2& corner,
f32 sizeX,
f32 sizeY)
#include <math/seadBoundBox.h>
void sead:: Viewport:: offset(f32 dx,
f32 dy)
#include <math/seadBoundBox.h>
void sead:: Viewport:: offset(const Vector2& dv)
#include <math/seadBoundBox.h>
void sead:: Viewport:: scaleX(f32 sx)
#include <math/seadBoundBox.h>
void sead:: Viewport:: scaleY(f32 sy)
#include <math/seadBoundBox.h>