Skip to content

Commit

Permalink
[v3.7.1] adjust ARModule (cocos#14143)
Browse files Browse the repository at this point in the history
* add stop interface to fix ar session error

* move armodule to .a lib and adjust interfaces

* fix parameter widthInMeters errror

* update external to v3.7.1-1
  • Loading branch information
bravetwo authored Feb 5, 2023
1 parent 2186f0e commit 2a194a2
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 678 deletions.
7 changes: 0 additions & 7 deletions native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2778,19 +2778,12 @@ endif()
##### ar module
if(USE_AR_MODULE)
cocos_source_files(
cocos/xr/ar/ARModule.cpp
cocos/xr/ar/ARModule.h
cocos/xr/ar/IARAPI.h
cocos/renderer/pipeline/xr/ar/ARStage.cpp
cocos/renderer/pipeline/xr/ar/ARStage.h
cocos/renderer/pipeline/xr/ar/ARBackground.cpp
cocos/renderer/pipeline/xr/ar/ARBackground.h
)
if(ANDROID OR IOS)
cocos_source_files(
cocos/xr/ar/ARLib.h
)
endif()
endif()

##### extensions
Expand Down
2 changes: 1 addition & 1 deletion native/cocos/renderer/pipeline/xr/ar/ARBackground.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ void ARBackground::render(cc::scene::Camera *camera, gfx::RenderPass *renderPass
}
#endif

const auto data = armodule->getCameraTexCoords();
auto data = armodule->getCameraTexCoords();
#if CC_PLATFORM == CC_PLATFORM_ANDROID
if (apiState > 1) {
float vertices[] = {-1, -1, data[2], data[3],
Expand Down
171 changes: 0 additions & 171 deletions native/cocos/xr/ar/ARLib.h

This file was deleted.

Loading

0 comments on commit 2a194a2

Please sign in to comment.