Updated screenshots.

This commit is contained in:
bkaradzic 2014-01-13 20:36:33 -08:00
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

View file

@ -417,7 +417,7 @@ namespace entry
Key::Enum key = translateKey(_wparam); Key::Enum key = translateKey(_wparam);
if (Key::Print == key 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 // 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. // key state bit is set to 1 and transition state bit is set to 1.

View file

@ -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 virtual void captureBegin(uint32_t /*_width*/, uint32_t /*_height*/, uint32_t /*_pitch*/, TextureFormat::Enum /*_format*/, bool /*_yflip*/) BX_OVERRIDE