Praktikum Grafika Komputer - MATHEMATIC FUNCTION IN COMPUTER GRAPHIC APPLICATION DOCX

Title Praktikum Grafika Komputer - MATHEMATIC FUNCTION IN COMPUTER GRAPHIC APPLICATION
Author Lusiana D Ningrum
Pages 9
File Size 80.6 KB
File Type DOCX
Total Downloads 117
Total Views 905

Summary

Nama : LUSIANA DIYAN NINGRUM (2210181051) Kelas : 2 D4 Teknik Komputer B PRAKTIKUM 3 WORKSHOP GRAFIKA KOMPUTER MATHEMATIC FUNCTION IN COMPUTER GRAPHIC APPLICATION PROGRAM (1) #include "pch.h" #include <stdio.h> #include <iostream> #include <GL/glew.h> #include <GLFW/gl...


Description

Nama : LUSIANA DIYAN NINGRUM (2210181051) Kelas : 2 D4 Teknik Komputer B PRAKTIKUM 3 WORKSHOP GRAFIKA KOMPUTER MATHEMATIC FUNCTION IN COMPUTER GRAPHIC APPLICATION PROGRAM (1) #include "pch.h" #include #include #include #include #include #include #include using namespace glm; void create_red_vao(GLuint &vao); void create_dots_vao(GLuint &vao); void Circlin(float radius, int a); float i = 0; void setup_viewport(GLFWwindow* window) { float ratio; int width, height; glfwGetFramebufferSize(window, &width, &height); ratio = width / (float)height; glViewport(0, 0, width, height); glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-22, 22, -17, 17, 1.f, -1.f); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); } int main() { if (!glfwInit()) { fprintf(stderr, "ERROR : Could not start GLFW3\n"); return 1; } GLFWwindow* window = glfwCreateWindow(640, 480, "Circle", NULL, NULL); if (!window) { fprintf(stderr, "ERROR : could not open windows with GLFW3\n"); glfwTerminate(); return 1;...


Similar Free PDFs