2019-06-06 20:07:56 +00:00
|
|
|
#ifndef __TRACYTEXTURE_HPP__
|
|
|
|
#define __TRACYTEXTURE_HPP__
|
|
|
|
|
2020-08-15 13:02:36 +00:00
|
|
|
#include <functional>
|
|
|
|
|
2019-06-06 20:07:56 +00:00
|
|
|
namespace tracy
|
|
|
|
{
|
|
|
|
|
2022-10-15 10:56:19 +00:00
|
|
|
void InitTexture();
|
2023-04-27 19:39:49 +00:00
|
|
|
void* MakeTexture( bool zigzag = false );
|
2023-04-16 14:44:18 +00:00
|
|
|
void FreeTexture( void* tex, void(*runOnMainThread)(const std::function<void()>&, bool) );
|
2019-08-15 14:29:50 +00:00
|
|
|
void UpdateTexture( void* tex, const char* data, int w, int h );
|
2022-07-25 23:49:19 +00:00
|
|
|
void UpdateTextureRGBA( void* tex, void* data, int w, int h );
|
2023-04-29 11:10:58 +00:00
|
|
|
void UpdateTextureRGBAMips( void* tex, void** data, int* w, int* h, size_t mips );
|
2019-06-06 20:07:56 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|