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

Function GetTextureHeight

engine/graphics/src/graphics.cpp:1962–1968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1960 return t ? t->m_Width : 0;
1961 }
1962 uint16_t GetTextureHeight(HContext context, HTexture texture)
1963 {
1964 GraphicsContext* gc = (GraphicsContext*)context;
1965 DM_MUTEX_OPTIONAL_SCOPED_LOCK(gc->m_AssetHandleContainerMutex);
1966 const Texture* t = GetAssetFromContainer<Texture>(gc->m_AssetHandleContainer, texture);
1967 return t ? t->m_Height : 0;
1968 }
1969 uint16_t GetTextureDepth(HContext context, HTexture texture)
1970 {
1971 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