diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/public/togl/linuxwin/glmdisplaydb.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/public/togl/linuxwin/glmdisplaydb.h')
| -rw-r--r-- | mp/src/public/togl/linuxwin/glmdisplaydb.h | 184 |
1 files changed, 92 insertions, 92 deletions
diff --git a/mp/src/public/togl/linuxwin/glmdisplaydb.h b/mp/src/public/togl/linuxwin/glmdisplaydb.h index 7f78f910..d9f64d80 100644 --- a/mp/src/public/togl/linuxwin/glmdisplaydb.h +++ b/mp/src/public/togl/linuxwin/glmdisplaydb.h @@ -1,92 +1,92 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-#ifndef GLMDISPLAYDB_H
-#define GLMDISPLAYDB_H
-
-#include "tier1/utlvector.h"
-
-//===============================================================================
-// modes, displays, and renderers
-//===============================================================================
-
-// GLMDisplayModeInfoFields is in glmdisplay.h
-
-class GLMDisplayMode
-{
-public:
- GLMDisplayModeInfoFields m_info;
-
- GLMDisplayMode( uint width, uint height, uint refreshHz );
- GLMDisplayMode() { };
- ~GLMDisplayMode( void );
-
- void Init( uint width, uint height, uint refreshHz );
- void Dump( int which );
-};
-
-//===============================================================================
-
-// GLMDisplayInfoFields is in glmdisplay.h
-
-class GLMDisplayInfo
-{
-public:
- GLMDisplayInfoFields m_info;
- CUtlVector< GLMDisplayMode* > *m_modes; // starts out NULL, set by PopulateModes
-
- GLMDisplayInfo( void );
- ~GLMDisplayInfo( void );
-
- void PopulateModes( void );
-
- void Dump( int which );
-};
-
-//===============================================================================
-
-// GLMRendererInfoFields is in glmdisplay.h
-
-class GLMRendererInfo
-{
-public:
- GLMRendererInfoFields m_info;
- GLMDisplayInfo *m_display;
-
- GLMRendererInfo ();
- ~GLMRendererInfo ( void );
-
- void Init( GLMRendererInfoFields *info );
- void PopulateDisplays();
- void Dump( int which );
-};
-
-//===============================================================================
-
-class GLMDisplayDB
-{
-public:
- GLMRendererInfo m_renderer;
-
- GLMDisplayDB ( void );
- ~GLMDisplayDB ( void );
-
- virtual void PopulateRenderers( void );
- virtual void PopulateFakeAdapters( uint realRendererIndex ); // fake adapters = one real adapter times however many displays are on it
- virtual void Populate( void );
-
- // The info-get functions return false on success.
- virtual int GetFakeAdapterCount( void );
- virtual bool GetFakeAdapterInfo( int fakeAdapterIndex, int *rendererOut, int *displayOut, GLMRendererInfoFields *rendererInfoOut, GLMDisplayInfoFields *displayInfoOut );
-
- virtual int GetRendererCount( void );
- virtual bool GetRendererInfo( int rendererIndex, GLMRendererInfoFields *infoOut );
-
- virtual int GetDisplayCount( int rendererIndex );
- virtual bool GetDisplayInfo( int rendererIndex, int displayIndex, GLMDisplayInfoFields *infoOut );
-
- virtual int GetModeCount( int rendererIndex, int displayIndex );
- virtual bool GetModeInfo( int rendererIndex, int displayIndex, int modeIndex, GLMDisplayModeInfoFields *infoOut );
-
- virtual void Dump( void );
-};
-
-#endif // GLMDISPLAYDB_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +#ifndef GLMDISPLAYDB_H +#define GLMDISPLAYDB_H + +#include "tier1/utlvector.h" + +//=============================================================================== +// modes, displays, and renderers +//=============================================================================== + +// GLMDisplayModeInfoFields is in glmdisplay.h + +class GLMDisplayMode +{ +public: + GLMDisplayModeInfoFields m_info; + + GLMDisplayMode( uint width, uint height, uint refreshHz ); + GLMDisplayMode() { }; + ~GLMDisplayMode( void ); + + void Init( uint width, uint height, uint refreshHz ); + void Dump( int which ); +}; + +//=============================================================================== + +// GLMDisplayInfoFields is in glmdisplay.h + +class GLMDisplayInfo +{ +public: + GLMDisplayInfoFields m_info; + CUtlVector< GLMDisplayMode* > *m_modes; // starts out NULL, set by PopulateModes + + GLMDisplayInfo( void ); + ~GLMDisplayInfo( void ); + + void PopulateModes( void ); + + void Dump( int which ); +}; + +//=============================================================================== + +// GLMRendererInfoFields is in glmdisplay.h + +class GLMRendererInfo +{ +public: + GLMRendererInfoFields m_info; + GLMDisplayInfo *m_display; + + GLMRendererInfo (); + ~GLMRendererInfo ( void ); + + void Init( GLMRendererInfoFields *info ); + void PopulateDisplays(); + void Dump( int which ); +}; + +//=============================================================================== + +class GLMDisplayDB +{ +public: + GLMRendererInfo m_renderer; + + GLMDisplayDB ( void ); + ~GLMDisplayDB ( void ); + + virtual void PopulateRenderers( void ); + virtual void PopulateFakeAdapters( uint realRendererIndex ); // fake adapters = one real adapter times however many displays are on it + virtual void Populate( void ); + + // The info-get functions return false on success. + virtual int GetFakeAdapterCount( void ); + virtual bool GetFakeAdapterInfo( int fakeAdapterIndex, int *rendererOut, int *displayOut, GLMRendererInfoFields *rendererInfoOut, GLMDisplayInfoFields *displayInfoOut ); + + virtual int GetRendererCount( void ); + virtual bool GetRendererInfo( int rendererIndex, GLMRendererInfoFields *infoOut ); + + virtual int GetDisplayCount( int rendererIndex ); + virtual bool GetDisplayInfo( int rendererIndex, int displayIndex, GLMDisplayInfoFields *infoOut ); + + virtual int GetModeCount( int rendererIndex, int displayIndex ); + virtual bool GetModeInfo( int rendererIndex, int displayIndex, int modeIndex, GLMDisplayModeInfoFields *infoOut ); + + virtual void Dump( void ); +}; + +#endif // GLMDISPLAYDB_H |