• flag==0:法线朝里;flag==1:法线朝外;


    public void drawSelf(int[] textureId) {
    		GLES20.glDisable(GLES20.GL_DEPTH_TEST);
    		switch (flag) {
    		case 0:
    			drawCube0(textureId);
    			break;
    		case<u><em style="background-color: rgb(255, 255, 0);"> 1</em></u>:
    			drawCube1(textureId);
    			break;
    		}
    		GLES20.glEnable(GLES20.GL_DEPTH_TEST);
    	}



    centerCube = new DrawCubeTextureLight(cubeSize, cubeSize, cubeSize, ShaderManager.getJpgProgram(), 1);



    public DrawCubeTextureLight(float width,float height,float length,int mProgram, int <em style="background-color: rgb(255, 204, 51);"><u>flag</u></em>) {
    		frontRect = new DrawRectTextureLight(width, height,mProgram);
    		leftRect=new DrawRectTextureLight(height, length, mProgram);
    		bottomRect=new DrawRectTextureLight(width, length, mProgram);
    		this.flag = flag;
    		this.halfWidth=width/2;
    		this.halfHeight=height/2;
    		this.halfLength=length/2;
    	}


  • 相关阅读:
    C#异步编程
    3.TinkPHP中的模型
    Socket网络编程
    日志查看登录用户
    ssh相关的设置
    爬虫学习笔记
    python升级到3.*版本
    Redis未授权访问攻击过程与防范
    Linux重置MySQL密码
    linux下WordPress安装
  • 原文地址:https://www.cnblogs.com/Anzhongliu/p/6092060.html
Copyright © 2020-2023  润新知