Last change
on this file since 79312 was 71027, checked in by vboxsync, 7 years ago |
FE/Qt: big svn props cleanup
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
274 bytes
|
Line | |
---|
1 | /* $Id: splitBGRA.c 71027 2018-02-15 14:33:48Z vboxsync $ */
|
---|
2 | float vboxSplitBGRA(vec4 color, float coord)
|
---|
3 | {
|
---|
4 | int pix = int(coord);
|
---|
5 | float part = coord - float(pix);
|
---|
6 | if(part < 0.25)
|
---|
7 | return color.b;
|
---|
8 | if(part < 0.5)
|
---|
9 | return color.g;
|
---|
10 | if(part < 0.75)
|
---|
11 | return color.r;
|
---|
12 | return color.a;
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.