Compare commits

...
2 Commits
Author SHA1 Message Date
Ling ZhanandGitHub e1afa91277 update box2dwasm (#413) 2023-08-31 14:19:19 +08:00
qiuguohuaandGitHub 24253d9b2e SDL use static libraries (#409) 2023-08-25 15:18:31 +08:00
9 changed files with 8156 additions and 7867 deletions
+9
View File
@@ -185,6 +185,7 @@ declare namespace B2 {
GetFilterData(): Filter;
Refilter(): void;
GetBody(): Body;
GetNext(): Fixture;
TestPoint(p: Vec2): boolean;
RayCast(output: RayCastOutput, input: RayCastInput, childIndex: number): boolean;
GetMassData(massData: MassData): void;
@@ -272,6 +273,8 @@ declare namespace B2 {
IsEnabled(): boolean;
SetFixedRotation(flag: boolean): void;
IsFixedRotation(): boolean;
GetFixtureList(): Fixture;
GetJointList(): number;
GetWorld(): World;
Dump(): void;
}
@@ -572,4 +575,10 @@ declare namespace B2 {
function ContactImpulseGetNormalImpulse(contactImpulsePtr: number, index: number): number;
function ContactImpulseGetTangentImpulse(contactImpulsePtr: number, index: number): number;
function ContactImpulseGetCount(contactImpulsePtr: number): number;
//JointEdge
function JointEdgeGetOther(jointEdgePtr: number): number;
function JointEdgeGetJoint(jointEdgePtr: number): number;
function JointEdgeGetPrev(jointEdgePtr: number): number;
function JointEdgeGetNext(jointEdgePtr: number): number;
}
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
+4 -1
View File
@@ -83,7 +83,7 @@ set_target_properties(GLESv2 PROPERTIES
add_library(SDL2 SHARED IMPORTED GLOBAL)
set_target_properties(SDL2 PROPERTIES
IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libSDL2-2.0.0.dylib
IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libSDL2.a
)
set(se_libs_name)
@@ -211,6 +211,9 @@ list(APPEND CC_EXTERNAL_LIBS
webp
curl
SDL2
# sdl2 depends on the following two libraries.
"-framework IOKit"
"-framework Carbon"
${glslang_libs_name}
${spirv-cross_libs_name}
${tbb_libs_name}
Binary file not shown.
Binary file not shown.