mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Updated screenshots.
This commit is contained in:
parent
0ed2edc7b3
commit
4061d19963
4 changed files with 15 additions and 2 deletions
Binary file not shown.
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 35 KiB |
Binary file not shown.
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 99 KiB |
|
@ -417,7 +417,7 @@ namespace entry
|
|||
Key::Enum key = translateKey(_wparam);
|
||||
|
||||
if (Key::Print == key
|
||||
&& 0x3 == (_lparam>>30) )
|
||||
&& 0x3 == ( (uint32_t)(_lparam)>>30) )
|
||||
{
|
||||
// VK_SNAPSHOT doesn't generate keydown event. Fire on down event when previous
|
||||
// key state bit is set to 1 and transition state bit is set to 1.
|
||||
|
|
15
src/bgfx.cpp
15
src/bgfx.cpp
|
@ -97,8 +97,21 @@ namespace bgfx
|
|||
{
|
||||
}
|
||||
|
||||
virtual void screenShot(const char* /*_filePath*/, uint32_t /*_width*/, uint32_t /*_height*/, uint32_t /*_pitch*/, const void* /*_data*/, uint32_t /*_size*/, bool /*_yflip*/) BX_OVERRIDE
|
||||
virtual void screenShot(const char* _filePath, uint32_t _width, uint32_t _height, uint32_t _pitch, const void* _data, uint32_t _size, bool _yflip) BX_OVERRIDE
|
||||
{
|
||||
BX_UNUSED(_filePath, _width, _height, _pitch, _data, _size, _yflip);
|
||||
#if 0
|
||||
char* filePath = (char*)alloca(strlen(_filePath)+5);
|
||||
strcpy(filePath, _filePath);
|
||||
strcat(filePath, ".tga");
|
||||
|
||||
bx::CrtFileWriter writer;
|
||||
if (0 == writer.open(filePath) )
|
||||
{
|
||||
imageWriteTga(&writer, _width, _height, _pitch, _data, false, _yflip);
|
||||
writer.close();
|
||||
}
|
||||
#endif // 0
|
||||
}
|
||||
|
||||
virtual void captureBegin(uint32_t /*_width*/, uint32_t /*_height*/, uint32_t /*_pitch*/, TextureFormat::Enum /*_format*/, bool /*_yflip*/) BX_OVERRIDE
|
||||
|
|
Loading…
Reference in a new issue