ofs | hex dump | ascii |
---|
0000 | 42 42 33 44 1d 33 00 00 01 00 00 00 54 45 58 53 36 00 00 00 61 64 76 74 72 61 69 6e 73 5f 72 65 | BB3D.3......TEXS6...advtrains_re |
0020 | 74 72 6f 73 69 67 6e 61 6c 2e 70 6e 67 00 01 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 | trosignal.png................... |
0040 | 80 3f 00 00 80 3f 00 00 00 00 42 52 55 53 2e 00 00 00 01 00 00 00 42 72 75 73 68 2e 30 30 31 00 | .?...?....BRUS........Brush.001. |
0060 | 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 | ...?...?...?...?................ |
0080 | 4e 4f 44 45 9d 32 00 00 43 75 62 65 2e 30 30 30 00 00 00 80 b0 00 00 00 00 00 00 00 00 00 00 80 | NODE.2..Cube.000................ |
00a0 | 3f 00 00 80 3f 00 00 80 3f b4 d3 e9 3e 33 9e 2f be 59 28 4f bf 84 a2 a7 3e 4d 45 53 48 64 32 00 | ?...?...?...>3./.Y(O....>MESHd2. |
00c0 | 00 ff ff ff ff 56 52 54 53 8c 2b 00 00 01 00 00 00 01 00 00 00 02 00 00 00 e3 35 af bd 39 fa ba | .....VRTS.+...............5..9.. |
00e0 | 3f be 50 76 bf 28 cd 13 bf 28 cd 13 bf 28 cd 13 3f 98 e5 52 3f f6 af 5f 3f e3 35 af bd 39 fa ba | ?.Pv.(...(...(..?..R?.._?.5..9.. |
0100 | 3f 0c c6 3b c/*
Minetest
Copyright (C) 2010-2014 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef WIELDMESH_HEADER
#define WIELDMESH_HEADER
#include "irrlichttypes_extrabloated.h"
#include <string>
struct ItemStack;
class IGameDef;
class ITextureSource;
struct TileSpec;
/*
Wield item scene node, renders the wield mesh of some item
*/
class WieldMeshSceneNode: public scene::ISceneNode
{
public:
WieldMeshSceneNode(scene::ISceneNode *parent, scene::ISceneManager *mgr,
s32 id = -1, bool lighting = false);
virtual ~WieldMeshSceneNode();
void setCube(const TileSpec tiles[6],
v3f wield_scale, ITextureSource *tsrc);
void setExtruded(const std::string &imagename,
v3f wield_scale, ITextureSource *tsrc, u8 num_frames);
void setItem(const ItemStack &item, IGameDef *gamedef);
// Sets the vertex color of the wield mesh.
// Must only be used if the constructor was called with lighting = false
void setColor(video::SColor color);
scene::IMesh *getMesh()
{ return m_meshnode->getMesh(); }
virtual void render();
virtual const core::aabbox3d<f32>& getBoundingBox() const
{ return m_bounding_box; }
private:
void changeToMesh(scene::IMesh *mesh);
// Child scene node with the current wield mesh
scene::IMeshSceneNode *m_meshnode;
video::E_MATERIAL_TYPE m_material_type;
// True if EMF_LIGHTING should be enabled.
bool m_lighting;
bool m_enable_shaders;
bool m_anisotropic_filter;
bool m_bilinear_filter;
bool m_trilinear_filter;
// Bounding box culling is disabled for this type of scene node,
// so this variable is just required so we can implement
// getBoundingBox() and is set to an empty box.
core::aabbox3d<f32> m_bounding_box;
};
#endif
|