MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / init

Method init

Engine/source/materials/matInstance.cpp:278–290  ·  view source on GitHub ↗

---------------------------------------------------------------------------- Init ----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

276// Init
277//----------------------------------------------------------------------------
278bool MatInstance::init( const FeatureSet &features,
279 const GFXVertexFormat *vertexFormat )
280{
281 AssertFatal( vertexFormat, "MatInstance::init - Got null vertex format!" );
282
283 mFeatureList = features;
284 mVertexFormat = vertexFormat;
285
286 SAFE_DELETE(mProcessedMaterial);
287 mIsValid = processMaterial();
288
289 return mIsValid;
290}
291
292
293//----------------------------------------------------------------------------

Callers 6

initMatInstancesMethod · 0.45
processMaterialMethod · 0.45
_createShaderMethod · 0.45
createMatInstanceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected