Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# ResPicker.hpp

Go to the documentation of this file.

    00001 // utility class for picking resolutions
    00002
    00003 #ifndef RESPICKER_HPP
    00004 #define RESPICKER_HPP
    00005
    00006 #include "deGlobalTypes.hpp"
    00007 #include "deArray.hpp"
    00008
    00009 class IdeDriver;
    00010 struct IdeDriver::deDisplay;
    00011
    00012 class deResLister
    00013 {
    00014 public:
    00015     deResLister();
    00016     ~deResLister();
    00017
    00018 struct ResInfo
    00019 {
    00020     long AdapterNum;
    00021     long ModeNum;
    00022     long Width;
    00023     long Height;
    00024     long BitDepth;
    00025     long Refresh;
    00026 };
    00027
    00028 deBoolean EnumDriver(const IdeDriver * pDriver);
    00029 long GetNumAdapters() const;
    00030 long GetNumResolutions() const;
    00031 ResInfo* GetResList() const;
    00032
    00033 private:
    00034     deTArray<ResInfo> m_ResList;
    00035     long m_NumAdapters;
    00036 };
    00037
    00038 class deResPicker
    00039 {
    00040 public:
    00041     deResPicker();
    00042     ~deResPicker();
    00043
    00044     deBoolean PickResolution(HINSTANCE hInstance, HWND ParentWindow, const IdeDriver* pDriver, IdeDriver::deDisplay* pDisplay);
    00045
    00046 private:
    00047     deResLister m_Lister;
    00048 };
    00049
    00050 #endif