#include "always.h"
#include "vector.h"
#include "vector2.h"
#include "shader.h"
#include "widestring.h"
#include "rect.h"
#include "bittype.h"
Go to the source code of this file.
|
| #define | RENDER2D_H |
| |
| #define | VRGB_TO_INT32(rgb) |
| |
| #define | VRGBA_TO_INT32(rgb) |
| |
| #define | RGB_TO_INT32(r, g, b) |
| |
| #define | RGBA_TO_INT32(r, g, b, a) |
| |
| #define | FRGB_TO_INT32(r, g, b) |
| |
| #define | FRGBA_TO_INT32(r, g, b, a) |
| |
| #define | INT32_TO_VRGB(color, vrgb) |
| |
| #define | INT32_TO_VRGBA(color, vrgba) |
| |
◆ FRGB_TO_INT32
| #define FRGB_TO_INT32 |
( |
| r, |
|
|
| g, |
|
|
| b ) |
Value:(unsigned(r*255.0f)<<16)|(unsigned(g*255.0f)<<8)|(unsigned(b*255.0f))|0xFF000000
Definition at line 79 of file render2d.h.
◆ FRGBA_TO_INT32
| #define FRGBA_TO_INT32 |
( |
| r, |
|
|
| g, |
|
|
| b, |
|
|
| a ) |
Value:(unsigned(a*255.0f)<<24)|(unsigned(r*255.0f)<<16)|(unsigned(g*255.0f)<<8)|(unsigned(b*255.0f))
Definition at line 80 of file render2d.h.
◆ INT32_TO_VRGB
| #define INT32_TO_VRGB |
( |
| color, |
|
|
| vrgb ) |
Value: vrgb[0] = ((color & 0x00FF0000) >> 16) / 256.0F; \
vrgb[1] = ((color & 0x0000FF00) >> 8) / 256.0F; \
vrgb[2] = ((color & 0x000000FF)) / 256.0F;
Definition at line 85 of file render2d.h.
◆ INT32_TO_VRGBA
| #define INT32_TO_VRGBA |
( |
| color, |
|
|
| vrgba ) |
Value: vrgba[0] = ((color & 0x00FF0000) >> 16) / 256.0F; \
vrgba[1] = ((color & 0x0000FF00) >> 8) / 256.0F; \
vrgba[2] = ((color & 0x000000FF)) / 256.0F; \
vrgba[3] = ((color & 0xFF000000) >> 24) / 256.0F;
Definition at line 90 of file render2d.h.
◆ RENDER2D_H
◆ RGB_TO_INT32
| #define RGB_TO_INT32 |
( |
| r, |
|
|
| g, |
|
|
| b ) |
Value:(unsigned(r)<<16)|(unsigned(g)<<8)|(unsigned(b))|0xFF000000
Definition at line 73 of file render2d.h.
◆ RGBA_TO_INT32
| #define RGBA_TO_INT32 |
( |
| r, |
|
|
| g, |
|
|
| b, |
|
|
| a ) |
Value:(unsigned(a)<<24)|(unsigned(r)<<16)|(unsigned(g)<<8)|(unsigned(b))
Definition at line 74 of file render2d.h.
◆ VRGB_TO_INT32
| #define VRGB_TO_INT32 |
( |
| rgb | ) |
|
Value:(unsigned(rgb[0]*255.0f)<<16)|(unsigned(rgb[1]*255.0f)<<8)|(unsigned(rgb[2]*255.0f))|0xFF000000
Definition at line 67 of file render2d.h.
◆ VRGBA_TO_INT32
| #define VRGBA_TO_INT32 |
( |
| rgb | ) |
|
Value:(unsigned(rgb[3]*255.0f)<<24)|(unsigned(rgb[0]*255.0f)<<16)|(unsigned(rgb[1]*255.0f)<<8)|(unsigned(rgb[2]*255.0f))
Definition at line 68 of file render2d.h.