mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-24 12:30:17 +00:00
Modifies BufferingScanTarget to allow has-a relationship.
I might switch fully to has-a. Further consideration required.
This commit is contained in:
parent
bb55ecc101
commit
583f6b1ba2
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user