Skip to content

Commit

Permalink
Merge branch 'gz-rendering7' into capsule_desc
Browse files Browse the repository at this point in the history
  • Loading branch information
iche033 authored Jun 6, 2023
2 parents 2d7f1e6 + e39e10f commit 5056784
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 14 deletions.
1 change: 1 addition & 0 deletions include/gz/rendering/GraphicsAPI.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define GZ_RENDERING_GRAPHICSAPI_HH_

#include <string>
#include <cstdint>
#include "gz/rendering/config.hh"
#include "gz/rendering/Export.hh"

Expand Down
4 changes: 2 additions & 2 deletions ogre/src/OgreNode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ void OgreNode::SetRawLocalPosition(const math::Vector3d &_position)
// the length of the position vector.
if (dynamic_cast<OgreCamera *>(this) && _position.Length() > 1e8)
{
ignerr << "Unable to set camera node position to a distance larger than "
<< "1e8 from origin" << std::endl;
gzerr << "Unable to set camera node position to a distance larger than "
<< "1e8 from origin" << std::endl;
return;
}
this->ogreNode->setPosition(OgreConversions::Convert(_position));
Expand Down
5 changes: 2 additions & 3 deletions ogre/src/OgreProjector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ std::unordered_set<std::string> OgreProjectorListener::FindVisibleMaterials()
/////////////////////////////////////////////////
void OgreProjectorListener::AddDecalToVisibleMaterials()
{
auto newVisibleMaterials = std::move(this->FindVisibleMaterials());
auto newVisibleMaterials = this->FindVisibleMaterials();

this->AddDecalToMaterials(newVisibleMaterials);
}
Expand Down Expand Up @@ -652,8 +652,7 @@ void OgreProjectorListener::SetVisibilityFlags(uint32_t _flags)
/////////////////////////////////////////////////
void OgreProjectorListener::UpdateVisibleMaterials()
{
this->visibleMaterials =
std::move(this->FindVisibleMaterials());
this->visibleMaterials = this->FindVisibleMaterials();
}

/////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion ogre/src/OgreRenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -843,5 +843,5 @@ OgreRenderEngine *OgreRenderEngine::Instance()
}

// Register this plugin
GZ_ADD_PLUGIN(OgreRenderEnginePlugin,
GZ_ADD_PLUGIN(rendering::OgreRenderEnginePlugin,
rendering::RenderEnginePlugin)
4 changes: 2 additions & 2 deletions ogre2/include/gz/rendering/ogre2/Ogre2Projector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "gz/rendering/config.hh"

#include "gz/rendering/base/BaseProjector.hh"
#include "gz/rendering/ogre/Export.hh"
#include "gz/rendering/ogre2/Export.hh"
#include "gz/rendering/ogre2/Ogre2Visual.hh"

namespace gz
Expand All @@ -33,7 +33,7 @@ namespace gz
inline namespace GZ_RENDERING_VERSION_NAMESPACE {

/// \brief Ogre 2.x implementation of a Projector class.
class GZ_RENDERING_OGRE_VISIBLE Ogre2Projector :
class GZ_RENDERING_OGRE2_VISIBLE Ogre2Projector :
public BaseProjector<Ogre2Visual>
{
/// \brief Constructor.
Expand Down
4 changes: 2 additions & 2 deletions ogre2/src/Ogre2Node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ void Ogre2Node::SetRawLocalPosition(const math::Vector3d &_position)
// the length of the position vector.
if (dynamic_cast<Ogre2Camera *>(this) && _position.Length() > 1e9)
{
ignerr << "Unable to set camera node position to a distance larger than "
<< "1e9 from origin" << std::endl;
gzerr << "Unable to set camera node position to a distance larger than "
<< "1e9 from origin" << std::endl;
return;
}
this->ogreNode->setPosition(Ogre2Conversions::Convert(_position));
Expand Down
2 changes: 0 additions & 2 deletions ogre2/src/Ogre2RayQuery.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ void Ogre2RayQuery::SetFromCamera(const CameraPtr &_camera,
//////////////////////////////////////////////////
RayQueryResult Ogre2RayQuery::ClosestPoint(bool _forceSceneUpdate)
{
RayQueryResult result;

if (!this->dataPtr->camera ||
!this->dataPtr->camera->Parent() ||
std::this_thread::get_id() != this->dataPtr->threadId)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@property( syntax != glslvk )
#version 430
@property( GL3+ >= 430 )
#version 430
@else
#version 420
#extension GL_ARB_arrays_of_arrays: enable
#extension GL_ARB_compute_shader: enable
@end
@else
#version 450
@end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
@property( syntax != glslvk )
#version 430
@property( GL3+ >= 430 )
#version 430
@else
#version 420
#extension GL_ARB_compute_shader: enable
@end
#define ogre_B0 binding = 0
#define ogre_B1 binding = 1
@else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#version 430 core
@else
#version 330 core

@property( !hlms_readonly_is_tex )
#extension GL_ARB_shader_storage_buffer_object: require
@end
@end
@end

Expand Down
1 change: 1 addition & 0 deletions ogre2/src/terrain/Terra/src/Terra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ THE SOFTWARE.

#include "Terra/TerraShadowMapper.h"
#include "Terra/Hlms/OgreHlmsTerra.h"
#include "Terra/Hlms/OgreHlmsTerraDatablock.h"

#include "OgreImage2.h"

Expand Down
1 change: 1 addition & 0 deletions src/CameraLens.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
*/

#include <functional>
#include <map>
#include <string>
#include <tuple>
Expand Down

0 comments on commit 5056784

Please sign in to comment.