Code example for GLSurfaceView

Methods: getResources

0
	private void loadShader(GLSurfaceView mv, String vertexPath,
			String fragmentPath) {
 
		// ¼ÓÔض¥µã×ÅÉ«Æ÷µÄ½Å±¾ÄÚÈÝ 
		jqShaderVertex = Shader.loadFromAssetsFile(vertexPath,
				mv.getResources());
		// ¼ÓÔØƬԪ×ÅÉ«Æ÷µÄ½Å±¾ÄÚÈÝ 
		jqShaderFragment = Shader.loadFromAssetsFile(fragmentPath,
				mv.getResources());
		// »ùÓÚ¶¥µã×ÅÉ«Æ÷ÓëƬԪ×ÅÉ«Æ÷´´½¨³ÌÐò 
		jqShaderProgramId = Shader.createProgram(jqShaderVertex,
				jqShaderFragment);
 
		// ³õʼ»¯×ÅÉ«Æ÷³ÉÔ± 
		initShaderMember(); 
	} 
 
	/** 
	 * ½«Êý¾ÝÒÔ¼°¾ØÕó±ä»»µÈ²Ù×÷´«ÈëäÖȾ¹ÜÏß<br> 
	 * <p> 
Connect your IDE to all the code out there  Get Codota for Java