SlideShare una empresa de Scribd logo
1 de 1
PROGRAMA DE OBJETOS 3D WIRE (ALAMBRE)
           #include<GL/glut.h>
           #include <GL/gl.h>

           voidinicializa(void){
           glClearColor(1.0,1.0,1.0,0.0);
           }
           voiddibuja(void){
           glClear(GL_COLOR_BUFFER_BIT);
           glColor3f(1.0,0.0,0.0); // el color de nuestra figura
           gluLookAt(5.0,5.0,5.0,0.0,0.0,0.0,0.0,1.0,0.0);
           glPushMatrix();
           glScalef(1.0,1.0,1.0);
           glRotatef(10.0,1.0,0.0,0.0);
           glTranslatef(2.0,0.0,0.0);
           glutWireCube(1.0);
           glPopMatrix();

           glFlush();
           }

           voidReshapeFun(int w, int h){
           glViewport(0,0,w,h);
           glMatrixMode(GL_PROJECTION);
           glFrustum(-4.0,4.0,-4.0,4.0,4.0,40.0);
           glMatrixMode(GL_MODELVIEW);
           glClear(GL_COLOR_BUFFER_BIT);
           }

           int main (intargc, char** argv)
           {
           glutInit(&argc, argv);
           glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
           glutInitWindowPosition(1,1);
           glutInitWindowSize(1000,700);
           glutCreateWindow("Objetos 3D");
           inicializa();
           glutDisplayFunc(dibuja);
           glutReshapeFunc(ReshapeFun);
           glutMainLoop();
           return 0;
           }

          Utilizar las siguientes instrucciones
glutWireCube(tamaño);                                              glutWireCone(radio, alt, reph, repv);
glutWireTeapot(tamaño);                                            glutWireTorus(radio,radcentro,reph, repv);
glutWireDodecahedron();                                            glutWireOctahedron();
glutWireSphere(radio,reph,repv);                                   glutWireTetrahedron();

Más contenido relacionado

La actualidad más candente

La actualidad más candente (10)

Coding with Vim
Coding with VimCoding with Vim
Coding with Vim
 
Bitcoin:Next
Bitcoin:NextBitcoin:Next
Bitcoin:Next
 
Ee
EeEe
Ee
 
C & Python Introduction
C & Python IntroductionC & Python Introduction
C & Python Introduction
 
Reverse string
Reverse stringReverse string
Reverse string
 
Fragmentation
FragmentationFragmentation
Fragmentation
 
Grafika komputer 2
Grafika komputer 2Grafika komputer 2
Grafika komputer 2
 
2 d rotation
2 d rotation2 d rotation
2 d rotation
 
Trip itparsing
Trip itparsingTrip itparsing
Trip itparsing
 
Understanding the nodejs event loop
Understanding the nodejs event loopUnderstanding the nodejs event loop
Understanding the nodejs event loop
 

Destacado

[SLIDE FACTORY] [S21] Lê Ngọc Hà - Bài tốt nghiệp
[SLIDE FACTORY] [S21] Lê Ngọc Hà - Bài tốt nghiệp[SLIDE FACTORY] [S21] Lê Ngọc Hà - Bài tốt nghiệp
[SLIDE FACTORY] [S21] Lê Ngọc Hà - Bài tốt nghiệpSLIDE FACTORY
 
Zsófi Major - Drupal Camp Organization: The Good Parts
Zsófi Major - Drupal Camp Organization: The Good PartsZsófi Major - Drupal Camp Organization: The Good Parts
Zsófi Major - Drupal Camp Organization: The Good PartsZsofi Major
 
SafeCare presentation 2013.06.07
SafeCare presentation 2013.06.07SafeCare presentation 2013.06.07
SafeCare presentation 2013.06.07Mike Johnson
 
Weed Control Odessa TX
Weed Control Odessa TXWeed Control Odessa TX
Weed Control Odessa TXtrophyweed
 
House of the future
House of the futureHouse of the future
House of the futuremarc_caimari
 
Activité 4 livrable1 Alise R-B
Activité 4 livrable1 Alise R-BActivité 4 livrable1 Alise R-B
Activité 4 livrable1 Alise R-BAlise23
 
presentacion del ensayo dhtic's reciclaje
presentacion del ensayo dhtic's reciclajepresentacion del ensayo dhtic's reciclaje
presentacion del ensayo dhtic's reciclajeezequiel saavedra tobon
 
Présentation Bekara Conciergerie 020316
Présentation Bekara Conciergerie 020316Présentation Bekara Conciergerie 020316
Présentation Bekara Conciergerie 020316Jean-Claude Bechara
 
