MCPcopy Create free account
hub / github.com/defold/defold / GetTextureWidth

Function GetTextureWidth

engine/graphics/src/graphics.cpp:1955–1961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1953 height = params ? params->m_Height : 0;
1954 }
1955 uint16_t GetTextureWidth(HContext context, HTexture texture)
1956 {
1957 GraphicsContext* gc = (GraphicsContext*)context;
1958 DM_MUTEX_OPTIONAL_SCOPED_LOCK(gc->m_AssetHandleContainerMutex);
1959 const Texture* t = GetAssetFromContainer<Texture>(gc->m_AssetHandleContainer, texture);
1960 return t ? t->m_Width : 0;
1961 }
1962 uint16_t GetTextureHeight(HContext context, HTexture texture)
1963 {
1964 GraphicsContext* gc = (GraphicsContext*)context;

Callers 10

CreateFontRenderBatchFunction · 0.85
PushTextureInfoFunction · 0.85
AcquireResourcesFunction · 0.85
TEST_FFunction · 0.85
MakeTextureSetFromLuaFunction · 0.85
GetAtlasFunction · 0.85
TEST_FFunction · 0.85
CheckTextureMethod · 0.85

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
CheckTextureMethod · 0.68