advertisement

computer graphics at openGL

50 %
50 %
advertisement
Information about computer graphics at openGL
Education

Published on March 1, 2014

Author: YasirAhmedKhan

Source: slideshare.net

Description

computer graphics at openGL
advertisement

COMPUTER GRAPHICS Practical # 1 Ass: 1 #include <GL/glut.h> void display() { glClear(GL_COLOR_BUFFER_BIT); glClearColor(0.0f, 0.0f, 0.0f, 1.0f); glBegin(GL_QUADS); glColor3f(1.0f, 1.0f, 0.0f); glVertex2f(-0.9f, 0.2f); glVertex2f(-0.4f, 0.2f); glVertex2f(-0.4f, 0.7f); glVertex2f(-0.9f, 0.7f); glEnd(); glFlush(); } void main(int argc, char** argv) { glutInit(&argc, argv); glutCreateWindow("SQUARE"); glutInitWindowSize(320, 320); glutInitWindowPosition(10,10); glutDisplayFunc(display); glutMainLoop(); } OUTPUT 1

COMPUTER GRAPHICS Practical # 1 Ass: 2 #include <GL/glut.h> void display() { glClear(GL_COLOR_BUFFER_BIT); glClearColor(0.0f, 0.0f, 0.0f, 1.0f); glBegin(GL_QUADS); glColor3f(1.0f, 0.0f, 0.0f); glVertex2f(-0.8f, -0.8f); glVertex2f( 0.8f, -0.8f); glVertex2f( 0.8f, 0.8f); glVertex2f(-0.8f, 0.8f); glColor3f(1.0f, 1.0f, 0.0f); glVertex2f(-0.3f, -0.3f); glVertex2f( 0.3f, -0.3f); glVertex2f( 0.3f, 0.3f); glVertex2f(-0.3f, 0.3f); glEnd(); glFlush(); } void main(int argc, char** argv) { glutInit(&argc, argv); glutCreateWindow("OpenGL Setup Test"); glutInitWindowSize(320, 320); glutInitWindowPosition(50, 50); glutDisplayFunc(display); glutMainLoop(); } OUTPUT 2

Add a comment

Related presentations

Related pages

Computer Graphics Through OpenGL: From Theory to ...

Covers the foundations of 3D computer graphics, including animation, visual techniques and 3D modeling; Comprehensive coverage of OpenGL 4.3, including the ...
Read more

OpenGL | Computer Graphics | Fandom powered by Wikia

OpenGL (Open Graphics Library) is a specification defining a cross-language cross-platform API...
Read more

Computer Graphics | edX

Learn to create images of 3D scenes in both real-time and with realistic ray tracing in this introductory computer graphics course.
Read more

Computer Graphics Using OpenGL: Amazon.de: Stephen J ...

Stephen J. - Computer Graphics Using OpenGL jetzt kaufen. ISBN: 9780131496705, Fremdsprachige Bücher - Web Design
Read more

Computer Graphics with OpenGL (Pie): Amazon.de: Donald ...

Donald Hearn, M. - Computer Graphics with OpenGL (Pie) jetzt kaufen. ISBN: 9780131202382, Fremdsprachige Bücher - C
Read more

Computer Graphics Using OpenGL (3rd Edition): Francis S ...

Buy Computer Graphics Using OpenGL (3rd Edition) on Amazon.com FREE SHIPPING on qualified orders
Read more

Computer Graphics with OpenGL - Google Books

Computer Graphics with OpenGL, 4/e is appropriate for junior-to graduate-level courses in computer graphics. Assuming no background in computer graphics ...
Read more

Computer Graphics Lecture Notes - University of...

Computer Graphics Lecture Notes ... Computer Science Department University of Toronto Version: November 24, ... 10.6 Texturing in OpenGL ...
Read more

Hearn, Baker & Carithers, Computer Graphics with Open GL ...

Computer Graphics with Open GL, 4th Edition. Donald D. Hearn, ... Complete and comprehensive discussion of the OpenGL computer graphics programming library.
Read more

OpenGL - The Industry Standard for High Performance Graphics

The Industry's Foundation for High Performance Graphics from games to virtual reality, mobile phones to supercomputers
Read more