Reflections. Torrevieja 2012
Reflections. Torrevieja 2012Reflections. Torrevieja 2012
Reflections. Torrevieja 2012Luis Rodríguez
 
Entrevistado por Instagrameando.com
Entrevistado por Instagrameando.comEntrevistado por Instagrameando.com
Entrevistado por Instagrameando.comLuis Rodríguez
 
Managing Consumer Data Privacy
Managing Consumer Data PrivacyManaging Consumer Data Privacy
Managing Consumer Data PrivacyGigya
 
[SLIDE FACTORY] CV Slide - Nguyễn Thị Lan Phượng
[SLIDE FACTORY] CV Slide - Nguyễn Thị Lan Phượng[SLIDE FACTORY] CV Slide - Nguyễn Thị Lan Phượng
[SLIDE FACTORY] CV Slide - Nguyễn Thị Lan PhượngSLIDE FACTORY
 
"Arquitectura en la fotografía móvil"
"Arquitectura en la fotografía móvil""Arquitectura en la fotografía móvil"
"Arquitectura en la fotografía móvil"Luis Rodríguez
 

Destacado (18)

[SLIDE FACTORY] [S21] Lê Ngọc Hà - Bài tốt nghiệp
[SLIDE FACTORY] [S21] Lê Ngọc Hà - Bài tốt nghiệp[SLIDE FACTORY] [S21] Lê Ngọc Hà - Bài tốt nghiệp
[SLIDE FACTORY] [S21] Lê Ngọc Hà - Bài tốt nghiệp
 
Zsófi Major - Drupal Camp Organization: The Good Parts
Zsófi Major - Drupal Camp Organization: The Good PartsZsófi Major - Drupal Camp Organization: The Good Parts
Zsófi Major - Drupal Camp Organization: The Good Parts
 
SafeCare presentation 2013.06.07
SafeCare presentation 2013.06.07SafeCare presentation 2013.06.07
SafeCare presentation 2013.06.07
 
Menú feb 13
Menú feb 13Menú feb 13
Menú feb 13
 
Weed Control Odessa TX
Weed Control Odessa TXWeed Control Odessa TX
Weed Control Odessa TX
 
House of the future
House of the futureHouse of the future
House of the future
 
Apocalipsa nt
Apocalipsa ntApocalipsa nt
Apocalipsa nt
 
Activité 4 livrable1 Alise R-B
Activité 4 livrable1 Alise R-BActivité 4 livrable1 Alise R-B
Activité 4 livrable1 Alise R-B
 
presentacion del ensayo dhtic's reciclaje
presentacion del ensayo dhtic's reciclajepresentacion del ensayo dhtic's reciclaje
presentacion del ensayo dhtic's reciclaje
 
Présentation Bekara Conciergerie 020316
Présentation Bekara Conciergerie 020316Présentation Bekara Conciergerie 020316
Présentation Bekara Conciergerie 020316
 
Clase 5-cationes g2-1 parte-Hg-Bi-Cu-Cd
Clase 5-cationes g2-1 parte-Hg-Bi-Cu-CdClase 5-cationes g2-1 parte-Hg-Bi-Cu-Cd
Clase 5-cationes g2-1 parte-Hg-Bi-Cu-Cd
 
Reflections. Torrevieja 2012
Reflections. Torrevieja 2012Reflections. Torrevieja 2012
Reflections. Torrevieja 2012
 
Entrevistado por Instagrameando.com
Entrevistado por Instagrameando.comEntrevistado por Instagrameando.com
Entrevistado por Instagrameando.com
 
Clase 4-marcha del grupo 1
Clase 4-marcha del grupo 1Clase 4-marcha del grupo 1
Clase 4-marcha del grupo 1
 
Casa do Futuro
Casa do FuturoCasa do Futuro
Casa do Futuro
 
Managing Consumer Data Privacy
Managing Consumer Data PrivacyManaging Consumer Data Privacy
Managing Consumer Data Privacy
 
[SLIDE FACTORY] CV Slide - Nguyễn Thị Lan Phượng
[SLIDE FACTORY] CV Slide - Nguyễn Thị Lan Phượng[SLIDE FACTORY] CV Slide - Nguyễn Thị Lan Phượng
[SLIDE FACTORY] CV Slide - Nguyễn Thị Lan Phượng
 
"Arquitectura en la fotografía móvil"
"Arquitectura en la fotografía móvil""Arquitectura en la fotografía móvil"
"Arquitectura en la fotografía móvil"
 

Similar a Programa de objetos 3 d wire

Tutorial Open GL (Listing Code)
Tutorial Open GL (Listing Code)Tutorial Open GL (Listing Code)
Tutorial Open GL (Listing Code)Aila Gema Safitri
 
