摘要:
MatrixState: public static void setInitStack()//获取不变换初始矩阵 { currMatrix=new float[16]; Matrix.setRotateM(currMatrix, 0, 0, 1, 0, 0); }... 阅读全文
摘要:
public class ScreenClick { public float x,y; public int I=-1,J=-1; public int priviousI=0,previousJ=0; public float xSpan,ySpan,xOffset,yOffset; pu... 阅读全文
摘要:
private void initVertexData(float width, float height) { // TODO Auto-generated method stub vCount = 6; float w = width / 2;//起着定位作用 float h = h... 阅读全文
摘要:
public static int initTexture(int drawbleId, Resources resources){ int[] textures= new int[1]; GLES20.glGenTextures(1, textures,0); int textureId=te... 阅读全文
摘要:
public class Aircraft_Activity extends Activity{ GLGameView gameView;//主游戏场景 static Handler handler;//消息接收器 SoundPool soundPool;//声音池 Vibrator mVibr... 阅读全文
摘要:
public boolean onKeyBackEvent() { //如果当前的当前处于机舱门关闭的状态,那么按下返回键,机舱门打开 if(!isGameOn&&1==isMenuLevel&&doorState==2) { doorState=0; return true; ... 阅读全文
摘要:
if(doorState==2&&curr_menu_index==2)//排行榜界面的移动 { if(rank_move-dy*TOUCH_SCALE_FACTOR*0.002f>0)//确定移动的范围 ... 阅读全文
摘要:
ACTION_DOWN: if(1==isMenuLevel)//一级菜单 { if(doorState==1)//当前为开仓状态,并且没有弹出对话框 { if(hasInertia)//按下时,如果有惯性,那么直接停止 { hasInert... 阅读全文
摘要:
public boolean onTouchEvent(MotionEvent e) { act_Main.onKeyNum=0; float x = e.getX(); float y = e.getY(); switch (e.getAction()) { case MotionE... 阅读全文
摘要:
public void drawPerspective() { MatrixState.setProjectFrustum(-ratio, ratio, -1, 1, 3, 40000);//设置透视投影 MatrixState.pushMatri... 阅读全文