CMSC23700 Common Code Library
Support code for CS23700 programming projects
Loading...
Searching...
No Matches
cs237::CreateWindowInfo Struct Reference

structure containing parameters for creating windows More...

#include <cs237-window.hpp>

Public Member Functions

 CreateWindowInfo (int w, int h, std::string const &t, bool r, bool d, bool s)
 
 CreateWindowInfo (int w, int h)
 
bool needsDepthBuf () const
 do we need a depth/stencil buffer for the window?
 

Public Attributes

int wid
 the window width
 
int ht
 the window height
 
std::string title
 window title
 
bool resizable
 should the window support resizing
 
bool depth
 do we need depth-buffer support?
 
bool stencil
 do we need stencil-buffer support?
 

Detailed Description

structure containing parameters for creating windows

Constructor & Destructor Documentation

◆ CreateWindowInfo() [1/2]

cs237::CreateWindowInfo::CreateWindowInfo ( int  w,
int  h,
std::string const &  t,
bool  r,
bool  d,
bool  s 
)
inline

constructor

Parameters
[in]wwindow width in pixels
[in]hwindow height in pixels
[in]twindow title string
[in]rboolean flag to specify that the window is resizable
[in]dboolean flag to specify that the window has a depth buffer
[in]sboolean flag to specify that the window has a stencil buffer

◆ CreateWindowInfo() [2/2]

cs237::CreateWindowInfo::CreateWindowInfo ( int  w,
int  h 
)
inline

simple constructor for fixed-size window without depth or stencil

Parameters
[in]wwindow width in pixels
[in]hwindow height in pixels

Member Function Documentation

◆ needsDepthBuf()

bool cs237::CreateWindowInfo::needsDepthBuf ( ) const
inline

do we need a depth/stencil buffer for the window?

Member Data Documentation

◆ depth

bool cs237::CreateWindowInfo::depth

do we need depth-buffer support?

◆ ht

int cs237::CreateWindowInfo::ht

the window height

◆ resizable

bool cs237::CreateWindowInfo::resizable

should the window support resizing

◆ stencil

bool cs237::CreateWindowInfo::stencil

do we need stencil-buffer support?

◆ title

std::string cs237::CreateWindowInfo::title

window title

◆ wid

int cs237::CreateWindowInfo::wid

the window width


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