monitors.h File Reference

Go to the documentation of this file. Source: include/ffw/graphics/monitors.h

/* This file is part of FineFramework project */
#ifndef FFW_GRAPHICS_MONITORS
#define FFW_GRAPHICS_MONITORS

#include <string>
#include "vec2.h"

namespace ffw{
    struct Resolution {
        int w = 0;
        int h = 0;
    };
    struct BitDepth {
        int r = 0;
        int g = 0;
        int b = 0;
    };
    struct Monitor {
        struct Mode {
            Resolution resolution;
            BitDepth bitDepth;
            int refreshRate = 0;
        };
        std::string name;
        Resolution resolution;
        BitDepth bitDepth;
        int refreshRate = 0;
        Vec2<int> position;
        Vec2<int> physicalSize;
        void* ptr = nullptr;
    };
};
#endif