openMSX
video
OutputRectangle.hh
Go to the documentation of this file.
1
#ifndef OUTPUTRECTANGLE_HH
2
#define OUTPUTRECTANGLE_HH
3
4
#include "
gl_vec.hh
"
5
6
namespace
openmsx
{
7
8
class
OutputRectangle
9
{
10
public
:
11
virtual
gl::ivec2
getOutputSize
()
const
= 0;
12
13
protected
:
14
~OutputRectangle
() {}
15
};
16
17
18
class
DummyOutputRectangle
final :
public
OutputRectangle
19
{
20
public
:
21
explicit
DummyOutputRectangle
(
gl::ivec2
size_)
22
:
size
(size_) {}
23
24
gl::ivec2
getOutputSize
()
const override
{
return
size
; }
25
26
private
:
27
const
gl::ivec2
size
;
28
};
29
30
}
// namespace openmsx
31
32
#endif
openmsx::DummyOutputRectangle
Definition:
OutputRectangle.hh:18
openmsx::DummyOutputRectangle::getOutputSize
gl::ivec2 getOutputSize() const override
Definition:
OutputRectangle.hh:24
openmsx::OutputRectangle::getOutputSize
virtual gl::ivec2 getOutputSize() const =0
utf8::unchecked::size
size_t size(string_view utf8)
Definition:
utf8_unchecked.hh:229
openmsx
Thanks to enen for testing this on a real cartridge:
Definition:
Autofire.cc:5
openmsx::DummyOutputRectangle::DummyOutputRectangle
DummyOutputRectangle(gl::ivec2 size_)
Definition:
OutputRectangle.hh:21
openmsx::OutputRectangle::~OutputRectangle
~OutputRectangle()
Definition:
OutputRectangle.hh:14
gl::vecN
Definition:
gl_vec.hh:34
openmsx::OutputRectangle
Definition:
OutputRectangle.hh:8
gl_vec.hh
Generated on Sun Dec 9 2018 11:28:20 for openMSX by
1.8.13