/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName, int width, int height) { this.m_balloon = new AssimpScene2(scenePath, sceneFileName); this.m_hangar = new Hangar(10.0f, 10.0f, 12.0f); this.m_terrain = new Terrain(); //this.m_hangar = new Hangar(3.0f, 2.5f, 6.0f); this.m_width = width; this.m_height = height; try { // TODO 4.0: Podsavanje fonta Courier New, 11pt, bold, italic m_font = new OutlineFont("Courier New", 11, 0.02f, true, true, false, false); m_textures = new int[m_textureCount]; } catch (Exception) { MessageBox.Show("Neuspesno kreirana instanca OpenGL fonta", "GRESKA", MessageBoxButtons.OK, MessageBoxIcon.Error); } this.Initialize(); // Korisnicka inicijalizacija OpenGL parametara this.Resize(); // Podesi projekciju i viewport }