public override void OnEnter( bool firstTime ) { base.OnEnter( firstTime ); GL.ClearColor( Color4.CornflowerBlue ); CursorVisible = !myCaptureMouse; if ( firstTime ) { myCamera = new Camera( MathHelper.Pi / 3.0f, (float) Width / (float) Height, stViewDists[ myCurViewDist ] ); myShader = new ModelShader(); myShader.Camera = myCamera; myShader.FogColour = Color4.CornflowerBlue; myCell = ItemManager.GetCell( 0 ); myTexDict = ResourceManager.LoadTextureDictionary( "ballyswater" ); } }
public void LoadTextures( TextureDictionary txd ) { foreach ( TextureSectionData tex in Textures ) tex.LoadTextures( txd ); }
public void LoadTextures( TextureDictionary txd ) { foreach ( MaterialSectionData mat in Materials ) mat.LoadTextures( txd ); }