Home
last modified time | relevance | path

Searched refs:MCWorld (Results 1 – 19 of 19) sorted by relevance

/dports/games/dustrac/DustRacing2D-ae380b8/src/game/MiniCore/src/Core/
H A Dmcworld.cc43 MCWorld * MCWorld::m_instance = nullptr;
53 MCWorld::MCWorld() in MCWorld() function in MCWorld
69 if (!MCWorld::m_instance) in MCWorld()
83 MCWorld::~MCWorld() in ~MCWorld()
130 bool MCWorld::hasInstance() in hasInstance()
135 MCWorld & MCWorld::instance() in instance()
146 void MCWorld::clear() in clear()
170 void MCWorld::setDimensions( in setDimensions()
278 float MCWorld::minX() const in minX()
283 float MCWorld::maxX() const in maxX()
[all …]
H A Dmcworld.hh52 class MCWorld class
58 MCWorld();
61 virtual ~MCWorld();
64 static MCWorld & instance();
187 DISABLE_COPY(MCWorld);
188 DISABLE_ASSI(MCWorld);
189 DISABLE_MOVE(MCWorld);
205 static MCWorld * m_instance;
223 MCWorld::ObjectVector m_objects;
225 MCWorld::ObjectVector m_removeObjs;
H A Dmcobject.cc86 MCWorld::instance().addObject(m_this); in addToWorld()
90 MCWorld::instance().addObject(*child); in addToWorld()
96 MCWorld::instance().addObject(m_this); in addToWorld()
100 MCWorld::instance().addObject(*child); in addToWorld()
108 if (MCWorld::hasInstance()) in removeFromWorld()
110 MCWorld::instance().removeObject(m_this); in removeFromWorld()
121 if (MCWorld::hasInstance()) in removeFromWorldNow()
123 MCWorld::instance().removeObjectNow(m_this); in removeFromWorldNow()
558 const MCWorld & world = MCWorld::instance(); in checkXBoundariesAndSendEvent()
573 const MCWorld & world = MCWorld::instance(); in checkYBoundariesAndSendEvent()
[all …]
H A Dmcobject.hh333 friend class MCWorld;
/dports/games/dustrac/DustRacing2D-ae380b8/src/game/MiniCore/src/UnitTests/MCWorldTest/
H A DMCWorldTest.cpp60 MCWorld world; in testAddToWorld()
84 QVERIFY(MCWorld::hasInstance() == false); in testInstance()
86 MCWorld world; in testInstance()
87 QVERIFY(MCWorld::hasInstance() == true); in testInstance()
88 QVERIFY(&MCWorld::instance() == &world); in testInstance()
90 QVERIFY(MCWorld::hasInstance() == false); in testInstance()
103 MCWorld world; in testSetDimensions()
118 MCWorld world; in testCollisionEvent_RectRect()
170 MCWorld world; in testCollisionEvent_RectCircle()
222 MCWorld world; in testCollisionEvent_CircleCircle()
[all …]
/dports/games/dustrac/DustRacing2D-ae380b8/src/game/MiniCore/src/UnitTests/MCObjectTest/
H A DMCObjectTest.cpp74 MCWorld world; in testAddChildren()
109 MCWorld world; in testRemoveChildren()
139 MCWorld world; in testAddToWorld()
159 MCWorld world; in testAngularVelocityAndSleep()
188 MCWorld world; in testAngularVelocityIntegration()
246 MCWorld world; in testDelete()
258 MCWorld world; in testChildRotate()
317 MCWorld world; in testChildTranslate()
346 MCWorld world; in testCollisionLayer()
388 MCWorld world; in testLinearDamping()
[all …]
/dports/games/dustrac/DustRacing2D-ae380b8/src/game/MiniCore/src/UnitTests/MCForceRegistryTest/
H A DMCForceRegistryTest.cpp63 MCWorld world; in testAddUpdateRemove()
85 MCWorld world; in testAddUpdateRemoveMulti()
121 MCWorld world; in testUpdateWithEnable()
140 MCWorld world; in testClear()
/dports/games/dustrac/DustRacing2D-ae380b8/src/game/
H A Dscene.hpp40 class MCWorld;
62 Scene(Game & game, StateMachine & stateMachine, Renderer & renderer, MCWorld & world);
172 MCWorld & m_world;
H A Dtire.cpp56 …ire) * (m_isOffTrack ? m_offTrackFriction : m_friction) * m_spinCoeff * -MCWorld::instance().gravi… in onStepTime()
63 …v * 0.5f * (m_isOffTrack ? m_offTrackFriction : m_friction) * -MCWorld::instance().gravity().k() *… in onStepTime()
H A Dscene.cpp84 Scene::Scene(Game & game, StateMachine & stateMachine, Renderer & renderer, MCWorld & world) in Scene()
152 auto & glScene = MCWorld::instance().renderer().glScene(); in initializeComponents()
295 auto & glScene = MCWorld::instance().renderer().glScene(); in updateFrame()
617 auto & glScene = MCWorld::instance().renderer().glScene(); in renderTrack()
645 MCWorld::instance().renderer().glScene().setSplitType(MCGLScene::ShowFullScreen); in renderMenu()
655 MCWorld::instance().renderer().glScene().setSplitType(MCGLScene::ShowFullScreen); in renderMenu()
676 MCWorld::instance().renderer().glScene().setSplitType(MCGLScene::ShowFullScreen); in renderCommonHUD()
706 auto & glScene = MCWorld::instance().renderer().glScene(); in renderHUD()
754 auto & glScene = MCWorld::instance().renderer().glScene(); in renderWorld()
H A Dcar.cpp154 MCWorld::instance().forceRegistry().addForceGenerator(m_onTrackFriction, *this); in initForceGenerators()
158 MCWorld::instance().forceRegistry().addForceGenerator(drag, *this); in initForceGenerators()
192 …physicsComponent().mass() * m_desc.accelerationFriction * std::fabs(MCWorld::instance().gravity().… in accelerate()
534 MCWorld::instance().forceRegistry().removeForceGenerators(*this); in ~Car()
H A Dparticlefactory.cpp236 mud->physicsComponent().setAcceleration(MCWorld::instance().gravity()); in doMud()
249 sparkle->physicsComponent().setAcceleration(MCWorld::instance().gravity() * 0.5f); in doSparkle()
H A Dgame.hpp201 MCWorld * m_world;
H A Dgame.cpp82 , m_world(new MCWorld) in Game()
/dports/games/dustrac/DustRacing2D-ae380b8/src/game/MiniCore/src/Physics/
H A Dmcfrictiongenerator.cc31 : m_coeffLinTot(std::fabs(coeffLin * MCWorld::instance().gravity().k())) in MCFrictionGenerator()
32 , m_coeffRotTot(std::fabs(coeffRot * MCWorld::instance().gravity().k() * ROTATION_DECAY)) in MCFrictionGenerator()
H A Dmcphysicscomponent.cc269 MCWorld::instance().removeObjectFromIntegration(object()); in toggleSleep()
273 MCWorld::instance().restoreObjectToIntegration(object()); in toggleSleep()
H A Dmcimpulsegenerator.cc78 const MCVector3dF armA = (contactPoint - pa.location()) * MCWorld::metersPerUnit(); in generateImpulsesFromContact()
/dports/games/dustrac/DustRacing2D-ae380b8/src/game/MiniCore/src/Graphics/
H A Dmcworldrenderer.cc53 for (auto && object : MCWorld::instance().objectGrid().getObjectsWithinBBox(camera->bbox())) in buildObjectBatches()
/dports/games/dustrac/DustRacing2D-ae380b8/src/game/menu/
H A Dtrackselectionmenu.cpp300 … << static_cast<int>(m_track->trackData().route().geometricLength() * MCWorld::metersPerUnit()); in renderTrackProperties()