/* Irrlicht Library Wrapper Created by: Nathan Adams Denzel Morris Copyright (C) 2007 This software is licensed under the GNU/GPL. This software may not be used for commerical purposes. */ #ifndef IRR2D_H #define IRR2D_H /* We should include some basic functions */ #include /* include strings */ #include #include /* We have to include Irrlichts libs */ #include //#include "IrrLib.h" #include "IrrData.h" #include "IrrSprite.h" class Irr2D: public IrrLibBase { private: //irr::scene::ISceneManager* smgr; //irr::video::IVideoDriver* driver; //Inherited from IrrLibBase irr::video::ITexture* texturemap; int numTextures; //irr::video::ITexture* textures[10]; std::vector textures; std::vector > start; std::vector > end; std::vector color; std::vector images; int numLines; int nImages; public: //Irr2D::Irr2D(); IrrSprite Sprite; Irr2D::Irr2D(); Irr2D::~Irr2D(); //void Irr2D::SetDriver(irr::video::IVideoDriver* driver); //void Irr2D::SetSmgr(irr::scene::ISceneManager* smgr); //Inherited from irrlibbase IrrObj Irr2D::LoadTexturemap(irr::core::stringc file); IrrObj Irr2D::LoadTexture(irr::core::stringc file); //Has been renamed from LoadImage to LoadIrrImage due to conflict with windows API IrrObj Irr2D::LoadIrrImage(irr::core::stringc file); //void Irr2D::DrawImage(int texture, const irr::core::position2d & destPos); //void Irr2D::DrawImage(IrrObj& img, irr::core::position2d& destPos); void Irr2D::DrawImage(IrrObj img); //void Irr2D::MoveImage(IrrObj img, irr::core::dimension2d destPos); //void Irr2D::MoveImage(IrrObj img, int x, int y); //void Irr2D::DrawImage(const irr::core::position2d & destPos, const irr::core::rect & sourceRect, const irr::core::rect * clipRect, irr::video::SColor color, bool useAlphaChannelOfTexture); //void Irr2D::DrawImage(const irr::core::position2d & destPos, const irr::core::rect & sourceRect, const irr::core::rect * clipRect, irr::video::SColor color, bool useAlphaChannelOfTexture); //void Irr2D::DrawLine(irr::core::position2d& start, irr::core::position2d& end, irr::video::SColor& color); void Irr2D::DrawLine(IrrPos& start, IrrPos& end, irr::video::SColor& color); void Irr2D::DrawLines(); //void Irr2D::AddLines(irr::core::position2d& start, irr::core::position2d& end, irr::video::SColor& color); void Irr2D::AddLines(IrrPos& start, IrrPos & end, irr::video::SColor& color); bool Irr2D::Collision(IrrObj obj1, IrrObj obj2); //IrrObj Irr2D::LoadImageA(irr::core::stringc file); }; #endif