ãOpenGLããã°ã©ãã³ã°ï¼on MFCï¼ãã§ã¯, OpenGLã®å®è£
æ¹æ³ãå¦ç¿ãã. ããã§ãä½æããã·ã¼ã³ã¯2次å
ã§ãã£ãã, ä»åã¯3次å
ã·ã¼ã³ãå®ç¾ããæ¹æ³ãç¿å¾ãã. ã¾ã, ãOpenGLããã°ã©ãã³ã°ï¼on MFCï¼ããåèã«, MFC AppWizard(exe)ããSDIã¢ããªã±ã¼ã·ã§ã³ãOgl3Dããä½æãã. å
容 ä½æãã3次å
ã·ã¼ã³ AppWizard(exe)ã®ã¹ããã OnDrawé¢æ°ã®å¤æ´ DrawWithOpenGLé¢æ°ã®å®ç¾© éè¦å¤æ ããç«ä½çã«è¦ãã ããã¹ãã¹ãå¦ç æçµçãªDrawWithOpenGLé¢æ° ä½æãã3次å
ã·ã¼ã³ ä¸å³ã®ããã«, XYå¹³é¢ã«å¹³è¡ã§ä¸å¿ã(0, 0, 0.5)ã®ä½ç½®ã«ããä¸è¾ºã®é·ãã1ã®èµ¤è²ã®æ£æ¹å½¢ã¨, YZå¹³é¢ã«å¹³è¡ã§ä¸å¿ã(-0.5, 0, 0)ã®ä½ç½®ã«ããä¸è¾ºã®é·ãã1ã®ç·è²ã®æ£æ¹å½¢ãåå¨ããã·ã¼ã³ãä½æãã.
{{#tags}}- {{label}}
{{/tags}}