screen.cpp screen.h OpenArena #include"screen.h" namespaceOpenArena { Screen::Screen() { _width=640; _height=480; _colorDepth=16; _fullscreen=false; _name=""; } intScreen::GetWidth() { return_width; } intScreen::GetHeight() { return_height; } intScreen::GetColorDepth() { return_colorDepth; } boolScreen::GetFullscreen() { return_fullscreen; } constchar*Screen::GetName() { return_name.c_str(); } voidScreen::SetWidth(intwidth) { _width=width; } voidScreen::SetHeight(intheight) { _height=height; } voidScreen::Resize(intwidth,intheight) { _width=width; _height=height; } voidScreen::SetColorDepth(intcolorDepth) { _colorDepth=colorDepth; } voidScreen::SetFullscreen(boolstatus) { _fullscreen=status; } voidScreen::ToggleFullscreen() { _fullscreen=!_fullscreen; } voidScreen::SetName(constchar*name) { _name=name; } voidScreen::SetName(stringname) { _name=name; } };