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

Method DrawToHostBitmap

trinity/Font/Tr2FontMeasurer.cpp:543–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543void Tr2FontMeasurer::DrawToHostBitmap( Tr2HostBitmap* hostBitmap )
544{
545 CCP_STATS_ZONE( __FUNCTION__ );
546
547 if( !hostBitmap || !hostBitmap->IsValid() || GetBytesPerPixel( hostBitmap->GetFormat() ) != 4 )
548 {
549 return;
550 }
551
552 DrawToBuffer( hostBitmap->GetWidth(),
553 hostBitmap->GetHeight(),
554 hostBitmap->GetRawData(),
555 hostBitmap->GetPitch() );
556}
557
558bool Tr2FontMeasurer::HasCommittedText()
559{

Callers

nothing calls this directly

Calls 4

IsValidMethod · 0.45
GetFormatMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected