1#include "backend_null.h"
2
3#include <engine/client/backend_sdl.h>
4
5ERunCommandReturnTypes CCommandProcessorFragment_Null::RunCommand(const CCommandBuffer::SCommand *pBaseCommand)
6{
7 switch(pBaseCommand->m_Cmd)
8 {
9 case CCommandProcessorFragment_Null::CMD_INIT:
10 Cmd_Init(pCommand: static_cast<const SCommand_Init *>(pBaseCommand));
11 break;
12 case CCommandBuffer::CMD_TEXTURE_CREATE:
13 Cmd_Texture_Create(pCommand: static_cast<const CCommandBuffer::SCommand_Texture_Create *>(pBaseCommand));
14 break;
15 case CCommandBuffer::CMD_TEXT_TEXTURES_CREATE:
16 Cmd_TextTextures_Create(pCommand: static_cast<const CCommandBuffer::SCommand_TextTextures_Create *>(pBaseCommand));
17 break;
18 case CCommandBuffer::CMD_TEXT_TEXTURE_UPDATE:
19 Cmd_TextTexture_Update(pCommand: static_cast<const CCommandBuffer::SCommand_TextTexture_Update *>(pBaseCommand));
20 break;
21 }
22 return ERunCommandReturnTypes::RUN_COMMAND_COMMAND_HANDLED;
23}
24
25bool CCommandProcessorFragment_Null::Cmd_Init(const SCommand_Init *pCommand)
26{
27 pCommand->m_pCapabilities->m_TileBuffering = false;
28 pCommand->m_pCapabilities->m_QuadBuffering = false;
29 pCommand->m_pCapabilities->m_TextBuffering = false;
30 pCommand->m_pCapabilities->m_QuadContainerBuffering = false;
31
32 pCommand->m_pCapabilities->m_MipMapping = false;
33 pCommand->m_pCapabilities->m_NPOTTextures = false;
34 pCommand->m_pCapabilities->m_3DTextures = false;
35 pCommand->m_pCapabilities->m_2DArrayTextures = false;
36 pCommand->m_pCapabilities->m_2DArrayTexturesAsExtension = false;
37 pCommand->m_pCapabilities->m_ShaderSupport = false;
38
39 pCommand->m_pCapabilities->m_TrianglesAsQuads = false;
40
41 pCommand->m_pCapabilities->m_ContextMajor = 0;
42 pCommand->m_pCapabilities->m_ContextMinor = 0;
43 pCommand->m_pCapabilities->m_ContextPatch = 0;
44 return false;
45}
46
47void CCommandProcessorFragment_Null::Cmd_Texture_Create(const CCommandBuffer::SCommand_Texture_Create *pCommand)
48{
49 free(ptr: pCommand->m_pData);
50}
51
52void CCommandProcessorFragment_Null::Cmd_TextTextures_Create(const CCommandBuffer::SCommand_TextTextures_Create *pCommand)
53{
54 free(ptr: pCommand->m_pTextData);
55 free(ptr: pCommand->m_pTextOutlineData);
56}
57
58void CCommandProcessorFragment_Null::Cmd_TextTexture_Update(const CCommandBuffer::SCommand_TextTexture_Update *pCommand)
59{
60 free(ptr: pCommand->m_pData);
61}
62