Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/engine/client/cl_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2219,12 +2219,6 @@ static bool CL_InitRef()
refimport_t ri;
refexport_t *ret;

ri.Cmd_AddCommand = Cmd_AddCommand;
ri.Cmd_RemoveCommand = Cmd_RemoveCommand;
ri.Cmd_Argc = Cmd_Argc;
ri.Cmd_Argv = Cmd_Argv;
ri.Cmd_QuoteString = Cmd_QuoteString;

ri.Milliseconds = Sys::Milliseconds;
ri.RealTime = Com_RealTime;

Expand Down Expand Up @@ -2474,18 +2468,15 @@ void CL_Shutdown()

Cmd_RemoveCommand( "cmd" );
Cmd_RemoveCommand( "configstrings" );
Cmd_RemoveCommand( "userinfo" );
Cmd_RemoveCommand( "snd_restart" );
Cmd_RemoveCommand( "vid_restart" );
Cmd_RemoveCommand( "disconnect" );
Cmd_RemoveCommand( "connect" );
Cmd_RemoveCommand( "localservers" );
Cmd_RemoveCommand( "globalservers" );
Cmd_RemoveCommand( "rcon" );
Cmd_RemoveCommand( "ping" );
Cmd_RemoveCommand( "serverstatus" );
Cmd_RemoveCommand( "showip" );
Cmd_RemoveCommand( "model" );

CL_ClearKeyBinding();
CL_ClearInput();
Expand Down
30 changes: 16 additions & 14 deletions src/engine/renderer/tr_animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,25 +581,27 @@ skelAnimation_t *R_GetAnimationByHandle( qhandle_t index )
return anim;
}

/*
================
R_ListAnimations_f
================
*/
void R_ListAnimations_f()
class ListAnimationsCmd : public Cmd::StaticCmd
{
int i;
skelAnimation_t *anim;
public:
ListAnimationsCmd() : StaticCmd("listAnimations", "list model animations loaded in renderer") {}

for ( i = 0; i < tr.numAnimations; i++ )
void Run( const Cmd::Args & ) const override
{
anim = tr.animations[ i ];
int i;
skelAnimation_t *anim;

Log::Notice("'%s'", anim->name );
}
for ( i = 0; i < tr.numAnimations; i++ )
{
anim = tr.animations[ i ];

Log::Notice("%8i : Total animations", tr.numAnimations );
}
Print( "'%s'", anim->name );
}

Print( "%i total animations", tr.numAnimations );
}
};
static ListAnimationsCmd listAnimationsCmdRegistration;

/*
=============
Expand Down
4 changes: 4 additions & 0 deletions src/engine/renderer/tr_bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5016,6 +5016,10 @@ void R_BuildCubeMaps()
}
}

static Cmd::LambdaCmd buildCubeMapsCmd(
"buildcubemaps", "generate cube probes for reflection mapping",
[]( const Cmd::Args & ) { R_BuildCubeMaps(); });

/*
=================
RE_LoadWorldMap
Expand Down
36 changes: 19 additions & 17 deletions src/engine/renderer/tr_fbo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,25 +591,27 @@ void R_ShutdownFBOs()
}
}

/*
============
R_ListFBOs_f
============
*/
void R_ListFBOs_f()
class ListFBOsCmd : public Cmd::StaticCmd
{
int i;
FBO_t *fbo;

Log::Notice(" size name" );
Log::Notice("----------------------------------------------------------" );
public:
ListFBOsCmd() : StaticCmd("listFBOs", "list renderer's OpenGL framebuffer objects") {}

for ( i = 0; i < tr.numFBOs; i++ )
void Run( const Cmd::Args & ) const override
{
fbo = tr.fbos[ i ];
int i;
FBO_t *fbo;

Log::Notice(" %4i: %4i %4i %s", i, fbo->width, fbo->height, fbo->name );
}
Print(" size name" );
Print("----------------------------------------------------------" );

Log::Notice(" %i FBOs", tr.numFBOs );
}
for ( i = 0; i < tr.numFBOs; i++ )
{
fbo = tr.fbos[ i ];

Print(" %4i: %4i %4i %s", i, fbo->width, fbo->height, fbo->name );
}

Print(" %i FBOs", tr.numFBOs );
}
};
static ListFBOsCmd listFBOsCmdRegistration;
Loading