2016-03-09 03:40:23 +00:00
|
|
|
//
|
|
|
|
// CRTTypes.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 08/03/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef CRTTypes_h
|
|
|
|
#define CRTTypes_h
|
|
|
|
|
|
|
|
namespace Outputs {
|
|
|
|
namespace CRT {
|
|
|
|
|
|
|
|
struct Rect {
|
|
|
|
struct {
|
|
|
|
float x, y;
|
|
|
|
} origin;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
float width, height;
|
|
|
|
} size;
|
|
|
|
|
|
|
|
Rect() {}
|
|
|
|
Rect(float x, float y, float width, float height) :
|
2016-04-12 01:47:23 +00:00
|
|
|
origin({.x = x, .y = y}), size({.width = width, .height = height}) {}
|
2016-03-09 03:40:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum DisplayType {
|
|
|
|
PAL50,
|
|
|
|
NTSC60
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ColourSpace {
|
|
|
|
YIQ,
|
|
|
|
YUV
|
|
|
|
};
|
|
|
|
|
|
|
|
enum OutputDevice {
|
|
|
|
Monitor,
|
|
|
|
Television
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CRTTypes_h */
|