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
khamkone
February 24, 2013
Education
0
42
Report
khamkone
February 24, 2013
Tweet
Share
Other Decks in Education
See All in Education
とある長岡高専卒のおっさんがIT企業のマネージャーになるまで / journey-from-nagaoka-kosen-grad-to-it-manager
masaru_b_cl
0
130
H5P-työkalut
matleenalaakso
4
40k
社外コミュニティの歩き方
masakiokuda
2
210
Sanapilvet opetuksessa
matleenalaakso
0
34k
Alumnote inc. Company Deck
yukinumata
0
4.4k
ROSConJP 2025 発表スライド
f0reacharr
0
250
ロータリー国際大会について~国際大会に参加しよう~:古賀 真由美 会員(2720 Japan O.K. ロータリーEクラブ・(有)誠邦産業 取締役)
2720japanoke
0
200
Linguaxes de programación
irocho
0
280
尊敬語「くださる」と謙譲語「いただく」の使い分け
hysmrk
0
110
20250807_がんばらないコミュニティ運営
ponponmikankan
0
190
【ZEPメタバース校舎操作ガイド】
ainischool
0
120
2024-2025 CBT top items
cbtlibrary
0
130
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
34
2.3k
Into the Great Unknown - MozCon
thekraken
40
2.1k
Mobile First: as difficult as doing things right
swwweet
225
10k
The Pragmatic Product Professional
lauravandoore
36
7k
It's Worth the Effort
3n
187
28k
Rails Girls Zürich Keynote
gr2m
95
14k
Leading Effective Engineering Teams in the AI Era
addyosmani
7
600
Scaling GitHub
holman
463
140k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Embracing the Ebb and Flow
colly
88
4.9k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
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;