Program Listing for File Node3D.hpp

Return to documentation for file (include/ari/en/3d/Node3D.hpp)

#pragma once

#include "../Component.hpp"
#include "../../math/Vector.hpp"
#include "../../math/Matrix.hpp"

namespace bgfx
{
    struct Encoder;
}
namespace ari
{
    class ARI_API Node3D: public Component
    {
    public:

        Node3D() : Scale(1.0f, 1.0f, 1.0f), _isRenderable(false) { _isFromNode3D = true; }

        virtual ~Node3D() = default;

        virtual void Render(const Matrix& matrix, bgfx::Encoder* encoder, uint16_t _view_id) { BX_UNUSED(matrix, encoder); }

        Vector3 Position,
            Rotation,
            Scale;

        Matrix _finalMat;
        bool _isRenderable;

    }; // Node3D

} // ari