TDME2
1.9.200
src
tdme
engine
fileio
textures
BC7TextureReader.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <vector>
4
5
#include <
tdme/tdme.h
>
6
#include <
tdme/engine/fileio/textures/fwd-tdme.h
>
7
#include <
tdme/engine/fwd-tdme.h
>
8
#include <
tdme/utilities/ByteBuffer.h
>
9
10
using
std::vector;
11
12
using
tdme::utilities::ByteBuffer
;
13
14
/**
15
* BC7 texture reader class
16
* @author Andreas Drewke
17
*/
18
class
tdme::engine::fileio::textures::BC7TextureReader
final
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
};
ByteBuffer.h
tdme::engine::Texture
Texture entity.
Definition:
Texture.h:24
tdme::engine::Texture::height
uint16_t height
Definition:
Texture.h:435
tdme::engine::Texture::width
uint16_t width
Definition:
Texture.h:434
tdme::engine::fileio::textures::BC7TextureReader
BC7 texture reader class.
Definition:
BC7TextureReader.h:19
tdme::engine::fileio::textures::BC7TextureReader::read
static bool read(int width, int height, int bytesPerPixel, const vector< uint8_t > &bc7Data, ByteBuffer &textureByteBuffer)
Read BC7 from memory into texture byte buffer.
Definition:
BC7TextureReader.cpp:18
tdme::utilities::ByteBuffer
Byte buffer class.
Definition:
ByteBuffer.h:27
fwd-tdme.h
fwd-tdme.h
tdme.h
Generated by
1.9.1