#include "core.h" using namespace std; Core::Core(char *title,unsigned int width,unsigned int height,int colorsize,int depthsize,int flags) { const unsigned int titlelen=strlen(title); if (titlelen>0) { this->title=new char[titlelen+1]; strcpy(this->title,title); } else this->title=NULL; this->width=width; this->height=height; this->colorsize=colorsize; this->depthsize=depthsize; this->flags=flags; for (register unsigned int i=0; ititle);} unsigned int Core::GetWidth() {return width;} unsigned int Core::GetHeight() {return height;} int Core::GetColorBufferDepth() {return colorsize;} int Core::GetDepthBufferDepth() {return depthsize;} int Core::GetFlags() {return flags;} bool Core::GetFlag(int flag) {return (flag&flags)!=0;} bool Core::KeyDown(RAVEN_KEY_CODE key) {return keys[key];} bool Core::ButtonDown(int button) {return buttons[button];} bool Core::IsAppTerm() {return isappterm;} bool Core::IsResized() { if (isresized) { isresized=false; return true; } else return false; } double Core::GetMouseX() {return mousex;} double Core::GetMouseY() {return mousey;} int Core::GetType() {return coretype;}