summaryrefslogtreecommitdiffhomepage
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/CoreGfx/CoreAccess.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/modules/CoreGfx/CoreAccess.h b/src/modules/CoreGfx/CoreAccess.h
index c0ebf255..b5928d8f 100644
--- a/src/modules/CoreGfx/CoreAccess.h
+++ b/src/modules/CoreGfx/CoreAccess.h
@@ -16,7 +16,12 @@
namespace FB {
using namespace Kernel;
-/// @brief common User interface class.
+template <SizeT N, typename NType>
+struct CGVec;
+class CGAccessibility;
+
+/// @brief Video Accessbility Helper.
+/// Use this when dealing with video diemensions.
class CGAccessibilty final {
explicit CGAccessibilty() = default;
~CGAccessibilty() = default;
@@ -28,6 +33,21 @@ class CGAccessibilty final {
static UInt64 Height() { return kHandoverHeader->f_GOP.f_Height; }
};
+
+template <SizeT N, typename NType>
+struct CGVec final {
+ NType fVec[N] = {};
+ explicit CGVec() = default;
+ ~CGVec() = default;
+ NE_COPY_DEFAULT(CGVec)
+
+ NType& operator[](const SizeT& i) {
+ MUST_PASS(i < N);
+ return fVec[i];
+ }
+};
+
+using CGVec3U64 = CGVec<3, UInt64>;
} // namespace FB
#endif // !CORE_GFX_ACCESSIBILITY_H_