nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Window Class Reference

#include <window.h>

Public Types

enum class  Visibility { kShown , kHidden }
 raylib needs a window even to draw into a texture, so tests hide theirs. More...

Public Member Functions

 ~Window ()
 Window (const Window &)=delete
Window & operator= (const Window &)=delete
bool ShouldClose () const
void Close ()

Static Public Member Functions

static absl::StatusOr< std::unique_ptr< Window > > Create (const std::string &title, int width, int height, Visibility visibility=Visibility::kShown)

Detailed Description

Definition at line 11 of file window.h.

Member Enumeration Documentation

◆ Visibility

enum class nanommo::Window::Visibility
strong

raylib needs a window even to draw into a texture, so tests hide theirs.

Enumerator
kShown 
kHidden 

Definition at line 14 of file window.h.

Constructor & Destructor Documentation

◆ ~Window()

nanommo::Window::~Window ( )

Definition at line 39 of file window.cc.

◆ Window()

nanommo::Window::Window ( const Window & )
delete

Member Function Documentation

◆ Close()

void nanommo::Window::Close ( )

Definition at line 43 of file window.cc.

◆ Create()

absl::StatusOr< std::unique_ptr< Window > > nanommo::Window::Create ( const std::string & title,
int width,
int height,
Visibility visibility = Visibility::kShown )
static

Definition at line 13 of file window.cc.

◆ operator=()

Window & nanommo::Window::operator= ( const Window & )
delete

◆ ShouldClose()

bool nanommo::Window::ShouldClose ( ) const

Definition at line 41 of file window.cc.


The documentation for this class was generated from the following files: