Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
é ç¹é åãæå¹åããã«ã¯ãGL_VERTEX_ARRAY ã glEnableClientState() ã«æå®ãã¾ã ãªãããã®å®æ°ã glEnable() é¢æ°ã§æå¹åãããã¨ãã§ããªããã¨ãã㨠ãã®ãããªé åæ å ±ã¯ãµã¼ãã¼ã§ã¯ãªããã¯ã©ã¤ã¢ã³ãã«ä¿åãããããã§ã 次ã«ãé åãã¼ã¿ãä½æãã¦ä¿åããå¿ è¦ãããã¾ã ããã§è¨ããé åãã¯ããã°ã©ãã³ã°è¨èªã®é åã§ã¯ãªã OpenGL ã«ãããé åã§ã é ç¹é åãå®ç¾©ããã«ã¯ glVertexPointer() é¢æ°ã使ãã¾ã void glVertexPointer( GLint size , GLenum type , GLsizei stride , GLsizei count, const GLvoid *pointer ); size ã«ã¯ãé ç¹ãã¼ã¿ã®ãµã¤ãºãæå®ãã¾ã ããã§è¨ããµã¤ãºã¯ãé ç¹ãã¼ã¿ãä¿æãã座æ¨æ å ±ã®æ°ã§
ç®æ¬¡ æºå ã¾ãã¯Cè¨èªããã°ã©ã ãå¼ã³åºã ç°¡åãªæ°å¤ã®ããã¨ã NArrayé åã渡ã Swigã使ã£ã¦ãæ軽å¤æ åèæç® æºå ãã®ãã¥ã¼ããªã¢ã«ã§ã¯Ruby 1.8ç³»åã®ä½¿ç¨ãåæã«ãã¦ãã¾ãã 確èªã¯ãã¹ã¦Ruby 1.8.4 [i386-Cygwin]ã§è¡ãã¾ããã NArrayã¯Version 0.5.8ãç¨ãã¦ãã¾ãã ã¾ããã以å¤ã«ä»¥å¤ã«ä»¥ä¸ã®ãã®ãå¿ è¦ã§ãã Cã³ã³ãã¤ã© Rubyã®ã³ã³ãã¤ã«ã«ç¨ãããã®ã¨åããã®ãå¿ è¦ã§ãã ãã¤ããªããã±ã¼ã¸ãå°å ¥ããå ´åã¯ã©ã®ã³ã³ãã¤ã©ã§ãã«ãããããã®ã ç¥ãå¿ è¦ãããã¾ãããUNIXç³»ã§ã¯ããã¦ãgccã§ãã ruby.h, mkmf.rb Rubyãã½ã¼ã¹ã³ã¼ãããèªåã§ãã«ãããå ´åã¯ã¤ã³ã¹ãã¼ã«ããã¦ãã㨠æãã¾ããããã¤ããªããã±ã¼ã¸ãå°å ¥ããå ´åã¯ruby.hãmkmf.rbãããã 確èªããå¿ è¦ãããã¾ããéçº
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}