本文整理汇总了C#中TextureLoader.GetTexture方法的典型用法代码示例。如果您正苦于以下问题:C# TextureLoader.GetTexture方法的具体用法?C# TextureLoader.GetTexture怎么用?C# TextureLoader.GetTexture使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextureLoader
的用法示例。
在下文中一共展示了TextureLoader.GetTexture方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
public void Initialize()
{
if (Buttonareas.Count() == 0)
{
Rectangle djastinButtonArea = new Rectangle(0, 0, 400, 300);
Rectangle rutgerButtonArea = new Rectangle(0, 300, 400, 300);
Rectangle gideonButtonArea = new Rectangle(400, 0, 400, 300);
Rectangle danielButtonArea = new Rectangle(400, 300, 400, 300);
Rectangle gameOverButtonArea = new Rectangle(300, 300, 200, 100);
Buttonareas.Add("djastinButton", djastinButtonArea);
Buttonareas.Add("rutgerButton", rutgerButtonArea);
Buttonareas.Add("gideonButton", gideonButtonArea);
Buttonareas.Add("danielButton", danielButtonArea);
Buttonareas.Add("gameOverButton", gameOverButtonArea);
_textureLoader = TextureLoader.GetInstance();
_cijfernariumTexture = _textureLoader.GetTexture("startMenuCijfernarium");
_starbucksalandoriumTexture = _textureLoader.GetTexture("startMenuStarbucks");
_crackenariumTexture = _textureLoader.GetTexture("startMenuCrackenarium");
_kloonwereldTexture = _textureLoader.GetTexture("startMenuKloonwereld");
_cijfernariumTextureHighlighted = _textureLoader.GetTexture("startMenuCijfernariumHighlighted");
StarbucksalandoriumTextureHighlighted = _textureLoader.GetTexture("startMenuStarbucksHighlighted");
_crackenariumTextureHighlighted = _textureLoader.GetTexture("startMenuCrackenariumHighlighted");
_kloonwereldTextureHighlighted = _textureLoader.GetTexture("startMenuKloonwereldHighlighted");
_gameOverButtonHighlighted = _textureLoader.GetTexture("gameOverButtonHighlighted");
_gameOverButton = _textureLoader.GetTexture("gameOverButton");
_front = _textureLoader.GetTexture("startMenuBackgroundEmpty");
_showGameOver = false;
}
}