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 /sp/src/game/client/c_pixel_visibility.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 'sp/src/game/client/c_pixel_visibility.h')
| -rw-r--r-- | sp/src/game/client/c_pixel_visibility.h | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/sp/src/game/client/c_pixel_visibility.h b/sp/src/game/client/c_pixel_visibility.h index 62e32112..3c075140 100644 --- a/sp/src/game/client/c_pixel_visibility.h +++ b/sp/src/game/client/c_pixel_visibility.h @@ -1,55 +1,55 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef C_PIXEL_VISIBILITY_H
-#define C_PIXEL_VISIBILITY_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-const float PIXELVIS_DEFAULT_PROXY_SIZE = 2.0f;
-const float PIXELVIS_DEFAULT_FADE_TIME = 0.0625f;
-
-typedef int pixelvis_handle_t;
-struct pixelvis_queryparams_t
-{
- pixelvis_queryparams_t()
- {
- bSetup = false;
- }
-
- void Init( const Vector &origin, float proxySizeIn = PIXELVIS_DEFAULT_PROXY_SIZE, float proxyAspectIn = 1.0f, float fadeTimeIn = PIXELVIS_DEFAULT_FADE_TIME )
- {
- position = origin;
- proxySize = proxySizeIn;
- proxyAspect = proxyAspectIn;
- fadeTime = fadeTimeIn;
- bSetup = true;
- bSizeInScreenspace = false;
- }
-
- Vector position;
- float proxySize;
- float proxyAspect;
- float fadeTime;
- bool bSetup;
- bool bSizeInScreenspace;
-};
-
-float PixelVisibility_FractionVisible( const pixelvis_queryparams_t ¶ms, pixelvis_handle_t *queryHandle );
-float StandardGlowBlend( const pixelvis_queryparams_t ¶ms, pixelvis_handle_t *queryHandle, int rendermode, int renderfx, int alpha, float *pscale );
-
-void PixelVisibility_ShiftVisibilityViews( int iSourceViewID, int iDestViewID ); //mainly needed by portal mod to avoid a pop in visibility when teleporting the player
-
-void PixelVisibility_EndCurrentView();
-void PixelVisibility_EndScene();
-float GlowSightDistance( const Vector &glowOrigin, bool bShouldTrace );
-
-// returns true if the video hardware is doing the tests, false is traceline is doing so.
-bool PixelVisibility_IsAvailable();
-
-#endif // C_PIXEL_VISIBILITY_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef C_PIXEL_VISIBILITY_H +#define C_PIXEL_VISIBILITY_H +#ifdef _WIN32 +#pragma once +#endif + + +const float PIXELVIS_DEFAULT_PROXY_SIZE = 2.0f; +const float PIXELVIS_DEFAULT_FADE_TIME = 0.0625f; + +typedef int pixelvis_handle_t; +struct pixelvis_queryparams_t +{ + pixelvis_queryparams_t() + { + bSetup = false; + } + + void Init( const Vector &origin, float proxySizeIn = PIXELVIS_DEFAULT_PROXY_SIZE, float proxyAspectIn = 1.0f, float fadeTimeIn = PIXELVIS_DEFAULT_FADE_TIME ) + { + position = origin; + proxySize = proxySizeIn; + proxyAspect = proxyAspectIn; + fadeTime = fadeTimeIn; + bSetup = true; + bSizeInScreenspace = false; + } + + Vector position; + float proxySize; + float proxyAspect; + float fadeTime; + bool bSetup; + bool bSizeInScreenspace; +}; + +float PixelVisibility_FractionVisible( const pixelvis_queryparams_t ¶ms, pixelvis_handle_t *queryHandle ); +float StandardGlowBlend( const pixelvis_queryparams_t ¶ms, pixelvis_handle_t *queryHandle, int rendermode, int renderfx, int alpha, float *pscale ); + +void PixelVisibility_ShiftVisibilityViews( int iSourceViewID, int iDestViewID ); //mainly needed by portal mod to avoid a pop in visibility when teleporting the player + +void PixelVisibility_EndCurrentView(); +void PixelVisibility_EndScene(); +float GlowSightDistance( const Vector &glowOrigin, bool bShouldTrace ); + +// returns true if the video hardware is doing the tests, false is traceline is doing so. +bool PixelVisibility_IsAvailable(); + +#endif // C_PIXEL_VISIBILITY_H |