Allolib  1.0
C++ Components For Interactive Multimedia
al::Viewport Struct Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/graphics/al_Viewpoint.hpp>

Public Member Functions

 Viewport (int w=640, int h=480)
 
 Viewport (int l, int b, int w, int h)
 
 Viewport (const Viewport &cpy)
 
float aspect () const
 Get aspect ratio (width divided by height)
 
void set (int l_, int b_, int w_, int h_)
 Set dimensions.
 
void set (const Viewport &cpy)
 
bool isEqual (Viewport const &v)
 

Public Attributes

int l
 
int b
 
int w
 
int h
 left, bottom, width, height
 

Detailed Description

A framed area on a display screen

Definition at line 48 of file al_Viewpoint.hpp.

Constructor & Destructor Documentation

◆ Viewport() [1/2]

al::Viewport::Viewport ( int  w = 640,
int  h = 480 
)
inline
Parameters
[in]wwidth
[in]hheight

Definition at line 53 of file al_Viewpoint.hpp.

◆ Viewport() [2/2]

al::Viewport::Viewport ( int  l,
int  b,
int  w,
int  h 
)
inline
Parameters
[in]lleft edge coordinate
[in]bbottom edge coordinate
[in]wwidth
[in]hheight

Definition at line 59 of file al_Viewpoint.hpp.


The documentation for this struct was generated from the following file: