/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName, String sceneFileName2, int width, int height, OpenGL gl) { this.m_scene = new AssimpScene(scenePath, sceneFileName, gl); this.m_scene2 = new AssimpScene(scenePath, sceneFileName2, gl); // !!!!!!!!!!!!!!!!!!!!!! this.m_width = width; this.m_height = height; }
/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName, String scenePath2, String sceneFileName2, String scenePath3, String sceneFileName3, int width, int height, OpenGL gl) { cube = new Cube(); cylinder = new Cylinder(); this.m_scene = new AssimpScene(scenePath, sceneFileName, gl); this.m_scene2 = new AssimpScene(scenePath2, sceneFileName2, gl); this.m_scene_door = new AssimpScene(scenePath3, sceneFileName3, gl); this.m_width = width; this.m_height = height; m_textures = new uint[m_textureCount]; scale_x = 1.0f; ambijentalna0 = 0.8f; ambijentalna1 = 0.8f; ambijentalna2 = 0.0f; visinaStola = 3.0f; visinaTepiha = -8.5f; visinaPostolja = -8.0f; visinaTable = -1.5f; visinaPodloge = 0.0f; visinaMikrotalasne = 0.0f; visinaHrane = 0.0f; hranaX = 1.0f; hranaZ = 0.5f; vrataX = 0.0f; vrataY = 0.0f; vrataZ = 0.0f; rotacijaHrane = 0.0f; }
/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName, int width, int height, OpenGL gl) { this.m_scene = new AssimpScene(scenePath, sceneFileName, gl); this.m_width = width; this.m_height = height; this.m_textures = new uint[m_textureCount]; }
/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName1, String sceneFileName2, int width, int height, OpenGL gl) { m_textures = new uint[m_textureCount]; this.m_scene = new AssimpScene(scenePath, sceneFileName1, gl); this.m_scene2 = new AssimpScene(scenePath, sceneFileName2, gl); this.m_width = width; this.m_height = height; TranslateX = 0; TranslateY = 0; }
/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName, int width, int height, OpenGL gl) { this.m_scene = new AssimpScene(scenePath, sceneFileName, gl); this.m_scene_bullet = new AssimpScene(scenePath, "lowpolybullet.3ds", gl); this.m_width = width; this.m_height = height; this.gl = gl; 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 AssimpScene(scenePath, sceneFileName, gl); this.m_arrow = new AssimpScene(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "3D Models\\..\\..\\..\\3D Models\\Castle"), "arrow.obj", gl); this.m_width = width; this.m_height = height; m_textures = new uint[m_textureCount]; }
/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName, String sceneFileName2, int width, int height, OpenGL gl) { this.m_scene = new AssimpScene(scenePath, sceneFileName, gl); this.m_scene2 = new AssimpScene(scenePath, sceneFileName2, gl); this.m_width = width; this.m_height = height; m_textures = new uint[2]; ambient0 = 0.8f; ambient1 = 0.8f; ambient2 = 0.0f; }
/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName, int width, int height, OpenGL gl) { // Inicijalizacija scene za arrow i castle: OVDE SAM ISKULIRAO STA SE PROSLEDI IZ MAIN-A ZA PUTANJE, JER MORAM DVE SCENE TJ DVA MODELA UCITATI var scenePathForArrow = scenePath + "\\NewArrow"; sceneFileName = "Arrow.obj"; this.m_scene_arrow = new AssimpScene(scenePathForArrow, sceneFileName, gl); var scenePathForCastle = scenePath + "\\NewCastle"; sceneFileName = "castle.obj"; this.m_scene_castle = new AssimpScene(scenePathForCastle, sceneFileName, gl); this.m_width = width; this.m_height = height; _wallFactory = new WallFactory(this); m_textures = new uint[m_textureCount]; FaktorSkaliranjaStrele = 1; }
/// <summary> /// Konstruktor klase World. /// </summary> public World(String scenePath, String sceneFileName, int width, int height, OpenGL gl) { this.m_scene = new AssimpScene(scenePath, sceneFileName, gl); //instanciranje assimp scene this.m_width = width; this.m_height = height; }