aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick3dphysics/qstaticphysxobjects.cpp
blob: 60ddbfebd4bcdc8f07aea198a3826e7a658c1db0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include "qstaticphysxobjects_p.h"
#include <qassert.h>
#include <QGlobalStatic>
#include <new>

QT_BEGIN_NAMESPACE

Q_GLOBAL_STATIC(StaticPhysXObjects, s_physx);

StaticPhysXObjects &StaticPhysXObjects::getReference()
{
    return *s_physx;
}

QT_END_NAMESPACE