This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
8 additions
and
2 deletions.
-
+1
−2
include/SDL_pixels.h
-
+7
−0
include/SDL_stdinc.h
|
@@ -112,8 +112,7 @@ enum |
|
|
SDL_PACKEDLAYOUT_1010102 |
|
|
}; |
|
|
|
|
|
#define SDL_DEFINE_PIXELFOURCC(A, B, C, D) \ |
|
|
((A) | ((B) << 8) | ((C) << 16) | ((D) << 24)) |
|
|
#define SDL_DEFINE_PIXELFOURCC(A, B, C, D) SDL_FOURCC(A, B, C, D) |
|
|
|
|
|
#define SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes) \ |
|
|
((1 << 31) | ((type) << 24) | ((order) << 20) | ((layout) << 16) | \ |
|
|
|
@@ -101,6 +101,13 @@ |
|
|
#endif |
|
|
/*@}*//*Cast operators*/ |
|
|
|
|
|
/* Define a four character code as a Uint32 */ |
|
|
#define SDL_FOURCC(A, B, C, D) \ |
|
|
((SDL_static_cast(Uint32, SDL_static_cast(Uint8, (A))) << 0) | \ |
|
|
(SDL_static_cast(Uint32, SDL_static_cast(Uint8, (B))) << 8) | \ |
|
|
(SDL_static_cast(Uint32, SDL_static_cast(Uint8, (C))) << 16) | \ |
|
|
(SDL_static_cast(Uint32, SDL_static_cast(Uint8, (D))) << 24)) |
|
|
|
|
|
/** |
|
|
* \name Basic data types |
|
|
*/ |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.