Kore
Loading...
Searching...
No Matches
texture.c.h
1#include "texture.h"
2
3/*
4Graphics5::Texture::Texture(Kore::Reader& reader, const char* format, bool readable) : Image(reader, format, readable) {
5 _init(format, readable);
6}
7
8Graphics5::Texture::Texture(const char* filename, bool readable) {
9 FileReader reader(filename);
10 Image::init(reader, filename, readable);
11 _init(filename, readable);
12}
13
14Graphics5::Texture::Texture(void* data, int size, const char* format, bool readable) {
15 BufferReader reader(data, size);
16 Image::init(reader, format, readable);
17 _init(format, readable);
18}
19
20Graphics5::Texture::Texture(void* data, int width, int height, int format, bool readable) : Image(data, width, height, Image::Format(format), readable) {
21 _init("", readable);
22}
23*/
24
25bool kinc_g5_texture_unit_equals(kinc_g5_texture_unit_t *unit1, kinc_g5_texture_unit_t *unit2) {
26 for (int i = 0; i < KINC_G5_SHADER_TYPE_COUNT; ++i) {
27 if (unit1->stages[i] != unit2->stages[i]) {
28 return false;
29 }
30 }
31 return true;
32}
Provides functions for handling textures.