Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Presentation1k.open_GL_lion.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Keoudone
March 01, 2013
6
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Presentation1k.open_GL_lion.pdf
Keoudone
March 01, 2013
Featured
See All Featured
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
Navigating Team Friction
lara
192
16k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Ethics towards AI in product and experience design
skipperchong
2
430
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
820
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
GraphQLとの向き合い方2022年版
quramy
50
15k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Side Projects
sachag
456
43k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
GitHub's CSS Performance
jonrohan
1033
470k
Transcript
• ໂຄສ້າຄ • ໂຄສ້າຄຂຬຄ OpenGL ໃນການຂຽນ Project ນ ້ ປະກຬບຠ
4 ພາກສ່ວນື: • ພາກສ່ວນ Header file • ພາກສ່ວນການກ ານົດ່າເລ ່ຠຕົ້ນvoid init() • ພາກສ່ວນການກ ານົດvoid Display() • ພາກສ່ວນຫ ຼັກvoid main() • Functionຫ ຼັກທ ່ ໃຊ້ໃນການແຕ້ຠແຠ່ນ: • float x, float y
• ຬະທິບາຍ Code •ພາກສ່ວນ Header file #include<glut.h> •ພາກສ່ວນກ ານົດ່າເລ ່
ຠຕົ້ນ float x; float y; void init(void) { glClearColor(0.1,1.1,0.1,1.1); glPointSize(10.0); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glLineWidth(4.0); gluOrtho2D(0.0,400.0,0.0,300.0); }
• ພາກສ່ວນການກ ານົດ void Display() ແຠ່ນສ່ວນທ ່ ໃຊ້ເກຼັບ່າຂຬຄການກ ານ ົດກລາຟຟິກເພື່
ຬສົ່ຄໄປສະແດຄຜົນ ໃນຟຼັຄຊຼັນ glutDisplayFunc(). Function ທ ່ ໃຊ້ໃນການ(ແຕ້ຠອູບ) glBegin(GL_POLYGON); ແຠ່ນການສ້າຄອູບທ ່ ຠ ຫ າຍລ່ຽຠ glBegin(GL_TRIANGLE); ແຠ່ນການສ້າຄອູບສາຠລ່ຽຠ glBegin(GL_LINES); ແຠ່ນການເຊື່ຬຠເຠຼັດ glBegin(GL_LINE_LOOP); ແຠ່ນການເຊື່ຬຠເຠຼັດຕ ່ເນື່ຬຄກ ຼັນ
ຜົນການ Run