1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Modifies BufferingScanTarget to allow has-a relationship.

I might switch fully to has-a. Further consideration required.
This commit is contained in:
Thomas Harte 2020-08-07 22:03:27 -04:00
parent bb55ecc101
commit 583f6b1ba2
2 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,7 @@ namespace OpenGL {
this uses various internal buffers so that the only geometry
drawn to the target framebuffer is a quad.
*/
class ScanTarget: public Outputs::Display::BufferingScanTarget {
class ScanTarget: public Outputs::Display::BufferingScanTarget { // TODO: use private inheritance and expose only display_metrics() and a custom cast?
public:
ScanTarget(GLuint target_framebuffer = 0, float output_gamma = 2.2f);
~ScanTarget();

View File

@ -39,7 +39,6 @@ class BufferingScanTarget: public Outputs::Display::ScanTarget {
/*! @returns The DisplayMetrics object that this ScanTarget has been providing with announcements and draw overages. */
const Metrics &display_metrics();
protected:
static constexpr int WriteAreaWidth = 2048;
static constexpr int WriteAreaHeight = 2048;