C# Класс GraphicsTests.TestGame

This is the main type for your game
Наследование: Microsoft.Xna.Framework.Game
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
TestGame ( ) : System

Защищенные методы

Метод Описание
Draw ( Microsoft.Xna.Framework.GameTime gameTime ) : void

This is called when the game should draw itself.

Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

Приватные методы

Метод Описание
TestGame_Exiting ( object sender, EventArgs e ) : void
graphics_PreparingDeviceSettings ( object sender, Microsoft.Xna.Framework.PreparingDeviceSettingsEventArgs e ) : void

Описание методов

Draw() защищенный Метод

This is called when the game should draw itself.
protected Draw ( Microsoft.Xna.Framework.GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Результат void

Initialize() защищенный Метод

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
Результат void

TestGame() публичный Метод

public TestGame ( ) : System
Результат System

Update() защищенный Метод

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
protected Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Результат void