Laporan_grafika_opengl.docx

  • Uploaded by: Andi Bella
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Laporan_grafika_opengl.docx as PDF for free.

More details

  • Words: 164
  • Pages: 8
LAPORAN MATA KULIAH GRAFIKA KOMPUTER PROGRAM STUUDI D-IV TEKNIK MULTIMEDIA DAN JARINGAN JURUSAN TEKNIK ELEKTRO POLITEKNIK NEGERI UJUNG PANDANG Nama NIM Kelas Judul Percobaan

: Andi Bella Shafira : 426 17 006 : 2A : Pemrograman OpenGL

Langkah Percobaan :

Hasil Percobaan :

Langkah Percobaan :

Hasil Percobaan :

Langkah Percobaan :

Hasil Percobaan :

Langkah Percobaan :

Hasil Percobaan :

Langkah Percobaan :

Hasil Percobaan :

Langkah Percobaan :

Hasil Percobaan :

Langkah Percobaan :

Hasil Percobaan :

Langkah Percobaan :

Hasil Percobaan :

Langkah Percobaan :

Hasil Percobaan :

Hasil Percobaan 1 :

Source Code Percobaan 1 : #include #include #include #include

<Windows.h>

using namespace std; void changeViewPort(int w,int h) { glViewport(0,0,w,h); } void render() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glutSwapBuffers(); } int main(int argc, char*argv[]) { glutInit(&argc,argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH); glutInitWindowSize(800,600); glutCreateWindow("Hello, GL"); glutReshapeFunc(changeViewPort); glutDisplayFunc(render); GLenum err = glewInit(); if (GLEW_OK != err)

{ fprintf(stderr,"GLEW error"); return 1; } glutMainLoop(); return 0; }

Analisa Percobaan 1 :

More Documents from "Andi Bella"