OpenGL::Simple::Viewer 0.03
الترجمة الالية للوصف
OpenGL : : بسيطة : : عارض بيرل هو الذي يقدم النموذج البسيط OpenGL الهندسة المشاهد ، من خلال وفرة المكتبة. OpenGL أمثلة : : بسيطة : : عارض تخمة يفتح نافذة ، ويجعل بعض الهندسة من خلال اتصال معاكس روتين ثانوي » الهندسة يمكن بالتناوب ، وترجمتها ، وأسرع باستخدام mouse.When المشاهد تتحرك نحو ذلك ، لا بد من رسم نافذة وهذا يستتبع عادة تنظيف النوافذ ، وإعادة رسم هذه الخلفية ، وتحديد الموقف الصحيح والتوجيه ، ومن ثم الاستفادة من الهندسة . افتراضيا ، كل ما تحتاجه لتزويد هو روتين ثانوي التي تلفت الهندسة » كل شيء آخر هو العناية. يحددها المستعمل الخلفيات ويمكن من خلال مجموعة callback.SYNOPSIS استخدام OpenGL : : بسيطة : : عارض استخدام OpenGL : : بسيطة : : تخمة qw (: جميع) » glutInit » بلدي دولار = ت جديدة OpenGL : : بسيطة : : المشاهد (draw_geometry => (glutSolidTeapot الفرعي (1.0) »)) » glutMainLoop » المتطلبات : برل
- مرات التنزيل: 763
- متطلبات التشغيل:
- الحجم:
- الترخيص:
- الاصدار : 0.03
- اضيف في: 2009-08-08 00:00:00
- اخر تحديث: 08/08/2009
- الموقع علي الانترنت:
Description
OpenGL::Simple::Viewer is a Perl module that provides a simple OpenGL geometry viewer, through the GLUT library. An instance of OpenGL::Simple::Viewer opens a GLUT window, and renders some geometry provided through a callback subroutine; the geometry can be rotated, translated, and zoomed using the mouse.When the viewer moves around, the window must be redrawn; this usually entails clearing the window, redrawing the background, setting the correct position and orientation, and then drawing the geometry. By default, all you need to supply is a subroutine which draws the geometry; everything else is taken care of. User-defined backgrounds can be set through a callback.SYNOPSIS use OpenGL::Simple::Viewer; use OpenGL::Simple::GLUT qw(:all); glutInit; my $v = new OpenGL::Simple::Viewer( draw_geometry => sub { glutSolidTeapot(1.0); } ); glutMainLoop; Requirements:
· Perl
Moshax.com only provide legal software, please help us keeping pur site legal, if you think this page is violating copyrights please let us know by clicking here Here