X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Feng_core.cpp;h=853e64cc60419efa032766958dd4c41f6a91ff08;hb=ef18524eeb1d90569410f3660f8a7c7a7defdf1d;hp=8e1248d844342efadf94d57051d13b1a6349158a;hpb=1383e43fba409a7f879a4a4d406bed30ebe0b0a1;p=16.git diff --git a/src/eng_core.cpp b/src/eng_core.cpp index 8e1248d8..853e64cc 100644 --- a/src/eng_core.cpp +++ b/src/eng_core.cpp @@ -24,7 +24,7 @@ namespace engine{ this->frames_per_second = 60; // Global Variables - this->bing = 4; // test global variable + this->mode = 4; // test global variable this->x = 0; // X this->y = 0; // Y @@ -36,10 +36,14 @@ namespace engine{ } void Core::update() - { + { + /*for (std::list::iterator i = fp->begin(); i != fp->end(); i++) + //for (std::list::iterator i = this->fp.begin(); i != this->fp.end(); i++) + { + (this->*(*i))(); + }*/ // call update functions, instead of traversing a function pointer // list. Remove this comment! - sound(); if ( graphics_flag ) graphics(); @@ -108,8 +112,8 @@ namespace engine{ bool Core::init(){ bool xz = 0; // error switch... std::cout << "VIDEO INITIATION" << std::endl; - setvideo(0x13, 1); - setvbuff(1); +//____working on mode x setvideo(0x13, 1); +//____working on mode x setvbuff(1); std::cout << "Checking for Adlib sound card...." << std::endl; if(!AdlibExists()){ std::cout << "not found." << std::endl; @@ -133,8 +137,8 @@ namespace engine{ void Core::release() { //release contexts and set engine to exit - setvideo(0x03, 0); - setvbuff(0); +//____working on mode x setvideo(0x03, 0); +//____working on mode x setvbuff(0); setkb(0); FMReset(); this->msg = ENGINE_EXIT; @@ -167,7 +171,8 @@ namespace engine{ //int a;std::cin >> a; graphics_flag = true; this->timer.start_timer(); -//==== std::cout << "GRAPHICS GRAPHICS GRAPHICS GRAPHICS GRAPHICS" << std::endl; +//==== std::cout << "GRAPHICS GRAPHICS GRAPHICS GRAPHICS GRAPHICS" << std::endl; +//____ updatevbuff(); } else {