Пример #1
0
        protected virtual void SetupDrawAttributes(UWB_DrawHelper drawHelper)
        {
            drawHelper.resetAttributes();
            drawHelper.setColor1(mFlatColor);

            drawHelper.SetMaterial(ref m_Material);
            drawHelper.EnableBlending(m_bBlendingEnabled);
            drawHelper.EnableLighting(m_bLightingEnabled);

            drawHelper.SetTextureInfo(ref m_TexFileName);
            if (m_TexFileName != null)
            {
                drawHelper.EnableTexture(m_bTexturingEnabled);
            }
        }
        protected virtual void SetupDrawAttributes(UWB_DrawHelper drawHelper)
        {
            drawHelper.resetAttributes();
            drawHelper.setColor1(mFlatColor);

            drawHelper.SetMaterial(ref m_Material);
            drawHelper.EnableBlending(m_bBlendingEnabled);
            drawHelper.EnableLighting(m_bLightingEnabled);

            drawHelper.SetTextureInfo(ref m_TexFileName);
            if (m_TexFileName != null)
                drawHelper.EnableTexture(m_bTexturingEnabled);
        }