Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/dds/ColorBlock.h
| Show All 28 Lines | |||||
| #pragma once | #pragma once | ||||
| #include <Color.h> | #include <Color.h> | ||||
| #include <Image.h> | #include <Image.h> | ||||
| /** Uncompressed 4x4 color block. */ | /** Uncompressed 4x4 color block. */ | ||||
| struct ColorBlock { | struct ColorBlock { | ||||
| ColorBlock(); | ColorBlock() = default; | ||||
| ColorBlock(const uint *linearImage); | ColorBlock(const uint *linearImage); | ||||
| ColorBlock(const ColorBlock &block); | ColorBlock(const ColorBlock &block); | ||||
| ColorBlock(const Image *img, uint x, uint y); | ColorBlock(const Image *img, uint x, uint y); | ||||
| void init(const Image *img, uint x, uint y); | void init(const Image *img, uint x, uint y); | ||||
| void init(uint w, uint h, const uint *data, uint x, uint y); | void init(uint w, uint h, const uint *data, uint x, uint y); | ||||
| void init(uint w, uint h, const float *data, uint x, uint y); | void init(uint w, uint h, const float *data, uint x, uint y); | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||