Example #1
0
        public override void Process()
        {
            if (oldWidth != WindowWidth || oldHeight != WindowHeight)
            {
                oldWidth  = WindowWidth;
                oldHeight = WindowHeight;

                GLNative.GLResize(WindowWidth, WindowHeight);
            }

            GLNative.GLClear();

            // 특정 타입의 콤포넌트 목록 조회
            IList <GLDrawComponent> coms = App.Model.FindComponents <GLDrawComponent>();

            foreach (GLDrawComponent com in coms)
            {
                // 데이터 처리 실행
                GLNative.GLDraw(com.matrix);
            }

            GLNative.GLFlush();

            EGLNative.EGLFlush();

            App.SendMessage(typeof(Controller), typeof(RenderProcessor), "EndOfGraphics", null);
        }
Example #2
0
 public override void Destroy()
 {
     GLNative.GLStop();
 }
Example #3
0
 public override void Start()
 {
     GLNative.GLStart();
 }