You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3 KiB
C++

//:Header:188, "llgfx_ctexture", 3b9b5884
//
// File: llgfx_ctexture.h
//
// G A M E.O.N.E - LOW LEVEL LIB V1.0
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
// Licensed under the terms of LGPL.
//:---------------------------------------------------------------------------
//:Description
//
#if !defined(LLGFX_CTEXTURE_INCLUDED)
#define LLGFX_CTEXTURE_INCLUDED
//:Include
#include "llgfx_stexture.h"
//:> +----------------------------------------+
//:>-----------------| llgfx_CTexture Class Declaration |-----------------
//:> +----------------------------------------+
//:Class
class llgfx_CTexture: public s_texture
{
public:
llgfx_CTexture();
llgfx_CTexture( int w, int h, TxFormat f );
~llgfx_CTexture();
//! Initialisiert das Texture mit einem Grauwert.
void Clear( TxU8 grayvalue=0 ); // initialize data with grayvalue
// Zielformat= alle Formate bis auf TXFMT_P_8
llgfx_CTexture * CloneTexture( TxFormat zielformat);
void FlipH();
void FlipV();
// Zielformat der Textur, alle bis auf TXFMT_P_8 unterstützt
int LoadTexture( const char *filename, TxFormat dstformat);
const llgfx_CTexture & operator =( const llgfx_CTexture &sMip);
const llgfx_CTexture & operator =( llgfx_CTexture *sMip );
private:
void CleanUp();
};
#endif // LLGFX_CTEXTURE_INCLUDED