This commit is contained in:
halx99 2024-12-04 23:16:51 +08:00
parent 3622291768
commit 294f0d6646
2 changed files with 3 additions and 6 deletions

View File

@ -51,8 +51,7 @@ function(ax_link_cxx_prebuilt APP_NAME AX_ROOT_DIR AX_PREBUILT_DIR)
PRIVATE NOUNCRYPT=1
PRIVATE P2T_STATIC_EXPORTS=1
PRIVATE BT_USE_SSE_IN_API=1
PRIVATE CP_USE_DOUBLES=0
PRIVATE CP_USE_CGTYPES=0
PRIVATE YASIO_SSL_BACKEND=1
)
ax_config_pred(${APP_NAME} AX_USE_ALSOFT)
@ -66,7 +65,7 @@ function(ax_link_cxx_prebuilt APP_NAME AX_ROOT_DIR AX_PREBUILT_DIR)
ax_config_pred(${APP_NAME} AX_ENABLE_CONSOLE)
if (AX_ISA_SIMD MATCHES "sse")
target_compile_definitions(${APP_NAME} PRIVATE AX_USE_SSE=1)
target_compile_definitions(${APP_NAME} PRIVATE AX_SSE_INTRINSICS=1)
endif()
if (BUILD_SHARED_LIBS)
@ -90,7 +89,6 @@ function(ax_link_cxx_prebuilt APP_NAME AX_ROOT_DIR AX_PREBUILT_DIR)
PRIVATE ${AX_ROOT_DIR}/3rdparty/freetype/include
PRIVATE ${AX_ROOT_DIR}/3rdparty/glfw/include/GLFW
PRIVATE ${AX_ROOT_DIR}/3rdparty/box2d/include
PRIVATE ${AX_ROOT_DIR}/3rdparty/chipmunk/include
PRIVATE ${AX_ROOT_DIR}/${AX_PREBUILT_DIR}/engine/3rdparty/freetype/include
PRIVATE ${AX_ROOT_DIR}/3rdparty/webp/src/webp
PRIVATE ${AX_ROOT_DIR}/3rdparty/pugixml
@ -135,7 +133,6 @@ function(ax_link_cxx_prebuilt APP_NAME AX_ROOT_DIR AX_PREBUILT_DIR)
set(LIBS
axmol
box2d
chipmunk
freetype
webp
pugixml

View File

@ -133,7 +133,7 @@ bool MainScene::init()
drawNode->setPosition(Vec2(0, 0));
addChild(drawNode);
drawNode->drawRect(safeArea.origin + Vec2(1, 1), safeArea.origin + safeArea.size, Color4B::BLUE);
drawNode->drawRect(safeArea.origin + Vec2(1, 1), safeArea.origin + safeArea.size, Color::BLUE);
}
// scheduleUpdate() is required to ensure update(float) is called on every loop