//! Billboard object class /*! * Quick and easy class for displaying billboards */ /* Copyright (C) 2010 Alejandro Valenzuela Roca, * * This file is part of MotorJ, a free framework for videogame creation. * * * * MotorJ is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * MotorJ is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with MotorJ. If not, see . */ #ifndef BILLBOARD_CLASS_H #define BILLBOARD_CLASS_H #ifdef VISUAL_STUDIO #include #endif #include #include "support.h" #include "objects.h" #include "pparticle-class.h" class mjBillboard : public pParticle { public: mjBillboard(vector3 * cameraPos); ~mjBillboard(); void Draw(); vector3 * cPos; vector3 drawDir; vector3 drawUp; vector3 scale; vector2 r; float ttl; GLuint tex; GLuint bList; }; #endif