Beispiel #1
0
        public override void DrawShadow(Light a_light)
        {
            if (m_model != null)
            {
                lock (this)
                {
                    GraphicsCommand.BindModel(m_model);

                    GraphicsCommand.DrawElementsUInt(m_model.Indices);
                }
            }
        }
Beispiel #2
0
        public override void Draw(Camera a_camera)
        {
            if (m_model != null)
            {
                lock (this)
                {
                    GraphicsCommand.BindModel(m_model);

                    GraphicsCommand.DrawElementsUInt(m_model.Indices);
                }
            }
        }
Beispiel #3
0
        public override void DrawShadow(Light a_light)
        {
            if (m_model != null)
            {
                lock (this)
                {
                    if (m_matrices != null)
                    {
                        GraphicsCommand.BindMatrix4(Material.Program, 128, m_matrices);
                    }

                    GraphicsCommand.BindModel(m_model);

                    GraphicsCommand.DrawElementsUInt(m_model.Indices);
                }
            }
        }
Beispiel #4
0
        public override void Draw(Camera a_camera)
        {
            if (m_model != null)
            {
                lock (this)
                {
                    // Dirty but works
                    if (m_matrices != null)
                    {
                        GraphicsCommand.BindMatrix4(Material.Program, 128, m_matrices);
                    }

                    GraphicsCommand.BindModel(m_model);

                    GraphicsCommand.DrawElementsUInt(m_model.Indices);
                }
            }
        }