MCPcopy Create free account
hub / github.com/ddnet/ddnet / LoadTextureCreateCommand

Function LoadTextureCreateCommand

src/engine/client/graphics_threaded.cpp:397–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397static CCommandBuffer::SCommand_Texture_Create LoadTextureCreateCommand(int TextureId, size_t Width, size_t Height, int Flags)
398{
399 CCommandBuffer::SCommand_Texture_Create Cmd;
400 Cmd.m_Slot = TextureId;
401 Cmd.m_Width = Width;
402 Cmd.m_Height = Height;
403
404 Cmd.m_Flags = 0;
405 if((Flags & IGraphics::TEXLOAD_TO_2D_ARRAY_TEXTURE) != 0)
406 Cmd.m_Flags |= TextureFlag::TO_2D_ARRAY_TEXTURE;
407 if((Flags & IGraphics::TEXLOAD_TO_3D_TEXTURE) != 0)
408 Cmd.m_Flags |= TextureFlag::TO_3D_TEXTURE;
409 if((Flags & IGraphics::TEXLOAD_NO_2D_TEXTURE) != 0)
410 Cmd.m_Flags |= TextureFlag::NO_2D_TEXTURE;
411
412 return Cmd;
413}
414
415IGraphics::CTextureHandle CGraphics_Threaded::LoadTextureRaw(const CImageInfo &Image, int Flags, const char *pTexName)
416{

Callers 2

LoadTextureRawMethod · 0.85
LoadTextureRawMoveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected