Example #1
0
        public void Draw(GraphicContext gpCtx, Matrix44 parentTrans)
        {
            ApplyAttributes(gpCtx.GetGraphicDevice());

            if (gpCtx != null)
                OnDraw(gpCtx, parentTrans);

            UnApplyAttributes(gpCtx.GetGraphicDevice());
        }
        public GraphicDeviceProxy(GraphicContext GpCtx)
        {
            m_GraphicContext = GpCtx;
            m_Device = GpCtx.GetGraphicDevice();

            m_WorldToDevice = GpCtx.WorldToDevice;
        }