mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 12:40:34 +00:00
33 lines
629 B
C++
33 lines
629 B
C++
// SHE library
|
|
// Copyright (C) 2012-2013 David Capello
|
|
//
|
|
// This file is released under the terms of the MIT license.
|
|
// Read LICENSE.txt for more information.
|
|
|
|
#ifndef SHE_SURFACE_FORMAT_H_INCLUDED
|
|
#define SHE_SURFACE_FORMAT_H_INCLUDED
|
|
#pragma once
|
|
|
|
namespace she {
|
|
|
|
enum SurfaceFormat {
|
|
kRgbaSurfaceFormat,
|
|
};
|
|
|
|
struct SurfaceFormatData {
|
|
SurfaceFormat format;
|
|
uint32_t bitsPerPixel;
|
|
uint32_t redShift;
|
|
uint32_t greenShift;
|
|
uint32_t blueShift;
|
|
uint32_t alphaShift;
|
|
uint32_t redMask;
|
|
uint32_t greenMask;
|
|
uint32_t blueMask;
|
|
uint32_t alphaMask;
|
|
};
|
|
|
|
} // namespace she
|
|
|
|
#endif
|