MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / R_GetCommandBuffer

Function R_GetCommandBuffer

neo/renderer/RenderSystem.cpp:168–177  ·  view source on GitHub ↗

============ R_GetCommandBuffer Returns memory for a command buffer (stretchPicCommand_t, drawSurfsCommand_t, etc) and links it to the end of the current command chain. ============ */

Source from the content-addressed store, hash-verified

166============
167*/
168void *R_GetCommandBuffer( int bytes ) {
169 emptyCommand_t *cmd;
170
171 cmd = (emptyCommand_t *)R_FrameAlloc( bytes );
172 cmd->next = NULL;
173 frameData->cmdTail->next = &cmd->commandId;
174 frameData->cmdTail = cmd;
175
176 return (void *)cmd;
177}
178
179
180/*

Callers 4

R_AddDrawViewCmdFunction · 0.85
BeginFrameMethod · 0.85
EndFrameMethod · 0.85
CaptureRenderToImageMethod · 0.85

Calls 1

R_FrameAllocFunction · 0.85

Tested by

no test coverage detected