text
stringlengths
3
1.18M
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/** * */ /** * @author TYM * */ public class Position { private int x; private int y; Position(int init_x, int init_y) {x = init_x; y = init_y;} public int getX() {return x;} public int getY() {return y;} public String toString() { return "("+x+","+y+")"; } publi...
/** * */ /** * @author TYM * */ import java.util.Date; public class TopRecord extends Record { public final static String TYPE = "Top"; private String keyword; TopRecord(User initUser, Date initDate, String initKeyword) { user = initUser; date = initDate; keyword = init...
/** * */ /** * @author TYM * */ import java.lang.String; public class User { private String ip; User(String init_ip) {ip = init_ip;} public String getIP() {return ip;} public String toString() { return ip; } public boolean equals(User u) { if (u.getIP() == i...
import java.util.Vector; /** * */ /** * @author TYM * */ public class Site { final static String DELI = "\t"; private int id; private Position pos; private String title; private Vector<String> keywords; public int getID() {return id;} public Position getPosition() {return pos;}...
/** * */ /** * @author TYM * */ import java.util.Date; public class LeftRecord extends Record { public final static String TYPE = "Left"; private Site site; LeftRecord(User initUser, Date initDate, Site initSite) { user = initUser; date = initDate; site = initSite; ...
/** * */ /** * @author TYM * */ import java.util.Date; public abstract class Record { final static String DELI = "\t"; protected User user; protected Date date; public User getUser() {return user;} public Date getDate() {return date;} public abstract String type(); }
package lk.ac.pdn.ce.mm3d; import glfont.GLFont; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.lang.reflect.Field; import javax.microedition.khronos.egl....
package lk.ac.pdn.ce.mm3d; import lk.ac.pdn.ce.mm3d.DataStructure.MMElement; import android.util.Log; import com.threed.jpct.Object3D; import com.threed.jpct.Primitives; import com.threed.jpct.SimpleVector; public class Link extends Object3D{ public Link(MMElement child){ super(Primitives.getCylinde...
package lk.ac.pdn.ce.mm3d; import lk.ac.pdn.ce.mm3d.DataStructure.MMElement; import com.threed.jpct.Object3D; import com.threed.jpct.Primitives; import com.threed.jpct.RGBColor; public class Node extends Object3D { private Node parent;// parent node of the object private Link2 parentLink;// link for ob...
package lk.ac.pdn.ce.mm3d; import lk.ac.pdn.ce.mm3d.DataStructure.MMElement; import lk.ac.pdn.ce.mm3d.DataStructure.MapData; import com.threed.jpct.Object3D; import com.threed.jpct.RGBColor; import com.threed.jpct.SimpleVector; import com.threed.jpct.World; public class AndObj { private Node rootNode;// ...
package lk.ac.pdn.ce.mm3d; import com.threed.jpct.RGBColor; public class Level { private int level; // level number, 0 being the root level. private RGBColor color; public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } public RGBColor getColo...
package lk.ac.pdn.ce.mm3d; import lk.ac.pdn.ce.mm3d.DataStructure.MMElement; import lk.ac.pdn.ce.mm3d.DataStructure.Position; import android.graphics.Color; import com.threed.jpct.Object3D; import com.threed.jpct.RGBColor; import com.threed.jpct.SimpleVector; import com.threed.jpct.Texture; import com.thr...
package glfont; import java.util.ArrayList; import java.util.List; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Point; import android.graphics.Rect; import com.threed.jpct.FrameBuffer; import com.threed.jpct.RGBColor; import com.t...
package glfont; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Point; import android.graphics.Paint.FontMetrics; import android.graphics.Paint.FontMetricsInt; import com.threed.jpct.FrameBuffer; import c...
package com.lamerman; public class SelectionMode { public static final int MODE_CREATE = 0; public static final int MODE_OPEN = 1; }
package com.lamerman; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.TreeMap; import lk.ac.pdn.ce.mm3d.R; import android.app.AlertDialog; import android.app.ListActivity; import android.content.DialogInterface; import android.os.Bundle; import andro...
package lk.ac.ce.mm3d.Math; import static org.junit.Assert.*; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import lk.ac.pdn.ce.mm3d.DataStructure.MMElement; import lk.ac.pdn.ce.mm3d.DataStructure.MapData; import org.junit.Test; /** * test class...
package lk.ac.ce.mm3d.Math; import lk.ac.pdn.ce.mm3d.DataStructure.*; /* * Note- Calculations are happens using radions */ /** * 3D positioning calculations Happens in this class * @author Pasindu Pavithra Ariyarathana * */ public class MindMath { private int levelSize=10; /** *...
package lk.ac.pdn.ce.mm3d.DataStructure; /** * Position in 3d SPACE * @author Pasindu Pavithra Ariyarathna * */ public class Position { private float X; private float Y; private float Z; public Position(){ super(); } public Position(float x, float y, float z) { super(); X = x; ...
package lk.ac.pdn.ce.mm3d.DataStructure; public interface FileFormat { /** * To read the specific format * @param content content String content * @param map map object of the map * @throws Exception */ public void readFormat(String content,MapData map) throws Exception; /** * To write...
package lk.ac.pdn.ce.mm3d.DataStructure; /** * represent a mindmap. starting from root node * @author Pasindu Pavithra Ariyarathna * */ public class MapData { private MMElement root; /** * Initialize data Structure * @param mapName name for the root element */ public MapData(String m...
package lk.ac.pdn.ce.mm3d.DataStructure; import java.util.LinkedList; import java.util.List; /** * Represent single element in mindmap * * @author Pasindu Pavithra Ariyarathna * */ public class MMElement { private String id; private String name; private String Details; private Position posit...
package lk.ac.pdn.ce.mm3d.DataStructure; import java.io.*; import java.util.List; import org.w3c.dom.*; import org.xml.sax.SAXException; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; public class XMLFile implements Fil...
package lk.ac.pdn.ce.mm3d; import min3d.core.Scene; public class SceneBuilder { public static Scene buildScene(Scene scene, Node[] nodes){ for(Node n:nodes){ // scene.addChild(n.getmSphere()); } return scene; } }
package lk.ac.pdn.ce.mm3d; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import lk.ac.ce.mm3d.Math.MindMath; import lk.ac.pdn.ce.mm3d.DataStructure.MMElement; import lk.ac.pdn.ce.mm3d.DataStructure.MapData; import min3d.core.RendererActivity; import...
package lk.ac.pdn.ce.mm3d; import min3d.objectPrimitives.HollowCylinder; public class Link extends HollowCylinder{ public Link(float d){ super(0.05f,0.04f,d,20); } public Link(float r, float d){ //default segments sest to 20 super(r,r-0.2f,d,20); } public Link(float r, float d, int s){ ...
package lk.ac.pdn.ce.mm3d; import android.util.Log; import min3d.objectPrimitives.Sphere; import min3d.vos.Color4; import min3d.vos.Number3d; import min3d.vos.RenderType; public class Node extends Sphere{ private Node parent; private Link parentLink; private int level; public Node(Color4 color){...
package lk.ac.pdn.ce.mm3d; import min3d.vos.Color4; public class Level { private int level; // level number, 0 being the root level. private Color4 color; public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } public Color4 getColor() { ret...
package carousel; import java.io.File; import java.nio.ByteBuffer; import javax.media.opengl.GL; //import javax.media.opengl.GL2; import javax.media.opengl.GL2ES2; import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLCapabilities; import javax.media.opengl.GLEventListener; import javax.med...
/* Alessandro Martinelli's Jogl Tutorial Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of Alessandro Martinelli's Jogl Tutorial. Alessandro Martinelli's Jogl Tutorial is free software: you can redistribute it and/or modify it under the terms of t...
/* Alessandro Martinelli's Jogl Tutorial Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of Alessandro Martinelli's Jogl Tutorial. Alessandro Martinelli's Jogl Tutorial is free software: you can redistribute it and/or modify it under the terms of t...
/* Alessandro Martinelli's Jogl Tutorial Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of Alessandro Martinelli's Jogl Tutorial. Alessandro Martinelli's Jogl Tutorial is free software: you can redistribute it and/or modify it under the terms of t...
/* Alessandro Martinelli's Jogl Tutorial Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of Alessandro Martinelli's Jogl Tutorial. Alessandro Martinelli's Jogl Tutorial is free software: you can redistribute it and/or modify it under the terms of t...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* The Shadow Framework - a complete framework for Real Time Graphics based on OpenGL Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of The Shadow Framework. The Shadow Framework is free software: you can redistribute it and/or modify it under the...
/* Alessandro Martinelli's Jogl Tutorial Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of Alessandro Martinelli's Jogl Tutorial. Alessandro Martinelli's Jogl Tutorial is free software: you can redistribute it and/or modify it under the terms of t...
package objLoader; import javax.media.opengl.GL; import javax.media.opengl.GL2; import objLoader.math.Vertex3f; public class ObjMaterial { String name=""; Vertex3f cAmb=new Vertex3f(); Vertex3f cDiff=new Vertex3f(); Vertex3f cSpec=new Vertex3f(); float Ns; public void apply(GL2 gl){ g...
/* Alessandro Martinelli's Jogl Tutorial Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of Alessandro Martinelli's Jogl Tutorial. Alessandro Martinelli's Jogl Tutorial is free software: you can redistribute it and/or modify it under the terms of t...
/* Alessandro Martinelli's Jogl Tutorial Copyright (C) 2008 Alessandro Martinelli <alessandro.martinelli@unipv.it> This file is part of Alessandro Martinelli's Jogl Tutorial. Alessandro Martinelli's Jogl Tutorial is free software: you can redistribute it and/or modify it under the terms of t...
package tutorial06.utils; import java.util.LinkedList; import objLoader.math.Matrix; import objLoader.math.Vertex3f; public class ModelViewMatrix { private Matrix matrix=new Matrix(); private Vertex3f position=new Vertex3f(); private LinkedList<Matrix> stackM=new LinkedList<Matrix>(); private LinkedList<Vertex...
package tutorial06.utils; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import java.nio.ShortBuffer; public class Buffers { public static final int SIZE_OF_FLOAT=4; public static final int SIZE_OF_SHORT=2; public static ByteBuffer loadFloatBuffer(float[] data){ ...
package tutorial06.utils; import javax.media.opengl.GL2ES2; import com.jogamp.opengl.util.glsl.ShaderUtil; public class Shader { private String fragmentShader; private String vertexShader; private int shadingProgram; public Shader(String fragmentShader, String vertexShader) { super(); this....