structure containing parameters for creating windows
More...
#include <cs237-window.hpp>
|
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?
|
|
structure containing parameters for creating windows
◆ CreateWindowInfo() [1/2]
cs237::CreateWindowInfo::CreateWindowInfo |
( |
int |
w, |
|
|
int |
h, |
|
|
std::string const & |
t, |
|
|
bool |
r, |
|
|
bool |
d, |
|
|
bool |
s |
|
) |
| |
|
inline |
constructor
- Parameters
-
[in] | w | window width in pixels |
[in] | h | window height in pixels |
[in] | t | window title string |
[in] | r | boolean flag to specify that the window is resizable |
[in] | d | boolean flag to specify that the window has a depth buffer |
[in] | s | boolean 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] | w | window width in pixels |
[in] | h | window height in pixels |
◆ needsDepthBuf()
bool cs237::CreateWindowInfo::needsDepthBuf |
( |
| ) |
const |
|
inline |
do we need a depth/stencil buffer for the window?
◆ depth
bool cs237::CreateWindowInfo::depth |
do we need depth-buffer support?
◆ ht
int cs237::CreateWindowInfo::ht |
◆ 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 |
◆ wid
int cs237::CreateWindowInfo::wid |
The documentation for this struct was generated from the following file: