Init color block from block linear image.
This commit is contained in:
parent
c84b6c8bb5
commit
3031f15554
|
@ -28,6 +28,14 @@ ColorBlock::ColorBlock()
|
|||
{
|
||||
}
|
||||
|
||||
/// Init the color block from an array of colors.
|
||||
ColorBlock::ColorBlock(const uint * linearImage)
|
||||
{
|
||||
for(uint i = 0; i < 16; i++) {
|
||||
color(i) = Color32(linearImage[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/// Init the color block with the contents of the given block.
|
||||
ColorBlock::ColorBlock(const ColorBlock & block)
|
||||
{
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace nv
|
|||
struct ColorBlock
|
||||
{
|
||||
ColorBlock();
|
||||
ColorBlock(const uint * linearImage);
|
||||
ColorBlock(const ColorBlock & block);
|
||||
ColorBlock(const Image * img, uint x, uint y);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user