MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / writeAlphaTest

Method writeAlphaTest

engine/source/2d/sceneobject/SceneObject.h:754–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752 static bool writeDstBlendFactor( void* obj, StringTableEntry pFieldName ) { return static_cast<SceneObject*>(obj)->getDstBlendFactor() != GL_ONE_MINUS_SRC_ALPHA; }
753 static bool writeBlendColor( void* obj, StringTableEntry pFieldName ) { return static_cast<SceneObject*>(obj)->getBlendColor() != ColorF(1.0f, 1.0f, 1.0f, 1.0f); }
754 static bool writeAlphaTest( void* obj, StringTableEntry pFieldName ) { return static_cast<SceneObject*>(obj)->getAlphaTest() >= 0.0f; }
755
756 /// Render sorting.
757 static bool writeSortPoint( void* obj, StringTableEntry pFieldName ) { return static_cast<SceneObject*>(obj)->getSortPoint().notZero(); }

Callers

nothing calls this directly

Calls 1

getAlphaTestMethod · 0.45

Tested by

no test coverage detected