Code Cleanup: make cpack into a function.
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
* color, while not being endian-sensitive. On little-endians, this
|
||||
* is the same as doing a 'naive' indexing, on big-endian, it is not!
|
||||
* */
|
||||
#define cpack(x) glColor3ub( ((x) & 0xFF), (((x) >> 8) & 0xFF), (((x) >> 16) & 0xFF) )
|
||||
void cpack(unsigned int x);
|
||||
|
||||
#define glMultMatrixf(x) glMultMatrixf( (float *)(x))
|
||||
#define glLoadMatrixf(x) glLoadMatrixf( (float *)(x))
|
||||
|
||||
@@ -1157,3 +1157,10 @@ void glaDrawImBuf_glsl_ctx(const bContext *C, ImBuf *ibuf, float x, float y, int
|
||||
|
||||
glaDrawImBuf_glsl(ibuf, x, y, zoomfilter, view_settings, display_settings);
|
||||
}
|
||||
|
||||
void cpack(unsigned int x)
|
||||
{
|
||||
glColor3ub( ( (x) & 0xFF),
|
||||
(((x) >> 8) & 0xFF),
|
||||
(((x) >> 16) & 0xFF) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user