changes
This commit is contained in:
parent
0330316aca
commit
d62faea65d
@ -1,21 +1,24 @@
|
||||
#include "include/Engine.h"
|
||||
#include "main_code.h"
|
||||
|
||||
TAndroidApplication* App = NULL;
|
||||
TMyApplication* App;
|
||||
|
||||
|
||||
extern "C" void AppInit()
|
||||
{
|
||||
App = new TAndroidApplication;
|
||||
//App->OuterInit(320, 480, 320, 480);
|
||||
CreateEngine();
|
||||
App = new TMyApplication;
|
||||
App->OuterInit(480, 320, 480, 320);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extern "C" void AppDeinit()
|
||||
{
|
||||
|
||||
App->OuterDeinit();
|
||||
delete App;
|
||||
DestroyEngine();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -41,9 +44,12 @@ extern "C" void AppOnTapUp(int posx, int posy)
|
||||
App->OuterOnTapUp(vec2(posx, posy));
|
||||
}
|
||||
|
||||
extern "C" void AppOnTapUpAfterScroll(int posx, int posy)
|
||||
{
|
||||
App->OuterOnTapUpAfterShift(vec2(posx, posy));
|
||||
}
|
||||
|
||||
extern "C" void AppOnScroll(int shiftx, int shifty)
|
||||
{
|
||||
App->OuterOnMove(vec2(shiftx, shifty));
|
||||
}
|
||||
|
||||
|
||||
|
@ -33,7 +33,7 @@ ZIP_PATH = $(LibsPathCygwin)/julienr-libzip-android/jni
|
||||
|
||||
#====== ENGINE AND LIBS =====================
|
||||
|
||||
include $(ENGINE_PATH)/Android_Engine.mk
|
||||
include $(ENGINE_PATH)/Android_Salmon_Engine.mk
|
||||
|
||||
#================= THE GAME =======================
|
||||
|
||||
@ -42,12 +42,13 @@ LOCAL_PATH:= $(LPATH)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_CFLAGS := -DTARGET_ANDROID -DTARGET_HALIBUT -std=gnu++11
|
||||
LOCAL_CFLAGS := -DTARGET_ANDROID -std=gnu++11 --std=c++11
|
||||
LOCAL_STATIC_LIBRARIES := boost
|
||||
LOCAL_STATIC_LIBRARIES += squirrel
|
||||
LOCAL_STATIC_LIBRARIES += png_lib
|
||||
LOCAL_STATIC_LIBRARIES += zip
|
||||
LOCAL_SHARED_LIBRARIES := HalibutEngine
|
||||
LOCAL_SHARED_LIBRARIES := SalmonEngine
|
||||
LOCAL_SHARED_LIBRARIES += gnustl_shared
|
||||
LOCAL_C_INCLUDES := $(ENGINE_PATH)
|
||||
LOCAL_C_INCLUDES += $(BOOST_PATH)
|
||||
LOCAL_C_INCLUDES += $(VORBIS_PATH)/include
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -53,7 +53,7 @@
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;TARGET_WIN32;TARGET_SALMON;_WIN32_WINNT=0x0501;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;TARGET_WIN32;_WIN32_WINNT=0x0501;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(SalmonEnginePath);$(LibsPath)\boost_1_52_0;$(LibsPath)\libogg-1.3.0\include;$(LibsPath)\libvorbis-1.3.2\include;$(LibsPath)\sqplus\sqplus;$(LibsPath)\sqplus\include;$(LibsPath)\DirectXsdk\Include;$(LibsPath)\lpng1510;$(SolutionDir)\..\..\jni;</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
@ -72,7 +72,7 @@
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;TARGET_WIN32;TARGET_SALMON;_WIN32_WINNT=0x0501;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;TARGET_WIN32;_WIN32_WINNT=0x0501;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(SalmonEnginePath);$(LibsPath)\boost_1_52_0;$(LibsPath)\libogg-1.3.0\include;$(LibsPath)\libvorbis-1.3.2\include;$(LibsPath)\sqplus\sqplus;$(LibsPath)\sqplus\include;$(LibsPath)\DirectXsdk\Include;$(LibsPath)\lpng1510;$(SolutionDir)\..\..\jni;</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
|
Loading…
Reference in New Issue
Block a user