Add frame images to test application.

This commit is contained in:
Bartosz Taudul 2019-06-13 01:53:47 +02:00
parent 2eb67b4684
commit 5c1bae812a
2 changed files with 7555 additions and 0 deletions

7547
test/stb_image.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,10 @@
#include "../Tracy.hpp"
#include "../common/TracySystem.hpp"
#define STB_IMAGE_IMPLEMENTATION
#define STBI_ONLY_JPEG
#include "stb_image.h"
struct static_init_test_t
{
static_init_test_t()
@ -297,6 +301,9 @@ int main()
tracy::SetThreadName( t21, "Deadlock test 1" );
tracy::SetThreadName( t22, "Deadlock test 2" );
int x, y;
auto image = stbi_load( "image.jpg", &x, &y, nullptr, 4 );
for(;;)
{
TracyMessageL( "Tick" );
@ -305,6 +312,7 @@ int main()
ZoneScoped;
std::this_thread::sleep_for( std::chrono::milliseconds( 2 ) );
}
FrameImage( image, x, y, 0, false );
FrameMark;
}
}