-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
1,709 additions
and
810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "toolframework/itoolentity.h" | ||
|
||
inline IClientTools* g_pClientTools = nullptr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#pragma once | ||
|
||
// Render Line | ||
inline void (*RenderLine)(const Vector3& v1, const Vector3& v2, Color c, bool bZBuffer); | ||
|
||
// Render box | ||
inline void (*RenderBox)( | ||
const Vector3& vOrigin, const QAngle& angles, const Vector3& vMins, const Vector3& vMaxs, Color c, bool bZBuffer, bool bInsideOut); | ||
|
||
// Render wireframe box | ||
inline void (*RenderWireframeBox)( | ||
const Vector3& vOrigin, const QAngle& angles, const Vector3& vMins, const Vector3& vMaxs, Color c, bool bZBuffer, bool bInsideOut); | ||
|
||
// Render swept box | ||
inline void (*RenderWireframeSweptBox)( | ||
const Vector3& vStart, const Vector3& vEnd, const QAngle& angles, const Vector3& vMins, const Vector3& vMaxs, Color c, bool bZBuffer); | ||
|
||
// Render Triangle | ||
inline void (*RenderTriangle)(const Vector3& p1, const Vector3& p2, const Vector3& p3, Color c, bool bZBuffer); | ||
|
||
// Render Axis | ||
inline void (*RenderAxis)(const Vector3& vOrigin, float flScale, bool bZBuffer); | ||
|
||
// I dont know | ||
inline void (*RenderUnknown)(const Vector3& vUnk, float flUnk, bool bUnk); | ||
|
||
// Render Sphere | ||
inline void (*RenderSphere)(const Vector3& vCenter, float flRadius, int nTheta, int nPhi, Color c, bool bZBuffer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include "toolframework/itoolentity.h" | ||
#include "client/cdll_client_int.h" | ||
#include "core/tier1.h" | ||
|
||
class CClientTools : public IClientTools | ||
{ | ||
public: | ||
}; | ||
|
||
ON_DLL_LOAD("client.dll", ClientClientTools, (CModule module)) | ||
{ | ||
g_pClientTools = Sys_GetFactoryPtr("client.dll", "VCLIENTTOOLS001").RCast<IClientTools*>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
|
||
inline float FastSqrt(float x) | ||
{ | ||
__m128 root = _mm_sqrt_ss(_mm_load_ss(&x)); | ||
return *(reinterpret_cast<float*>(&root)); | ||
} |
Oops, something went wrong.