/*---------------------------------------------------------------------------* Project: NintendoWare File: lyt_DrawInfo.cpp Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo and/or its licensed developers and are protected by national and international copyright laws. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. The content herein is highly confidential and should be handled accordingly. $Revision: 31311 $ *---------------------------------------------------------------------------*/ #include "precompiled.h" #include #include #include #include namespace nw { namespace lyt { DrawInfo::DrawInfo() : m_LocationAdjustScale(1.f, 1.f), m_GlobalAlpha(1.f), m_pGraphicsResource(0), m_pLayout(0) { std::memset(&m_Flag, 0, sizeof(m_Flag)); MTX34Identity(&m_ViewMtx); } DrawInfo::~DrawInfo() { } void DrawInfo::SetProjectionMtx(const nw::math::MTX44& mtx) { // 直ちにシェーダに反映させると複数の DrawInfo がある場合に // 誤作動するので、ここでは値を保持するのみ。 // 実際の設定は Layout::Draw() で行う。 math::MTX44Copy(&m_ProjMtx, &mtx); } } // namespace nw::lyt } // namespace nw