1234567891011121314151617181920212223 |
- /*
- * Voxel-a-tord
- * colour.h:
- * Copyright (c) 2021-2022 986-Studio. All rights reserved.
- *
- * Created by Manoël Trapier on 15/03/2021.
- */
- #ifndef VOXELATOR_SOURCE_INCLUDE_COLOUR_H
- #define VOXELATOR_SOURCE_INCLUDE_COLOUR_H
- /***********************************************************************************************************************
- * Data types
- **********************************************************************************************************************/
- typedef uint32_t colour_t;
- /***********************************************************************************************************************
- * Prototypes
- **********************************************************************************************************************/
- #define MAKE_RGB(_r, _g, _b) ((0xFF000000) | ((_b & 0xFF) << 16) | ((_g & 0xFF) << 8) | ((_r & 0xFF)))
- #define MAKE_ARGB(_a, _r, _g, _b) (((_a & 0xFF) << 24) | ((_g & 0xFF) << 16) | ((_g & 0xFF) << 8) | ((_r & 0xFF)))
- #endif /* VOXELATOR_SOURCE_INCLUDE_COLOUR_H */
|