MCPcopy Create free account
hub / github.com/carbonengine/trinity / Create

Method Create

trinity/Tr2ImpostorManager.cpp:180–192  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Script-exposed create method. Re-creates the atlas and rendering resources. Arguments: width - Atlas width height - Atlas height itemWidth - Billboard width itemHeight - Billboard height --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

178// itemHeight - Billboard height
179// --------------------------------------------------------------------------------------
180void Tr2ImpostorManager::Create(
181 Be::OptionalWithDefaultValue<uint32_t, 1024> width,
182 Be::OptionalWithDefaultValue<uint32_t, 1024> height,
183 Be::OptionalWithDefaultValue<uint32_t, 16> itemWidth,
184 Be::OptionalWithDefaultValue<uint32_t, 16> itemHeight )
185{
186 m_width = width;
187 m_height = height;
188 m_itemWidth = itemWidth;
189 m_itemHeight = itemHeight;
190
191 Initialize();
192}
193
194// --------------------------------------------------------------------------------------
195// Description:

Callers 1

OnPrepareResourcesMethod · 0.45

Calls 1

InitializeFunction · 0.50

Tested by

no test coverage detected