… | |
… | |
1914 | r *= a; |
1914 | r *= a; |
1915 | g *= a; |
1915 | g *= a; |
1916 | b *= a; |
1916 | b *= a; |
1917 | } |
1917 | } |
1918 | // microsoft visual "c" rounds instead of truncating... |
1918 | // microsoft visual "c" rounds instead of truncating... |
1919 | glColor4ub (MIN ((int)(r * 256.f), 255), |
1919 | glColor4f (r, g, b, a); |
1920 | MIN ((int)(g * 256.f), 255), |
|
|
1921 | MIN ((int)(b * 256.f), 255), |
|
|
1922 | MIN ((int)(a * 256.f), 255)); |
|
|
1923 | |
1920 | |
1924 | void glInterleavedArrays (int format, int stride, char *data) |
1921 | void glInterleavedArrays (int format, int stride, char *data) |
1925 | |
1922 | |
1926 | void glDrawElements (int mode, int count, int type, char *indices) |
1923 | void glDrawElements (int mode, int count, int type, char *indices) |
1927 | |
1924 | |