SlideShare une entreprise Scribd logo
1  sur  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();

Contenu connexe

Tendances

Tendances (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
 

En vedette

[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
 

En vedette (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"
 

Similaire à 3D Wireframe Cube Program

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
 

Similaire à 3D Wireframe Cube Program (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
 

Plus de René Domínguez

Plus 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
 

Dernier

AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxJanEmmanBrigoli
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 

Dernier (20)

AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Millenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptxMillenials and Fillennials (Ethical Challenge and Responses).pptx
Millenials and Fillennials (Ethical Challenge and Responses).pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 

3D Wireframe Cube Program

  • 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();