OpenGL graphic application တစ္ခုကို ဖန္တီးေတာ့မယ္ ဆိုရင္ အေကာင္းဆံုးက C/C++ programming language က လို႔ ကၽြန္ေတာ္ေတာ့ ျမင္ပါတယ္။ OpenGL က Java နဲ႔လည္း ခ်ိတ္သံုးလို႔ ရပါတယ္။ OpenGL development အတြက္ သံုးလို႔ရမယ့္ C/C++ compiler ေတြက အမ်ားႀကီး ရိွတာကို ေတြ႕ႏိုင္ပါတယ္။
Microsoft Visual Studio Professional လိုမ်ိဳး IDE ေတြက ေကာင္းေပမယ့္ Free မရပါဘူး။ တစ္ကယ္တမ္း ပိုက္ဆံေပး ၀ယ္ရတာဆိုေတာ့ ေက်ာင္းသား ေတြအတြက္ မလြယ္ဘူးေပါ့။ Free download လုပ္ယူလို႔ ရတဲ့ OpenGL အတြက္ အလြယ္ဆံုး သံုးလို႔ ရမယ့္ C/C++ compiler က DEV C++ ပါ။ ဒီေနရာကေန လြယ္လြယ္ေလး download လုပ္ယူလုိ႔ ရပါတယ္။
Microsoft Visual Studio Professional လိုမ်ိဳး IDE ေတြက ေကာင္းေပမယ့္ Free မရပါဘူး။ တစ္ကယ္တမ္း ပိုက္ဆံေပး ၀ယ္ရတာဆိုေတာ့ ေက်ာင္းသား ေတြအတြက္ မလြယ္ဘူးေပါ့။ Free download လုပ္ယူလို႔ ရတဲ့ OpenGL အတြက္ အလြယ္ဆံုး သံုးလို႔ ရမယ့္ C/C++ compiler က DEV C++ ပါ။ ဒီေနရာကေန လြယ္လြယ္ေလး download လုပ္ယူလုိ႔ ရပါတယ္။
http://www.toggle.com/lv/software/download/kl7863.htm
Dev C++ မွာ ေကာင္းတာတစ္ခုက OpenGL project အတြက္ ready made template ပါၿပီး သားပါ။ New project မွာ OpenGL application လို႔ ေရြးေပးလိုက္ တာနဲ႔ OpenGL စေရးလို႔ ရမယ့္ project တစ္ခု ရလာမွာပါ။ ကိုယ္က ဘာမွ ေထြေထြထူးထူး setup လုပ္ေပး ေနစရာ မလိုပါဘူး။ သံုးရတာလည္း လြယ္ပါတယ္။ DevC++ က platform independent ျဖစ္တဲ့ အတြက္ သူန႔ဲ ေရးထားတ့ဲ application ကို ဘယ္ OS မွာမဆို run လို႔ ရႏိုင္ပါတယ္။ Dev C++ အတြက္ တစ္ျခား plug-in tools ေတြလည္း အမ်ားႀကီးပါ။ ဥပမာ- Dev C++ နဲ႔ DirectX application တစ္ခုကို ဖန္တီးမယ္ ဆိုရင္ သူ႔အတြက္ DirectX plug-in tool ေတြကို Internet ကေန download လုပ္ယူလို႔ ရပါတယ္။ ကၽြန္ေတာ့ရဲ႕ ပထမဆံုး CG assignment ကို Dev C++ နဲ႔ လုပ္ယူခဲ့ပါတယ္။
Dev C++ မွာ ေကာင္းတာတစ္ခုက OpenGL project အတြက္ ready made template ပါၿပီး သားပါ။ New project မွာ OpenGL application လို႔ ေရြးေပးလိုက္ တာနဲ႔ OpenGL စေရးလို႔ ရမယ့္ project တစ္ခု ရလာမွာပါ။ ကိုယ္က ဘာမွ ေထြေထြထူးထူး setup လုပ္ေပး ေနစရာ မလိုပါဘူး။ သံုးရတာလည္း လြယ္ပါတယ္။ DevC++ က platform independent ျဖစ္တဲ့ အတြက္ သူန႔ဲ ေရးထားတ့ဲ application ကို ဘယ္ OS မွာမဆို run လို႔ ရႏိုင္ပါတယ္။ Dev C++ အတြက္ တစ္ျခား plug-in tools ေတြလည္း အမ်ားႀကီးပါ။ ဥပမာ- Dev C++ နဲ႔ DirectX application တစ္ခုကို ဖန္တီးမယ္ ဆိုရင္ သူ႔အတြက္ DirectX plug-in tool ေတြကို Internet ကေန download လုပ္ယူလို႔ ရပါတယ္။ ကၽြန္ေတာ့ရဲ႕ ပထမဆံုး CG assignment ကို Dev C++ နဲ႔ လုပ္ယူခဲ့ပါတယ္။
Microsoft ရဲ႕ နာမည္ၾကီး Visual C++ ကို ပဲ သံုးခ်င္တယ္ ဆိုရင္ေတာ့ အလကားရတဲ့ Visual C++ Express Edition ကို download လုပ္ၿပီး သံုးလို႔ ရပါတယ္။ Visual C++ 2008 Express Edition မွ မဟုတ္ပါဘူး။ Visual C++2005 Express Edition ဆိုရင္ OpenGL development အတြက္ ေကာင္းေကာင္း လံုေလာက္ပါတယ္။ OpenGL program ကို ဖန္တီးဖို႔ အတြက္ Visual C++ နဲ႔ GLUT ကို ခ်ိတ္ေပးဖို႔ေတာ့ လိုပါတယ္။
ေနာက္ၿပီး သတိထားရမွာက Visual C++ Express Edition က သာမာန္ Win32 application ေတြကို pure Win32 ပံုစံ ေရးဖို႔ အတြက္ လုိအပ္တဲ့ library ေတြ အကုန္ မပါလာပါဘူး။ ဒါေၾကာင့္ သူ႔ကို သံုးၿပီး OpenGL ေရးမယ္ ဆိုရင္ ျပႆနာ တက္ႏိုင္ပါတယ္။ ဒီအတြက္ Microsoft Platform SDK (Software Development Kit) ကို download ဆြဲၿပီး ကိုယ့္ကြန္ပ်ဴတာထဲကို install လုပ္ထားဖုိ႔ လိုပါတယ္။ Platform SDK က download ဆြဲမယ္ ဆိုရင္ Windows OS က genuine ျဖစ္ မျဖစ္ စစ္ပါတယ္။ အဲဒါကလည္း ကၽြန္ေတာ္တို႔ အတြက္ေတာ့ ျပႆနာ တစ္ခုပါ။ အခု ေအာက္က ေပးထားတဲ့ link မွာ Platform SDK ကို အစစ္အေဆးမရိွ download ဆြဲလို႔ ရပါတယ္။ ဒါေပမယ့္ သူက CD image (.img) format နဲ႔ ရပါလိမ့္မယ္။ ဆိုလိုတာက installer ကို CD ကို image လုပ္ထားတဲ့ ပံုစံနဲ႔ ၇ပါလိမ့္မယ္။
http://www.microsoft.com/downloads/thankyou.aspx?familyId=d8eecd75-1fc4-49e5-bc66-9da2b03d9b92&displayLang=en
အဲဒီ CD image file ကို ဖြင့္ဖို႔ အတြက္ CD Image ဖတ္တဲ့ program လိုပါလိမ့္မယ္။
အဲဒီအတြက္လညး္ မပူပါနဲ႔။ Power ISO ဆိုတဲ့ program ေသးေသး ေလးကို အခမဲ့ free download လုပ္လုိ႔ ရပါတယ္။ Google နဲ႔ အလြယ္တကူ ရွာလို႔ ရပါတယ္။ အဲဒီ Power ISO program ေလးကို install လုပ္ပါ။ ၿပီးရင္ ခုနက download လုပ္ထားတဲ့ Platform SDK CD image file ကို Power ISO သံုးၿပီး ဖြင့္ေပါ့။ ၿပီးရင္ install လုပ္ပါ။ Typical install ကိုပဲ သံုးလို႔ ရပါတယ္။
ေနာက္ဆံုး လုပ္ဖို႔ တစ္ခု က်န္တာက Platform SDK ကို install လုပ္ၿပီးၿပီ ဆိုရင္ Visual C++ Express Edition ရဲ႕ file ေလးတစ္ခုကို နဲနဲေလး ျပင္ေပးရပါမယ္။
Visual C++ Express Edition ကို install လုပ္ထားတဲ့ folder ထဲမွာ corewin_express.vsprops ဆိုတဲ့ file ေလးကို ရွာလိုက္ပါ။ Search နဲ႔ ရွာလို႔ ရပါတယ္။ ၿပီးရင္ AdditionalDependencies="kernel32.lib" ဆိုတဲ့ စာေၾကာင္းေလးကို အဲဒီ file ေလးထဲမွာ ေတြ႕ေအာင္ ရွာပါ။ သူ႕ကို ေအာက္မွာ ျပထားသလို ေျပာင္းလိုက္ပါ။
အဲဒီ CD image file ကို ဖြင့္ဖို႔ အတြက္ CD Image ဖတ္တဲ့ program လိုပါလိမ့္မယ္။
အဲဒီအတြက္လညး္ မပူပါနဲ႔။ Power ISO ဆိုတဲ့ program ေသးေသး ေလးကို အခမဲ့ free download လုပ္လုိ႔ ရပါတယ္။ Google နဲ႔ အလြယ္တကူ ရွာလို႔ ရပါတယ္။ အဲဒီ Power ISO program ေလးကို install လုပ္ပါ။ ၿပီးရင္ ခုနက download လုပ္ထားတဲ့ Platform SDK CD image file ကို Power ISO သံုးၿပီး ဖြင့္ေပါ့။ ၿပီးရင္ install လုပ္ပါ။ Typical install ကိုပဲ သံုးလို႔ ရပါတယ္။
ေနာက္ဆံုး လုပ္ဖို႔ တစ္ခု က်န္တာက Platform SDK ကို install လုပ္ၿပီးၿပီ ဆိုရင္ Visual C++ Express Edition ရဲ႕ file ေလးတစ္ခုကို နဲနဲေလး ျပင္ေပးရပါမယ္။
Visual C++ Express Edition ကို install လုပ္ထားတဲ့ folder ထဲမွာ corewin_express.vsprops ဆိုတဲ့ file ေလးကို ရွာလိုက္ပါ။ Search နဲ႔ ရွာလို႔ ရပါတယ္။ ၿပီးရင္ AdditionalDependencies="kernel32.lib" ဆိုတဲ့ စာေၾကာင္းေလးကို အဲဒီ file ေလးထဲမွာ ေတြ႕ေအာင္ ရွာပါ။ သူ႕ကို ေအာက္မွာ ျပထားသလို ေျပာင္းလိုက္ပါ။
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"
ၿပီးရင္ အဲဒီ file ေလးကို save လုပ္လိုက္ပါ။ ဒါဆိုရင္ ကၽြန္ေတာ္တို႔ Visual C++ Express Edition နဲ႔ OpenGL application ေတြကို ေရးလို႔ ရပါၿပီ။ လိုအပ္ရင္ ကြန္ပ်ဴတာကို restart လုပ္ေပးရမယ္ ထင္ပါတယ္။
ဒါမွမဟုတ္ ထူးထူးျခားျခား နာမည္ၾကီး Borland C++ compiler ကုိ စမ္းၾကည့္ ခ်င္တယ္ဆိုရင္လည္း Borland C++ 5.5 IDE ကို ေအာက္မွာ ေပးထားတဲ့ link ကေန Free Download လုပ္ယူလို႔ ရပါတယ္။
http://www.codegear.com/downloads/free/cppbuilder
အေပၚမွာ ေျပာထားတဲ့ software ေတြကို download လုပ္တဲ့ အခါ download speed ကို ျမန္ေအာင္ Orbit Downloader ကို သံုးသင့္ပါတယ္။ Orbit ကို Internet ကေန free download လုပ္လို႔ ရပါတယ္။ Google မွာ orbit လို႔ ရိုက္ထည့္ၿပီး ရွာလိုက္ရင္ကို ရပါတယ္။ Orbit downloader က ကၽြန္ေတာ့ အတြက္ေတာ့ ေတာ္ေတာ္ မ်ားမ်ားေသာ download ကိစၥေတြကို အခ်ိန္ တစ္၀က္ေလာက္ သက္သာေစပါတယ္။
အခုေလာေလာဆယ္ ကၽြန္ေတာ္ကေတာ့ OpenGL application ေတြကို CodeWarrior development IDE ကို သံုးၿပီး ဖန္တီးၾကည့္ဖို႔ လုပ္ေနပါတယ္။ CodeWarrior IDE က beginner ေတြအတြက္ နဲနဲ ခက္ႏို္င္ေပမယ့္ debugging လုပ္တဲ့ေနရာမွာ powerful ျဖစ္တယ္ လို႔ ထင္ပါတယ္။ သံုးရတာလည္း ေကာင္းပါတယ္။ CodeWarrior က free version ေတာ့ မဟုတ္ပါဘူး။ ဒါေပမယ့္ evaluation version ကို ရွာလု႔ိ ရႏိုင္ပါတယ္။
ကၽြန္ေတာ္ အႀကံေပးခ်င္ တာကေတာ့ IDE တစ္ခုထဲကို ဖက္တြယ္ၿပီး သံုးမေနပဲ Development IDE ေတြရဲ႕ သေဘာတရား ေတြကိုပဲ နားလည္ေအာင္ လုပ္ၿပီးေတာ့ ဘယ္ IDE ၊ ဘယ္ API နဲ႔ မဆို ျမန္ျမန္ ဆန္ဆန္ migrate လုပ္ၿပီး သံုးႏိုင္မယ္ ဆိုရင္ ပိုေကာင္း ပါတယ္။
အေပၚမွာ ေျပာထားတဲ့ software ေတြကို download လုပ္တဲ့ အခါ download speed ကို ျမန္ေအာင္ Orbit Downloader ကို သံုးသင့္ပါတယ္။ Orbit ကို Internet ကေန free download လုပ္လို႔ ရပါတယ္။ Google မွာ orbit လို႔ ရိုက္ထည့္ၿပီး ရွာလိုက္ရင္ကို ရပါတယ္။ Orbit downloader က ကၽြန္ေတာ့ အတြက္ေတာ့ ေတာ္ေတာ္ မ်ားမ်ားေသာ download ကိစၥေတြကို အခ်ိန္ တစ္၀က္ေလာက္ သက္သာေစပါတယ္။
အခုေလာေလာဆယ္ ကၽြန္ေတာ္ကေတာ့ OpenGL application ေတြကို CodeWarrior development IDE ကို သံုးၿပီး ဖန္တီးၾကည့္ဖို႔ လုပ္ေနပါတယ္။ CodeWarrior IDE က beginner ေတြအတြက္ နဲနဲ ခက္ႏို္င္ေပမယ့္ debugging လုပ္တဲ့ေနရာမွာ powerful ျဖစ္တယ္ လို႔ ထင္ပါတယ္။ သံုးရတာလည္း ေကာင္းပါတယ္။ CodeWarrior က free version ေတာ့ မဟုတ္ပါဘူး။ ဒါေပမယ့္ evaluation version ကို ရွာလု႔ိ ရႏိုင္ပါတယ္။
ကၽြန္ေတာ္ အႀကံေပးခ်င္ တာကေတာ့ IDE တစ္ခုထဲကို ဖက္တြယ္ၿပီး သံုးမေနပဲ Development IDE ေတြရဲ႕ သေဘာတရား ေတြကိုပဲ နားလည္ေအာင္ လုပ္ၿပီးေတာ့ ဘယ္ IDE ၊ ဘယ္ API နဲ႔ မဆို ျမန္ျမန္ ဆန္ဆန္ migrate လုပ္ၿပီး သံုးႏိုင္မယ္ ဆိုရင္ ပိုေကာင္း ပါတယ္။

0 comments:
Post a Comment