Skip to content

Commit

Permalink
Format all files and add clang-format configuration file
Browse files Browse the repository at this point in the history
Resolves #84
  • Loading branch information
SamVanheer committed Nov 28, 2021
1 parent adf708f commit 0875534
Show file tree
Hide file tree
Showing 282 changed files with 46,965 additions and 46,946 deletions.
26 changes: 13 additions & 13 deletions cl_dll/GameStudioModelRenderer.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
//
// Purpose:
// Purpose:
//
// $NoKeywords: $
//=============================================================================
Expand Down Expand Up @@ -57,9 +57,9 @@ R_StudioDrawPlayer
====================
*/
int R_StudioDrawPlayer( int flags, entity_state_t *pplayer )
int R_StudioDrawPlayer(int flags, entity_state_t* pplayer)
{
return static_cast<int>(g_StudioRenderer.StudioDrawPlayer( flags, pplayer ));
return static_cast<int>(g_StudioRenderer.StudioDrawPlayer(flags, pplayer));
}

/*
Expand All @@ -68,9 +68,9 @@ R_StudioDrawModel
====================
*/
int R_StudioDrawModel( int flags )
int R_StudioDrawModel(int flags)
{
return static_cast<int>(g_StudioRenderer.StudioDrawModel( flags ));
return static_cast<int>(g_StudioRenderer.StudioDrawModel(flags));
}

/*
Expand All @@ -86,10 +86,10 @@ void R_StudioInit()

// The simple drawing interface we'll pass back to the engine
r_studio_interface_t studio =
{
STUDIO_INTERFACE_VERSION,
R_StudioDrawModel,
R_StudioDrawPlayer,
{
STUDIO_INTERFACE_VERSION,
R_StudioDrawModel,
R_StudioDrawPlayer,
};

/*
Expand All @@ -99,18 +99,18 @@ HUD_GetStudioModelInterface
Export this function for the engine to use the studio renderer class to render objects.
====================
*/
int DLLEXPORT HUD_GetStudioModelInterface( int version, struct r_studio_interface_s **ppinterface, struct engine_studio_api_s *pstudio )
int DLLEXPORT HUD_GetStudioModelInterface(int version, struct r_studio_interface_s** ppinterface, struct engine_studio_api_s* pstudio)
{
// RecClStudioInterface(version, ppinterface, pstudio);
// RecClStudioInterface(version, ppinterface, pstudio);

if ( version != STUDIO_INTERFACE_VERSION )
if (version != STUDIO_INTERFACE_VERSION)
return 0;

// Point the engine to our callbacks
*ppinterface = &studio;

// Copy in engine helper functions
memcpy( &IEngineStudio, pstudio, sizeof( IEngineStudio ) );
memcpy(&IEngineStudio, pstudio, sizeof(IEngineStudio));

// Initialize local variables, etc.
R_StudioInit();
Expand Down
2 changes: 1 addition & 1 deletion cl_dll/GameStudioModelRenderer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
//
// Purpose:
// Purpose:
//
// $NoKeywords: $
//=============================================================================
Expand Down
Loading

0 comments on commit 0875534

Please sign in to comment.