1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add C API for plots and messages.

This commit is contained in:
Bartosz Taudul
2019-06-24 20:54:43 +02:00
parent 48e08acb62
commit c749a2e3fe
2 changed files with 44 additions and 0 deletions
+25
View File
@@ -2284,6 +2284,31 @@ void ___tracy_emit_frame_image( void* image, uint16_t w, uint16_t h, uint8_t off
tracy::Profiler::SendFrameImage( image, w, h, offset, flip );
}
void ___tracy_emit_plot( const char* name, double val )
{
tracy::Profiler::PlotData( name, val );
}
void ___tracy_emit_message( const char* txt, size_t size )
{
tracy::Profiler::Message( txt, size );
}
void ___tracy_emit_messageL( const char* txt )
{
tracy::Profiler::Message( txt );
}
void ___tracy_emit_messageC( const char* txt, size_t size, uint32_t color )
{
tracy::Profiler::MessageColor( txt, size, color );
}
void ___tracy_emit_messageLC( const char* txt, uint32_t color )
{
tracy::Profiler::MessageColor( txt, color );
}
#ifdef __cplusplus
}
#endif