Updates for bazel on windows.
This commit is contained in:
318
myglTexture.h
318
myglTexture.h
@@ -17,321 +17,33 @@
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef OpenArena__myglTexture_h__
|
||||
#define OpenArena__myglTexture_h__
|
||||
|
||||
#if defined HAVE_CONFIG_H
|
||||
// clang-format off
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "mygl.h"
|
||||
|
||||
using namespace std;
|
||||
// clang-format on
|
||||
|
||||
namespace OpenArena {
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for Texture here.
|
||||
*
|
||||
* Write detailed description for Texture here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for Texture here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
class Texture {
|
||||
public:
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for Texture here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for Texture here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for Texture here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
Texture();
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for ~Texture here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for ~Texture here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for ~Texture here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
~Texture();
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for Filename here.
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for Filename here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for Filename here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
string Filename();
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for ID here.
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for ID here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for ID here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
uint32_t ID();
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for Load here.
|
||||
*
|
||||
* \param filename
|
||||
* Description of parameter filename.
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for Load here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for Load here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
bool Load(string filename);
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for Load here.
|
||||
*
|
||||
* \param filename
|
||||
* Description of parameter filename.
|
||||
*
|
||||
* \param min
|
||||
* Description of parameter min.
|
||||
*
|
||||
* \param mag
|
||||
* Description of parameter mag.
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for Load here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for Load here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
bool Load(string filename, uint32_t min, uint32_t mag);
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for Free here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for Free here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for Free here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
std::string Filename() const;
|
||||
uint32_t ID() const;
|
||||
bool Load(std::string filename);
|
||||
bool Load(std::string filename, uint32_t min, uint32_t mag);
|
||||
void Free();
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for Loaded here.
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for Loaded here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for Loaded here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
bool Loaded();
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for operator < here.
|
||||
*
|
||||
* \param
|
||||
* Description of parameter .
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for operator < here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for operator < here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
bool operator<(const Texture&);
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for operator <= here.
|
||||
*
|
||||
* \param
|
||||
* Description of parameter .
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for operator <= here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for operator <= here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
bool operator<=(const Texture&);
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for operator == here.
|
||||
*
|
||||
* \param
|
||||
* Description of parameter .
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for operator == here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for operator == here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
bool operator==(const Texture&);
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for operator != here.
|
||||
*
|
||||
* \param
|
||||
* Description of parameter .
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for operator != here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for operator != here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
bool operator!=(const Texture&);
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for operator >= here.
|
||||
*
|
||||
* \param
|
||||
* Description of parameter .
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for operator >= here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for operator >= here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
bool operator>=(const Texture&);
|
||||
/*!
|
||||
* \brief
|
||||
* Write brief comment for operator > here.
|
||||
*
|
||||
* \param
|
||||
* Description of parameter .
|
||||
*
|
||||
* \returns
|
||||
* Write description of return value here.
|
||||
*
|
||||
* \throws <exception class>
|
||||
* Description of criteria for throwing this exception.
|
||||
*
|
||||
* Write detailed description for operator > here.
|
||||
*
|
||||
* \remarks
|
||||
* Write remarks for operator > here.
|
||||
*
|
||||
* \see
|
||||
* Separate items with the '|' character.
|
||||
*/
|
||||
bool operator>(const Texture&);
|
||||
bool Loaded() const;
|
||||
bool operator<(const Texture&) const;
|
||||
bool operator<=(const Texture&) const;
|
||||
bool operator==(const Texture&) const;
|
||||
bool operator!=(const Texture&) const;
|
||||
bool operator>=(const Texture&) const;
|
||||
bool operator>(const Texture&) const;
|
||||
|
||||
private:
|
||||
uint32_t minFilter;
|
||||
@@ -339,5 +51,7 @@ class Texture {
|
||||
std::string filename;
|
||||
uint32_t id;
|
||||
};
|
||||
|
||||
extern Texture kUnknownTexture;
|
||||
} // End namespace OpenArena
|
||||
#endif // End !defined(OpenArena__myglTexture_h__)
|
||||
|
||||
Reference in New Issue
Block a user