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
/* OpenGL module | |
* Assessment 5 | |
* | |
* author: Miguel Gonzalez <m.gonzalez@student.fontys.nl> | |
*/ | |
#include <GL/glut.h> | |
int number = 12; |
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
/* OpenGL module | |
* Assessment 4 | |
* | |
* author: Miguel Gonzalez <m.gonzalez@student.fontys.nl> | |
*/ | |
#include <GL/glut.h> | |
GLint CAM_POS[] = { 3.0, 3.0, 3.0 }; | |
GLfloat mat[4]; |
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
float[] euroKurse = { | |
0.93f, // Wechselkurs, Währung 1 | |
4.49f, // Wechselkurs, Währung 2 | |
1.29f, // Wechselkurs, Währung 3 | |
3.49f // Wechselkurs, Währung 4 | |
}; | |
String[] kursNamen = { | |
"Yen", // Name, Währung 1 | |
"Dollar", // Name, Währung 2 |
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
/// <summary> | |
/// Method that switfly finds the best path from start to end. Doesn't reverse outcome | |
/// </summary> | |
/// <returns>The end breadcrump where each .next is a step back)</returns> | |
private static BreadCrumb FindPathReversed(World world, Point3D start, Point3D end) | |
{ | |
MinHeap<BreadCrumb> openList = new MinHeap<BreadCrumb>(256); | |
BreadCrumb[, ,] brWorld = new BreadCrumb[world.Right, world.Top, world.Back]; | |
BreadCrumb node; | |
Point3D tmp; |
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
public enum PostConstructModule implements Module, TypeListener { | |
INSTANCE; | |
/** | |
* {@inheritDoc} | |
* | |
* @see com.google.inject.Module#configure(com.google.inject.Binder) | |
*/ | |
@Override |
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
package de.bitbrain.guice; | |
import com.google.inject.AbstractModule; | |
import com.google.inject.matcher.Matchers; | |
import com.google.inject.name.Names; | |
public class FooBarModule extends AbstractModule { | |
@Override | |
protected void configure() { |
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
package de.bitbrain.guice; | |
import static java.lang.annotation.ElementType.METHOD; | |
import static java.lang.annotation.ElementType.TYPE; | |
import static java.lang.annotation.RetentionPolicy.RUNTIME; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.Target; | |
import com.google.inject.ScopeAnnotation; |
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
package de.bitbrain.guice; | |
import java.util.HashMap; | |
import java.util.Map; | |
import com.google.inject.Key; | |
import com.google.inject.Provider; | |
import com.google.inject.Scope; | |
public class StateScope implements Scope { |
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
package de.bitbrain.guice; | |
import com.google.inject.Inject; | |
public abstract class State { | |
@Inject | |
private Renderer renderer; | |
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
package de.bitbrain.guice; | |
import java.util.HashMap; | |
import java.util.Map; | |
import com.google.inject.Inject; | |
import com.google.inject.Injector; | |
import com.google.inject.name.Named; | |
public class StateHandler { |