TDME2  1.9.200
BC7TextureWriter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <ext/libpng/png.h>
4 
5 #include <string>
6 #include <vector>
7 
8 #include <tdme/tdme.h>
10 #include <tdme/engine/fwd-tdme.h>
12 
13 using std::string;
14 using std::vector;
15 
18 
19 /**
20  * BC7 texture writer class
21  * @author Andreas Drewke
22  */
24 {
25  friend class Texture;
26 
27 public:
28 
29  /**
30  * Writes a texture to BC7 using a data vector
31  * @param width width
32  * @param height height
33  * @param bytesPerPixel bytes per pixel
34  * @param textureByteBuffer texture RGB byte buffer
35  * @param bc7Data BC7 data
36  * @return success
37  */
38  static bool write(int width, int height, int bytesPerPixel, const ByteBuffer& textureByteBuffer, vector<uint8_t>& bc7Data);
39 
40 };
Texture entity.
Definition: Texture.h:24
static bool write(int width, int height, int bytesPerPixel, const ByteBuffer &textureByteBuffer, vector< uint8_t > &bc7Data)
Writes a texture to BC7 using a data vector.
Byte buffer class.
Definition: ByteBuffer.h:27