This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import sun.audio.AudioPlayer; | |
import sun.audio.AudioStream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// Author: Arnold Coutinho | |
// | |
// | |
// | |
// | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
package gui; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdarg.h> | |
#include <GL\glut.h> | |
#include <math.h> | |
void rotasi() { | |
glBegin(GL_POLYGON); //membuat persegi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdarg.h> | |
#include <GL/glut.h> | |
void tampilan(void) { | |
glClearColor(1.0, 1.0, 1.0, 0.0); // warna display | |
glMatrixMode(GL_PROJECTION); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdarg.h> | |
#include <GL\glut.h> | |
#include <stdlib.h> | |
#include "stdlib.h" | |
#include "GL/glut.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdarg.h> | |
#include <GL\glut.h> | |
#include <math.h> | |
// Inisialisasi variabel untuk pembentukan objek | |
float w = 480, h = 480; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GL\glut.h> | |
GLfloat xRotated, yRotated, zRotated; | |
void init(void) | |
{ | |
glClearColor(0, 0, 0, 0); | |
} | |
void DrawCube(void) | |
{ | |
glMatrixMode(GL_MODELVIEW); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<GL/glut.h> | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<math.h> | |
int w = 400, h = 400; | |
int sudut = 0, o = 0, p = 0, q = 0; | |
int a, b; | |
void renderScene(void){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
/** | |
* | |
* @author Dwi Candra Permana | |
*/ | |
public class CobaSplit { | |
/** | |
* @param args the command line arguments |