Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pipelined_texture.h
Go to the documentation of this file.
1 #ifndef __PIPELINED_TEXTURE_H__INCLUDED_
2 #define __PIPELINED_TEXTURE_H__INCLUDED_
3 
4 #include "aux_texture.h"
5 
6 class PipelinedTexture : public Texture
7 {
8  int current;
9  int last;
10 //clone==2 means both current and last are clones 1 means last is a clone
11  char clone;
12 public:
13  bool operator==( const Texture &b )
14  {
15  return false;
16  }
17  bool operator<( const Texture &b )
18  {
19  return true;
20  }
21  virtual Texture * Clone();
22  virtual Texture * Original();
24  PipelinedTexture( unsigned int width, unsigned int height, unsigned char *current, unsigned char *last );
26  unsigned char * beginMutate();
27  void Swap();
28  void endMutate( int xoffset, int yoffset, int width, int height );
29  void MakeBothActive();
30  void MakeActive();
31  void MakeLastActive();
32 };
33 
34 #endif
35