mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 10:29:19 +02:00
project files cleanup
This commit is contained in:
9
EU07.cpp
9
EU07.cpp
@@ -18,8 +18,9 @@ Stele, firleju, szociu, hunter, ZiomalCl, OLI_EU and others
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
#ifdef CAN_I_HAS_LIBPNG
|
||||||
#include <png.h>
|
#include <png.h>
|
||||||
#include <thread>
|
#endif
|
||||||
|
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "Logs.h"
|
#include "Logs.h"
|
||||||
@@ -45,7 +46,8 @@ Stele, firleju, szociu, hunter, ZiomalCl, OLI_EU and others
|
|||||||
|
|
||||||
TWorld World;
|
TWorld World;
|
||||||
|
|
||||||
void screenshot_save_thread(char *img)
|
#ifdef CAN_I_HAS_LIBPNG
|
||||||
|
void screenshot_save_thread( char *img )
|
||||||
{
|
{
|
||||||
png_image png;
|
png_image png;
|
||||||
memset(&png, 0, sizeof(png_image));
|
memset(&png, 0, sizeof(png_image));
|
||||||
@@ -83,6 +85,7 @@ void make_screenshot()
|
|||||||
std::thread t(screenshot_save_thread, img);
|
std::thread t(screenshot_save_thread, img);
|
||||||
t.detach();
|
t.detach();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void window_resize_callback(GLFWwindow *window, int w, int h)
|
void window_resize_callback(GLFWwindow *window, int w, int h)
|
||||||
{
|
{
|
||||||
@@ -118,9 +121,11 @@ void key_callback( GLFWwindow *window, int key, int scancode, int action, int mo
|
|||||||
|
|
||||||
switch( key )
|
switch( key )
|
||||||
{
|
{
|
||||||
|
#ifdef CAN_I_HAS_LIBPNG
|
||||||
case GLFW_KEY_F11:
|
case GLFW_KEY_F11:
|
||||||
make_screenshot();
|
make_screenshot();
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case GLFW_KEY_ESCAPE: {
|
case GLFW_KEY_ESCAPE: {
|
||||||
|
|
||||||
if( ( DebugModeFlag ) //[Esc] pauzuje tylko bez Debugmode
|
if( ( DebugModeFlag ) //[Esc] pauzuje tylko bez Debugmode
|
||||||
|
|||||||
@@ -156,6 +156,7 @@
|
|||||||
<ClInclude Include="Console\LPT.h" />
|
<ClInclude Include="Console\LPT.h" />
|
||||||
<ClInclude Include="Console\MWD.h" />
|
<ClInclude Include="Console\MWD.h" />
|
||||||
<ClInclude Include="Console\PoKeys55.h" />
|
<ClInclude Include="Console\PoKeys55.h" />
|
||||||
|
<ClInclude Include="Data.h" />
|
||||||
<ClInclude Include="Driver.h" />
|
<ClInclude Include="Driver.h" />
|
||||||
<ClInclude Include="dumb3d.h" />
|
<ClInclude Include="dumb3d.h" />
|
||||||
<ClInclude Include="DynObj.h" />
|
<ClInclude Include="DynObj.h" />
|
||||||
|
|||||||
@@ -377,6 +377,9 @@
|
|||||||
<ClInclude Include="lightarray.h">
|
<ClInclude Include="lightarray.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="Data.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="maszyna.rc">
|
<ResourceCompile Include="maszyna.rc">
|
||||||
|
|||||||
Reference in New Issue
Block a user