Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Report
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
khamkone
February 24, 2013
Education
0
42
Report
khamkone
February 24, 2013
Tweet
Share
Other Decks in Education
See All in Education
Web Application Frameworks - Lecture 3 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Web 2.0 Patterns and Technologies - Lecture 8 - Web Technologies (1019888BNR)
signer
PRO
0
3k
【dip】「なりたい自分」に近づくための、「自分と向き合う」小さな振り返り
dip_tech
PRO
0
230
HyRead2526
cbtlibrary
0
200
【旧:ZEPメタバース校舎操作ガイド】
ainischool
0
790
心理学を学び活用することで偉大なスクラムマスターを目指す − 大学とコミュニティを組み合わせた学びの循環 / Becoming a great Scrum Master by learning and using psychology
psj59129
1
1.6k
2025年度伊藤正彦ゼミ紹介
imash
0
160
React完全入門
mickey_kubo
1
110
Security, Privacy and Trust - Lecture 11 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Activité_5_-_Les_indicateurs_du_climat_global.pdf
bernhardsvt
0
140
TeXで変える教育現場
doratex
1
12k
0121
cbtlibrary
0
120
Featured
See All Featured
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Documentation Writing (for coders)
carmenintech
77
5.2k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
130
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
Ruling the World: When Life Gets Gamed
codingconduct
0
140
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
63
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
380
Transcript
ສະເຫນ ີ ໂດຍ ຫ ້ ອງ :4CS7 ນາງ
ດວງຕາວ ັ ນ ແສງໄຊຍະພອນ ນາງ ວ ິ ຍະພອນ ໄຊຍະລາດ ນາງ ບ ຸ ດສະດ ີ ພອນຄ າເພ ັ ງ
None
#include <GL/glut.h> static GLfloat spin = 0.0;
void display(void) { glClear(GL_COLOR_BUFFER_BIT); glPushMatrix(); glRotatef(spin, 0.0, 1.0, 1.0); glColor3f(3.0, 0.0, 0.0); glRectf(-55.0, -2.0, 55.0, 2.0); glPopMatrix(); glutSwapBuffers();
} void spinDisplay(void) { spin =
spin + 0.1; if (spin > 360.0) spin = spin - 360.0; glutPostRedisplay(); }
void init(void) { glClearColor (0.0, 0.0, 0.0,
0.0); glShadeModel (GL_FLAT); }
void reshape(int w, int h) { glViewport
(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-50.0, 50.0, -50.0, 50.0, -1.0, 1.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); }
void mouse(int button, int state, int x, int y)
{ switch (button) { case GLUT_LEFT_BUTTON: if (state == GLUT_DOWN) glutIdleFunc(spinDisplay); break; case GLUT_MIDDLE_BUTTON: case GLUT_RIGHT_BUTTON: if (state == GLUT_DOWN) glutIdleFunc(0); break; default: break; } }
int main(int argc, char** argv) { glutInit(&argc,
argv); glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB); glutInitWindowSize (250, 250); glutInitWindowPosition (150,150); glutCreateWindow (argv[0]); init (); glutDisplayFunc(display); glutReshapeFunc(reshape); glutMouseFunc(mouse); glutMainLoop(); return 0;