Computer Graphics and Multimedia lab report
Computer Graphics and Multimedia lab reportComputer Graphics and Multimedia lab report
Computer Graphics and Multimedia lab reportBijoy679
 
01.Opengl_intro-2.ppt
01.Opengl_intro-2.ppt01.Opengl_intro-2.ppt
01.Opengl_intro-2.pptEngrZamaan
 
Intro to Computer Graphics.ppt
Intro to Computer Graphics.pptIntro to Computer Graphics.ppt
Intro to Computer Graphics.pptadil104135
 
Ass day3 1_bd flag
Ass day3 1_bd flagAss day3 1_bd flag
Ass day3 1_bd flagRobi Parvez
 
The fallowing program shows the simple transformation #define GLEW.pdf
The fallowing program shows the simple transformation #define GLEW.pdfThe fallowing program shows the simple transformation #define GLEW.pdf
The fallowing program shows the simple transformation #define GLEW.pdfarwholesalelors
 
FLTK Summer Course - Part VIII - Eighth Impact - Exercises
FLTK Summer Course - Part VIII - Eighth Impact - ExercisesFLTK Summer Course - Part VIII - Eighth Impact - Exercises
FLTK Summer Course - Part VIII - Eighth Impact - ExercisesMichel Alves
 
animation.#include windows.h#include GLglut.h#inclu.pdf
animation.#include windows.h#include GLglut.h#inclu.pdfanimation.#include windows.h#include GLglut.h#inclu.pdf
animation.#include windows.h#include GLglut.h#inclu.pdfambritgames
 
#includefloat angle, move, scene, roadmove,turn, on=1; int i, st.docx
#includefloat angle, move, scene, roadmove,turn, on=1; int i, st.docx#includefloat angle, move, scene, roadmove,turn, on=1; int i, st.docx
#includefloat angle, move, scene, roadmove,turn, on=1; int i, st.docxajoy21
 
Learning WebGLで学ぶWebGL入門
Learning WebGLで学ぶWebGL入門Learning WebGLで学ぶWebGL入門
Learning WebGLで学ぶWebGL入門nakamura001
 
Ass day3 2_olympic logos
Ass day3 2_olympic logosAss day3 2_olympic logos
Ass day3 2_olympic logosRobi Parvez
 
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdfalokopticalswatchco0
 

Similar a Programa de objetos 3 d wire (20)

Tutorial Open GL (Listing Code)
Tutorial Open GL (Listing Code)Tutorial Open GL (Listing Code)
Tutorial Open GL (Listing Code)
 
Computer Graphics and Multimedia lab report
Computer Graphics and Multimedia lab reportComputer Graphics and Multimedia lab report
Computer Graphics and Multimedia lab report
 
01.Opengl_intro-2.ppt
01.Opengl_intro-2.ppt01.Opengl_intro-2.ppt
01.Opengl_intro-2.ppt
 
Development with OpenGL and Qt
Development with OpenGL and QtDevelopment with OpenGL and Qt
Development with OpenGL and Qt
 
opengl.ppt
opengl.pptopengl.ppt
opengl.ppt
 
Intro to Computer Graphics.ppt
Intro to Computer Graphics.pptIntro to Computer Graphics.ppt
Intro to Computer Graphics.ppt
 
Ass day3 1_bd flag
Ass day3 1_bd flagAss day3 1_bd flag
Ass day3 1_bd flag
 
The fallowing program shows the simple transformation #define GLEW.pdf
The fallowing program shows the simple transformation #define GLEW.pdfThe fallowing program shows the simple transformation #define GLEW.pdf
The fallowing program shows the simple transformation #define GLEW.pdf
 
Komputer Grafik
Komputer GrafikKomputer Grafik
Komputer Grafik
 
FLTK Summer Course - Part VIII - Eighth Impact - Exercises
FLTK Summer Course - Part VIII - Eighth Impact - ExercisesFLTK Summer Course - Part VIII - Eighth Impact - Exercises
FLTK Summer Course - Part VIII - Eighth Impact - Exercises
 
Robot by gulnaz
Robot by gulnazRobot by gulnaz
Robot by gulnaz
 
Robot by gulnaz
Robot by gulnazRobot by gulnaz
Robot by gulnaz
 
animation.#include windows.h#include GLglut.h#inclu.pdf
animation.#include windows.h#include GLglut.h#inclu.pdfanimation.#include windows.h#include GLglut.h#inclu.pdf
animation.#include windows.h#include GLglut.h#inclu.pdf
 
#includefloat angle, move, scene, roadmove,turn, on=1; int i, st.docx
#includefloat angle, move, scene, roadmove,turn, on=1; int i, st.docx#includefloat angle, move, scene, roadmove,turn, on=1; int i, st.docx
#includefloat angle, move, scene, roadmove,turn, on=1; int i, st.docx
 
