mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
commit
0568dc983e
9 changed files with 10 additions and 6 deletions
|
@ -164,6 +164,7 @@ void OculusManager::connect() {
|
||||||
int configResult = ovrHmd_ConfigureRendering(_ovrHmd, &cfg.Config,
|
int configResult = ovrHmd_ConfigureRendering(_ovrHmd, &cfg.Config,
|
||||||
distortionCaps, _eyeFov, _eyeRenderDesc);
|
distortionCaps, _eyeFov, _eyeRenderDesc);
|
||||||
assert(configResult);
|
assert(configResult);
|
||||||
|
(void)configResult; // quiet warning
|
||||||
|
|
||||||
|
|
||||||
_recommendedTexSize = ovrHmd_GetFovTextureSize(_ovrHmd, ovrEye_Left, _eyeFov[ovrEye_Left], 1.0f);
|
_recommendedTexSize = ovrHmd_GetFovTextureSize(_ovrHmd, ovrEye_Left, _eyeFov[ovrEye_Left], 1.0f);
|
||||||
|
|
|
@ -95,6 +95,7 @@ bool DeleteEntityOperator::preRecursion(OctreeElement* element) {
|
||||||
EntityItemPointer theEntity = details.entity;
|
EntityItemPointer theEntity = details.entity;
|
||||||
bool entityDeleted = entityTreeElement->removeEntityItem(theEntity); // remove it from the element
|
bool entityDeleted = entityTreeElement->removeEntityItem(theEntity); // remove it from the element
|
||||||
assert(entityDeleted);
|
assert(entityDeleted);
|
||||||
|
(void)entityDeleted; // quite warning
|
||||||
_tree->setContainingElement(details.entity->getEntityItemID(), NULL); // update or id to element lookup
|
_tree->setContainingElement(details.entity->getEntityItemID(), NULL); // update or id to element lookup
|
||||||
_foundCount++;
|
_foundCount++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -270,7 +270,9 @@ void MeshMassProperties::computeMassProperties(const VectorOfPoints& points, con
|
||||||
}
|
}
|
||||||
|
|
||||||
// create some variables to hold temporary results
|
// create some variables to hold temporary results
|
||||||
|
#ifdef DEBUG
|
||||||
uint32_t numPoints = points.size();
|
uint32_t numPoints = points.size();
|
||||||
|
#endif
|
||||||
const btVector3 p0(0.0f, 0.0f, 0.0f);
|
const btVector3 p0(0.0f, 0.0f, 0.0f);
|
||||||
btMatrix3x3 tetraInertia;
|
btMatrix3x3 tetraInertia;
|
||||||
btMatrix3x3 doubleDebugInertia;
|
btMatrix3x3 doubleDebugInertia;
|
||||||
|
|
|
@ -451,7 +451,6 @@ TextRenderer3D::TextRenderer3D(const char* family, float pointSize, int weight,
|
||||||
EffectType effect, int effectThickness, const QColor& color) :
|
EffectType effect, int effectThickness, const QColor& color) :
|
||||||
_effectType(effect),
|
_effectType(effect),
|
||||||
_effectThickness(effectThickness),
|
_effectThickness(effectThickness),
|
||||||
_pointSize(pointSize),
|
|
||||||
_color(toGlm(color)),
|
_color(toGlm(color)),
|
||||||
_font(loadFont3D(family)) {
|
_font(loadFont3D(family)) {
|
||||||
if (!_font) {
|
if (!_font) {
|
||||||
|
|
|
@ -65,8 +65,6 @@ private:
|
||||||
// the thickness of the effect
|
// the thickness of the effect
|
||||||
const int _effectThickness;
|
const int _effectThickness;
|
||||||
|
|
||||||
const float _pointSize;
|
|
||||||
|
|
||||||
// text color
|
// text color
|
||||||
const glm::vec4 _color;
|
const glm::vec4 _color;
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,9 @@ public:
|
||||||
|
|
||||||
template <typename Function>
|
template <typename Function>
|
||||||
void withPush(Function f) {
|
void withPush(Function f) {
|
||||||
|
#ifdef DEBUG
|
||||||
size_t startingDepth = size();
|
size_t startingDepth = size();
|
||||||
|
#endif
|
||||||
push();
|
push();
|
||||||
f();
|
f();
|
||||||
pop();
|
pop();
|
||||||
|
|
|
@ -55,7 +55,7 @@ const int16_t COLLISION_GROUP_COLLISIONLESS = 1 << 15;
|
||||||
const int16_t COLLISION_MASK_DEFAULT = ~ COLLISION_GROUP_COLLISIONLESS;
|
const int16_t COLLISION_MASK_DEFAULT = ~ COLLISION_GROUP_COLLISIONLESS;
|
||||||
|
|
||||||
// STATIC also doesn't collide with other STATIC
|
// STATIC also doesn't collide with other STATIC
|
||||||
const int16_t COLLISION_MASK_STATIC = ~ (COLLISION_GROUP_COLLISIONLESS | COLLISION_MASK_STATIC);
|
const int16_t COLLISION_MASK_STATIC = ~ (COLLISION_GROUP_COLLISIONLESS | COLLISION_GROUP_STATIC);
|
||||||
|
|
||||||
const int16_t COLLISION_MASK_KINEMATIC = COLLISION_MASK_DEFAULT;
|
const int16_t COLLISION_MASK_KINEMATIC = COLLISION_MASK_DEFAULT;
|
||||||
|
|
||||||
|
|
|
@ -135,8 +135,8 @@ void VrMenu::setRootMenu(QObject* rootMenu) {
|
||||||
|
|
||||||
void VrMenu::addMenu(QMenu* menu) {
|
void VrMenu::addMenu(QMenu* menu) {
|
||||||
Q_ASSERT(!MenuUserData::forObject(menu));
|
Q_ASSERT(!MenuUserData::forObject(menu));
|
||||||
QObject * parent = menu->parent();
|
QObject* parent = menu->parent();
|
||||||
QObject * qmlParent;
|
QObject* qmlParent = nullptr;
|
||||||
if (dynamic_cast<QMenu*>(parent)) {
|
if (dynamic_cast<QMenu*>(parent)) {
|
||||||
MenuUserData* userData = MenuUserData::forObject(parent);
|
MenuUserData* userData = MenuUserData::forObject(parent);
|
||||||
qmlParent = findMenuObject(userData->uuid.toString());
|
qmlParent = findMenuObject(userData->uuid.toString());
|
||||||
|
|
|
@ -322,6 +322,7 @@ VHACDUtilApp::VHACDUtilApp(int argc, char* argv[]) :
|
||||||
QString outputFileName = baseFileName + "-" + QString::number(count) + ".obj";
|
QString outputFileName = baseFileName + "-" + QString::number(count) + ".obj";
|
||||||
writeOBJ(outputFileName, fbx, outputCentimeters, count);
|
writeOBJ(outputFileName, fbx, outputCentimeters, count);
|
||||||
count++;
|
count++;
|
||||||
|
(void)meshPart; // quiet warning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue