nngn
Loading...
Searching...
No Matches
texture_test.h
Go to the documentation of this file.
1#ifndef NNGN_TEST_TEXTURE_H
2#define NNGN_TEST_TEXTURE_H
3
4#include <filesystem>
5#include <QTest>
6
7#include "graphics/graphics.h"
8
9class TextureTest : public QObject {
10 Q_OBJECT
11 static std::filesystem::path data_file, data_alpha_file;
14private slots:
15 void initTestCase();
16 void constructor();
17 void read();
18 void load_data_test();
19 void load();
20 void load_alpha();
21 void load_err();
22 void load_ids();
23 void load_max();
24 void load_cache();
25 void remove();
26};
27
28#endif
Definition texture_test.h:9
static std::byte data_alpha[nngn::Graphics::TEXTURE_SIZE]
Definition texture_test.h:13
void load()
Definition texture_test.cpp:104
static std::filesystem::path data_alpha_file
Definition texture_test.h:11
void load_data_test()
Definition texture_test.cpp:91
void load_cache()
Definition texture_test.cpp:179
void read()
Definition texture_test.cpp:81
void remove()
Definition texture_test.cpp:197
static std::byte data[nngn::Graphics::TEXTURE_SIZE]
Definition texture_test.h:12
void load_err()
Definition texture_test.cpp:136
void load_max()
Definition texture_test.cpp:162
static std::filesystem::path data_file
Definition texture_test.h:11
void load_ids()
Definition texture_test.cpp:149
void initTestCase()
Definition texture_test.cpp:57
void load_alpha()
Definition texture_test.cpp:120
void constructor()
Definition texture_test.cpp:75
static constexpr u32 TEXTURE_SIZE
Definition graphics.h:264