World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
8 unsigned int b = (
c & 31) * 8;
9 unsigned int g = ((
c >> 5) & 63) * 4;
10 unsigned int r = ((
c >> 11) & 31) * 8;
12 return ((
unsigned int)
alpha << 24) | (
r << 16) | (
g << 8) |
b;
17 unsigned int b = (
c & 31) * 8;
18 unsigned int g = ((
c >> 5) & 63) * 4;
19 unsigned int r = ((
c >> 11) & 31) * 8;
21 return (((
unsigned int)
alpha << 24) & 0xFF000000) | ((
b << 16) & 0x00FF0000) | ((
g << 8) & 0x0000FF00) | (
r & 0x000000FF);
43 return (
c & 0xFF000000) | (
c & 0x000000FF) << 16 | (
c & 0x0000FF00) | (
c & 0x00FF0000) >> 16;
50 for (
unsigned int i = 0; i < num_pixels; ++i) {
58 const void *src_pixels,
void *dst_pixels) {
62 for (
unsigned int i = 0; i < num_pixels; ++i) {
70 const void *src_pixels,
void *dst_pixels) {
75 for (
unsigned int i = 0; i < num_pixels; ++i) {
83 const void *src_pixels,
void *dst_pixels) {
87 for (
unsigned int i = 0; i < num_pixels; ++i) {
95 const void *src_pixels,
void *dst_pixels) {
99 for (
unsigned int i = 0; i < num_pixels; ++i) {
107 return 8 * ((
c >> 11) & 0x1F);
110 return 4 * ((
c >> 5) & 0x3F);
113 return 8 * ((
c >> 0) & 0x1F);
117 const void *src_pixels,
void *dst_pixels) {
121 for (
unsigned int i = 0; i < num_pixels; ++i) {
131 return c & 0x8000 ? 255 : 0;
134 return 8 * ((
c >> 10) & 0x1F);
137 return 8 * ((
c >> 5) & 0x1F);
140 return 8 * ((
c >> 0) & 0x1F);
144 const void *src_pixels,
149 for (
unsigned int i = 0; i < num_pixels; ++i) {
unsigned __int16 uint16_t
GLfloat GLfloat GLfloat alpha
GLboolean GLboolean GLboolean b
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean GLboolean a
unsigned __int32 uint32_t