Learning WebGLで学ぶWebGL入門
Learning WebGLで学ぶWebGL入門Learning WebGLで学ぶWebGL入門
Learning WebGLで学ぶWebGL入門
 
Ass day3 2_olympic logos
Ass day3 2_olympic logosAss day3 2_olympic logos
Ass day3 2_olympic logos
 
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
1. Modify code to change cube into pyramid.2. Make the pyramid int.pdf
 
Practicing 2d drawing primitives
Practicing 2d drawing primitivesPracticing 2d drawing primitives
Practicing 2d drawing primitives
 
Robot by gulnaz
Robot by gulnazRobot by gulnaz
Robot by gulnaz
 
Robot by gulnaz
Robot by gulnazRobot by gulnaz
Robot by gulnaz
 

Más de René Domínguez

Más de René Domínguez (20)

Manual de prácticas
Manual de prácticasManual de prácticas
Manual de prácticas
 
Microprocesador
MicroprocesadorMicroprocesador
Microprocesador
 
Ensamble pc
Ensamble pcEnsamble pc
Ensamble pc
 
Como crear blog
Como crear blogComo crear blog
Como crear blog
 
Antologia electronica basica
Antologia electronica basicaAntologia electronica basica
Antologia electronica basica
 
Evaluación diagnóstica
Evaluación diagnósticaEvaluación diagnóstica
Evaluación diagnóstica
 
Examen redes
Examen redesExamen redes
Examen redes
 
Hoja de revisión de prácticas
Hoja de revisión de prácticasHoja de revisión de prácticas
Hoja de revisión de prácticas
 
La importancia del algebra booleana en mi mercado laboral y practica profesional
La importancia del algebra booleana en mi mercado laboral y practica profesionalLa importancia del algebra booleana en mi mercado laboral y practica profesional
La importancia del algebra booleana en mi mercado laboral y practica profesional
 
Lenguajes de programación java
Lenguajes de programación javaLenguajes de programación java
Lenguajes de programación java
 
Lenguajes de programación
Lenguajes de programaciónLenguajes de programación
Lenguajes de programación
 
Practicas 16 agosto 2012
Practicas 16 agosto 2012Practicas 16 agosto 2012
Practicas 16 agosto 2012
 
Practicas java
Practicas javaPracticas java
Practicas java
 
Curso De Formadores de Turores
Curso De Formadores de TuroresCurso De Formadores de Turores
Curso De Formadores de Turores
 
Apuntes de Ensamble
Apuntes de Ensamble Apuntes de Ensamble
Apuntes de Ensamble
 
Manual practicas Electricidad y magnetismo
Manual practicas Electricidad y magnetismoManual practicas Electricidad y magnetismo
Manual practicas Electricidad y magnetismo
 
Manual
ManualManual
Manual
 
Conjuntos
ConjuntosConjuntos
Conjuntos
 
Conjuntos
ConjuntosConjuntos
Conjuntos
 
Simulador de juego piedra
Simulador de juego piedraSimulador de juego piedra
Simulador de juego piedra
 

Último

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 

Último (20)

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 

Programa de objetos 3 d wire

  • 1. PROGRAMA DE OBJETOS 3D WIRE (ALAMBRE) #include<GL/glut.h> #include <GL/gl.h> voidinicializa(void){ glClearColor(1.0,1.0,1.0,0.0); } voiddibuja(void){ glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0,0.0,0.0); // el color de nuestra figura gluLookAt(5.0,5.0,5.0,0.0,0.0,0.0,0.0,1.0,0.0); glPushMatrix(); glScalef(1.0,1.0,1.0); glRotatef(10.0,1.0,0.0,0.0); glTranslatef(2.0,0.0,0.0); glutWireCube(1.0); glPopMatrix(); glFlush(); } voidReshapeFun(int w, int h){ glViewport(0,0,w,h); glMatrixMode(GL_PROJECTION); glFrustum(-4.0,4.0,-4.0,4.0,4.0,40.0); glMatrixMode(GL_MODELVIEW); glClear(GL_COLOR_BUFFER_BIT); } int main (intargc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowPosition(1,1); glutInitWindowSize(1000,700); glutCreateWindow("Objetos 3D"); inicializa(); glutDisplayFunc(dibuja); glutReshapeFunc(ReshapeFun); glutMainLoop(); return 0; } Utilizar las siguientes instrucciones glutWireCube(tamaño); glutWireCone(radio, alt, reph, repv); glutWireTeapot(tamaño); glutWireTorus(radio,radcentro,reph, repv); glutWireDodecahedron(); glutWireOctahedron(); glutWireSphere(radio,reph,repv); glutWireTetrahedron();