TDME2  1.9.200
BC7TextureReader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #include <tdme/tdme.h>
7 #include <tdme/engine/fwd-tdme.h>
9 
10 using std::vector;
11 
13 
14 /**
15  * BC7 texture reader class
16  * @author Andreas Drewke
17  */
19 {
20  friend class tdme::engine::Texture;
21 
22 public:
23  /**
24  * Read BC7 from memory into texture byte buffer
25  * @param width width
26  * @param height height
27  * @param bytesPerPixel bytes per pixel
28  * @param bc7Data BC7 vector data to read BC7 from
29  * @param textureByteBuffer texture byte buffer
30  * @return success
31  */
32  static bool read(int width, int height, int bytesPerPixel, const vector<uint8_t>& bc7Data, ByteBuffer& textureByteBuffer);
33 
34 };
Texture entity.
Definition: Texture.h:24
static bool read(int width, int height, int bytesPerPixel, const vector< uint8_t > &bc7Data, ByteBuffer &textureByteBuffer)
Read BC7 from memory into texture byte buffer.
Byte buffer class.
Definition: ByteBuffer.h:27