Mercurial > hg > Game > Cerium
changeset 127:c5db07490d52 draft
RGBA image の生成で、RGBMask を Big,Little Endian に分けて記述
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 25 Nov 2008 12:22:03 +0900 |
parents | 74d0a70f60e9 |
children | 95e2046eb46f |
files | TaskManager/Test/test_render/Makefile.def TaskManager/Test/test_render/viewer_types.h |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/Makefile.def Tue Nov 25 11:37:57 2008 +0900 +++ b/TaskManager/Test/test_render/Makefile.def Tue Nov 25 12:22:03 2008 +0900 @@ -3,10 +3,10 @@ # include/library path # ex: macosx #CERIUM = /Users/gongo/Source/Concurrency/Game_project/Cerium -#CERIUM = /Users/gongo/Source/hg/Cerium +CERIUM = /Users/gongo/Source/hg/Cerium # ex: linux/ps3 -CERIUM = /home/gongo/Cerium +#CERIUM = /home/gongo/Cerium #CERIUM = ../../..
--- a/TaskManager/Test/test_render/viewer_types.h Tue Nov 25 11:37:57 2008 +0900 +++ b/TaskManager/Test/test_render/viewer_types.h Tue Nov 25 12:22:03 2008 +0900 @@ -19,10 +19,17 @@ // OPENGL, }; +#if defined(__LITTLE_ENDIAN__) +const int redMask = 0x000000ff; +const int greenMask = 0x0000ff00; +const int blueMask = 0x00ff0000; +const int alphaMask = 0xff000000; +#else const int redMask = 0xff000000; const int greenMask = 0x00ff0000; const int blueMask = 0x0000ff00; const int alphaMask = 0x000000ff; +#endif extern int getLocalX(int x); extern int getLocalY(int y);