示例#1
0
 /// <summary>
 /// This is called when the game should draw itself.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 protected override void Draw(GameTime gameTime)
 {
     Mdx.graphicsContext.preRender(Mdx.graphicsContext.getWindowWidth(), Mdx.graphicsContext.getWindowHeight());
     game.render(Mdx.graphicsContext);
     Mdx.graphicsContext.postRender();
     base.Draw(gameTime);
 }
示例#2
0
 /// <summary>
 /// This is called when the game should draw itself.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 protected override void Draw(GameTime gameTime)
 {
     Mdx.platformUtils.markFrame();
     Mdx.graphicsContext.preRender(Mdx.graphicsContext.getWindowWidth(), Mdx.graphicsContext.getWindowHeight());
     Mdx.platformUtils.markRenderBegin();
     game.render(Mdx.graphicsContext);
     Mdx.platformUtils.markRenderEnd();
     Mdx.graphicsContext.postRender();
     base.Draw(gameTime);
 }