//konstruktor za 2 scene public World(String castlePath, String castleFileName, String arrowPath, String arrowFileName, int width, int height, OpenGL gl) { this.castle_scene = new AssimpScene2(castlePath, castleFileName, gl); this.arrow_scene = new AssimpScene2(arrowPath, arrowFileName, gl); this.m_width = width; this.m_height = height; try { this.zid = new Cube(); } catch { MessageBox.Show("Neuspjesno kreirana instanca klase Cube", "GRESKA", MessageBoxButton.OK, MessageBoxImage.Error); } m_textures = new uint[m_textureCount]; }
/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName, int width, int height, OpenGL gl) { this.m_scene = new AssimpScene2(scenePath, sceneFileName, gl); this.m_width = width; this.m_height = height; }