# HG changeset patch # User gongo@gendarme.cr.ie.u-ryukyu.ac.jp # Date 1227583323 -32400 # Node ID c5db07490d52c3d22a2838da6ccb6d0d9a8868a2 # Parent 74d0a70f60e964406e52ccc74337f9a6a42bf397 RGBA image の生成で、RGBMask を Big,Little Endian に分けて記述 diff -r 74d0a70f60e9 -r c5db07490d52 TaskManager/Test/test_render/Makefile.def --- 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 = ../../.. diff -r 74d0a70f60e9 -r c5db07490d52 TaskManager/Test/test_render/viewer_types.h --- 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);