/*---------------------------------------------------------------------------* Project: NintendoWare File: lyt_DrawInfo.cpp Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. 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. $Revision: 13839 $ *---------------------------------------------------------------------------*/ #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