##

rendering/Material.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef _RENDERING_MATERIAL_HH_
#define _RENDERING_MATERIAL_HH_
#include <string>
#include <ignition/math/Color.hh>
#include "gazebo/common/Material.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace rendering
{
class GZ_RENDERING_VISIBLE Material
{
public: static void CreateMaterials();
public: static void Update(const gazebo::common::Material *_mat);
public: static bool GetMaterialAsColor(const std::string &_materialName,
common::Color &_ambient, common::Color &_diffuse,
common::Color &_specular, common::Color &_emissive)
GAZEBO_DEPRECATED(9.0);
public: static bool MaterialAsColor(const std::string &_materialName,
ignition::math::Color &_ambient, ignition::math::Color &_diffuse,
ignition::math::Color &_specular, ignition::math::Color &_emissive);
};
}
}
#endif
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
system.hh
rendering
rendering
Definition: RenderEngine.hh:31
gazebo::common::Material
Encapsulates description of a material.
Definition: common/Material.hh:35
Material.hh
GAZEBO_DEPRECATED
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:328