TDME2
1.9.200
src
tdme
engine
fileio
textures
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
>
9
#include <
tdme/engine/fileio/textures/fwd-tdme.h
>
10
#include <
tdme/engine/fwd-tdme.h
>
11
#include <
tdme/utilities/ByteBuffer.h
>
12
13
using
std::string;
14
using
std::vector;
15
16
using
tdme::engine::Texture
;
17
using
tdme::utilities::ByteBuffer
;
18
19
/**
20
* BC7 texture writer class
21
* @author Andreas Drewke
22
*/
23
class
tdme::engine::fileio::textures::BC7TextureWriter
final
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
};
ByteBuffer.h
tdme::engine::Texture
Texture entity.
Definition:
Texture.h:24
tdme::engine::fileio::textures::BC7TextureWriter
BC7 texture writer class.
Definition:
BC7TextureWriter.h:24
tdme::engine::fileio::textures::BC7TextureWriter::write
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.
Definition:
BC7TextureWriter.cpp:25
tdme::utilities::ByteBuffer
Byte buffer class.
Definition:
ByteBuffer.h:27
fwd-tdme.h
fwd-tdme.h
tdme.h
Generated by
1.9.1