Tuesday, September 11, 2007

big screen 09/11/2007

int c = color(255,0,0);
fill(c);

int val = int(3.6); Java can recognize "int"
=> int val = (int)3.6;

float -> generally use
=> int val =(int)3.6f;
float a=3.2f;
double -> not use


double d = 4.52;
fill(d);
--> error
double d = 4.52f;
fill(d);
===> everything should be float!

[[[[[[[[[[[[[[[[["this"]]]]]]]]]]]]]"me"
class MyProcessing extens PApplet{
Public void setup(){
part = new Particle(this);
}
Public void draw(){
}
}

------------------particle.java-----------------
class Particel{
floatx,y;
PApplet parent;
Particel(PApplet p){
parent =p;
}
void display(){
parent.ellipse(x,y,0,0);
}
}


====================
Package => floder to organizie files

you can make the "data" folder in side of your project folder

projectname/(right button) team / commit
-> projectname/(right button) restore from Local library

[[[[[[[[[[[[[processing in openGL Ecliipse]]]]]]]]]]]]]
1.
opengl.jar
jogl.jar
this only two files you will need
2.native library
PC-DLL
Mac-JNICIB

PC and Mac almost same, only differnces are differnt files in opengl, it should be DLL file
on PC

final project screen resolution
2720x768

0 Comments:

Post a Comment

<< Home