aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/togl/osx/cglmquery.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-12-03 08:54:16 -0800
committerJoe Ludwig <[email protected]>2013-12-03 08:54:16 -0800
commitbeaae8ac45a2f322a792404092d4482065bef7ef (patch)
tree747f35193ba235f0f0b070c05b53468a54559c8e /mp/src/public/togl/osx/cglmquery.h
parentMake .xcconfigs text files too. (diff)
downloadsource-sdk-2013-beaae8ac45a2f322a792404092d4482065bef7ef.tar.xz
source-sdk-2013-beaae8ac45a2f322a792404092d4482065bef7ef.zip
Updated the SDK with the latest code from the TF and HL2 branches
* Adds support for Visual Studio 2012 and 2013 * VR Mode: . Switches from headtrack.dll to sourcevr.dll . Improved readability of the UI in VR . Removed the IPD calibration tool. TF2 will now obey the Oculus configuration file. Use the Oculus calibration tool in your SDK or install and run "OpenVR" under Tools in Steam to calibrate your IPD. . Added dropdown to enable VR mode in the Video options. Removed the -vr command line option. . Added the ability to switch in and out of VR mode without quitting the game . By default VR mode will run full screen. To switch back to a borderless window set the vr_force_windowed convar. . Added support for VR mode on Linux * Many assorted bug fixes and other changes from Team Fortress in various shared files
Diffstat (limited to 'mp/src/public/togl/osx/cglmquery.h')
-rw-r--r--mp/src/public/togl/osx/cglmquery.h168
1 files changed, 84 insertions, 84 deletions
diff --git a/mp/src/public/togl/osx/cglmquery.h b/mp/src/public/togl/osx/cglmquery.h
index 1f5b1676..21e16893 100644
--- a/mp/src/public/togl/osx/cglmquery.h
+++ b/mp/src/public/togl/osx/cglmquery.h
@@ -1,85 +1,85 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// cglmquery.h
-// GLMgr queries
-//
-//===============================================================================
-
-#ifndef CGLMQUERY_H
-#define CGLMQUERY_H
-
-#pragma once
-
-//===============================================================================
-
-// forward declarations
-
-class GLMContext;
-class CGLMQuery;
-
-//===============================================================================
-
-enum EGLMQueryType
-{
- EOcclusion,
- EFence,
- EGLMQueryCount
-};
-
-struct GLMQueryParams
-{
- EGLMQueryType m_type;
-};
-
-class CGLMQuery
-{
- // leave everything public til it's running
-public:
- friend class GLMContext; // only GLMContext can make CGLMTex objects
- friend class IDirect3DDevice9;
- friend class IDirect3DQuery9;
-
- GLMContext *m_ctx; // link back to parent context
- GLMQueryParams m_params; // params created with
-
- GLuint m_name; // name of the query object per se - could be fence, could be query object ... NOT USED WITH GL_ARB_sync!
-#ifdef HAVE_GL_ARB_SYNC
- GLsync m_syncobj; // GL_ARB_sync object. NOT USED WITH GL_NV_fence or GL_APPLE_fence!
-#else
- GLuint m_syncobj;
-#endif
-
- bool m_started;
- bool m_stopped;
- bool m_done;
-
- bool m_nullQuery; // was gl_nullqueries true at Start time - if so, continue to act like a null query through Stop/IsDone/Complete time
- // restated - only Start should examine the convar.
-
- CGLMQuery( GLMContext *ctx, GLMQueryParams *params );
- ~CGLMQuery( );
-
- // for an occlusion query:
- // Start = BeginQuery query-start goes into stream
- // Stop = EndQuery query-end goes into stream - a fence is also set so we can probe for completion
- // IsDone = TestFence use the added fence to ask if query-end has passed (i.e. will Complete block?)
- // Complete = GetQueryObjectuivARB(uint id, enum pname, uint *params) - extract the sample count
-
- // for a fence query:
- // Start = SetFence fence goes into command stream
- // Stop = NOP fences are self finishing - no need to call Stop on a fence
- // IsDone = TestFence ask if fence passed
- // Complete = FinishFence
-
- void Start ( void );
- void Stop ( void );
- bool IsDone ( void );
- void Complete ( uint *result );
-
- // accessors for the started/stopped state
- bool IsStarted ( void );
- bool IsStopped ( void );
-};
-
-
-#endif
+//
+// cglmquery.h
+// GLMgr queries
+//
+//===============================================================================
+
+#ifndef CGLMQUERY_H
+#define CGLMQUERY_H
+
+#pragma once
+
+//===============================================================================
+
+// forward declarations
+
+class GLMContext;
+class CGLMQuery;
+
+//===============================================================================
+
+enum EGLMQueryType
+{
+ EOcclusion,
+ EFence,
+ EGLMQueryCount
+};
+
+struct GLMQueryParams
+{
+ EGLMQueryType m_type;
+};
+
+class CGLMQuery
+{
+ // leave everything public til it's running
+public:
+ friend class GLMContext; // only GLMContext can make CGLMTex objects
+ friend class IDirect3DDevice9;
+ friend class IDirect3DQuery9;
+
+ GLMContext *m_ctx; // link back to parent context
+ GLMQueryParams m_params; // params created with
+
+ GLuint m_name; // name of the query object per se - could be fence, could be query object ... NOT USED WITH GL_ARB_sync!
+#ifdef HAVE_GL_ARB_SYNC
+ GLsync m_syncobj; // GL_ARB_sync object. NOT USED WITH GL_NV_fence or GL_APPLE_fence!
+#else
+ GLuint m_syncobj;
+#endif
+
+ bool m_started;
+ bool m_stopped;
+ bool m_done;
+
+ bool m_nullQuery; // was gl_nullqueries true at Start time - if so, continue to act like a null query through Stop/IsDone/Complete time
+ // restated - only Start should examine the convar.
+
+ CGLMQuery( GLMContext *ctx, GLMQueryParams *params );
+ ~CGLMQuery( );
+
+ // for an occlusion query:
+ // Start = BeginQuery query-start goes into stream
+ // Stop = EndQuery query-end goes into stream - a fence is also set so we can probe for completion
+ // IsDone = TestFence use the added fence to ask if query-end has passed (i.e. will Complete block?)
+ // Complete = GetQueryObjectuivARB(uint id, enum pname, uint *params) - extract the sample count
+
+ // for a fence query:
+ // Start = SetFence fence goes into command stream
+ // Stop = NOP fences are self finishing - no need to call Stop on a fence
+ // IsDone = TestFence ask if fence passed
+ // Complete = FinishFence
+
+ void Start ( void );
+ void Stop ( void );
+ bool IsDone ( void );
+ void Complete ( uint *result );
+
+ // accessors for the started/stopped state
+ bool IsStarted ( void );
+ bool IsStopped ( void );
+};
+
+
+#endif