当前位置: 首页>>代码示例>>Java>>正文


Java PLLog.error方法代码示例

本文整理汇总了Java中com.panoramagl.utils.PLLog.error方法的典型用法代码示例。如果您正苦于以下问题:Java PLLog.error方法的具体用法?Java PLLog.error怎么用?Java PLLog.error使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.panoramagl.utils.PLLog的用法示例。


在下文中一共展示了PLLog.error方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: render

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
@Override
public boolean render(GL10 gl, PLIRenderer renderer)
{
	try
	{
		if(mIsVisible && mIsValid)
		{
			mIsRendering = true;
			this.beginRender(gl, renderer);
			this.internalRender(gl, renderer);
			this.endRender(gl, renderer);
			mIsRendering = false;
			return true;
		}
	}
	catch(Throwable e)
	{
		mIsRendering = false;
		PLLog.error("PLRenderableElementBase::render", e);
	}
	return false;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:23,代码来源:PLRenderableElementBase.java

示例2: interpret

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
/**interpret methods*/

@Override
public boolean interpret(PLIView view, String text)
{
	mView = view;
	try
	{
		PLCommandTokenizer tokenizer = new PLCommandTokenizer();
		tokenizer.tokenize(text);
		this.parseCommands(tokenizer.getTokens(), 0);
	}
	catch(Throwable e)
	{
		PLLog.error("PLCommandInterpreter::interpret", e);
		return false;
	}
	finally
	{
		mView = null;
	}
	return true;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:24,代码来源:PLCommandInterpreter.java

示例3: run

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
/**Runnable methods*/

		@Override
		public void run()
		{
			try
			{
				if(mTokenInfo.getName().equals("load"))
				{
					PLITokenInfo transitionTokenInfo = (mTokenInfo.hasValue(2) ? mTokenInfo.getTokenInfo(2) : null);
					if(transitionTokenInfo != null && transitionTokenInfo.getName().equals("null"))
						transitionTokenInfo = null;
					mView.load(new PLJSONLoader(mTokenInfo.getString(0)), mTokenInfo.hasValue(1) ? mTokenInfo.getBoolean(1) : false, transitionTokenInfo != null ? new PLTransitionBlend(transitionTokenInfo.getFloat(0), transitionTokenInfo.hasValue(1) ? transitionTokenInfo.getFloat(1) : -1.0f) : null, mTokenInfo.hasValue(3) ? mTokenInfo.getFloat(3) : PLConstants.kFloatUndefinedValue, mTokenInfo.hasValue(4) ? mTokenInfo.getFloat(4) : PLConstants.kFloatUndefinedValue);
				}
			}
			catch(Throwable e)
			{
				PLLog.error("PLCommandRunnable::run", e);
			}
		}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:21,代码来源:PLCommandInterpreter.java

示例4: createFrameBuffer

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
/**buffer methods*/

protected void createFrameBuffer(GL11ExtensionPack gl11ep)
{
	if(mContextSupportsFrameBufferObject)
	{
        gl11ep.glGenFramebuffersOES(1, mDefaultFramebuffer, 0);
        if(mDefaultFramebuffer[0] <= 0)
        	PLLog.error("PLRenderer::createFrameBuffer", "Invalid framebuffer id returned!");
        gl11ep.glGenRenderbuffersOES(1, mColorRenderbuffer, 0);
        if(mColorRenderbuffer[0] <= 0)
        	PLLog.error("PLRenderer::createFrameBuffer", "Invalid renderbuffer id returned!");
        gl11ep.glBindFramebufferOES(GL11ExtensionPack.GL_FRAMEBUFFER_OES, mDefaultFramebuffer[0]);
        gl11ep.glBindRenderbufferOES(GL11ExtensionPack.GL_RENDERBUFFER_OES, mColorRenderbuffer[0]);
	}
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:17,代码来源:PLRenderer.java

示例5: onSurfaceCreated

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
/**android: GLSurfaceView.Renderer methods*/

@Override
public void onSurfaceCreated(GL10 gl, EGLConfig config)
{
	try
	{
		mIsGLContextCreated = false;
		mGLWrapper = (PLOpenGLSupport.isHigherThanOpenGL1(gl) ? new GLWrapper(gl, mView.getGLSurfaceView()) : new MatrixTrackingGL(gl, mView.getGLSurfaceView()));
		//mContextSupportsFrameBufferObject = PLOpenGLSupport.checkIfContextSupportsFrameBufferObject(gl);
		this.start();
		if(mListener != null)
			mListener.rendererCreated(this);
	}
	catch(Throwable e)
	{
		PLLog.error("PLRenderer::onSurfaceCreated", e);
	}
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:20,代码来源:PLRenderer.java

示例6: requestJSON

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
/**json methods*/

protected void requestJSON(PLFileDownloaderListener listener)
{
	try
	{
		if(mURL != null)
		{
			if(this.isHTTPURL(mURL))
				new PLHTTPFileDownloader(mURL, listener).downloadAsynchronously();
			else
				new PLLocalFileDownloader(mView.getActivity().getApplicationContext(), mURL, listener).downloadAsynchronously();
		}
		else if(mJSONData != null)
			new Thread(new PLDataRunnable(listener, mURL, mJSONData, System.currentTimeMillis())).start();
	    else
	    	listener.didErrorDownload(mURL, "JSON string is empty", -1, null);
	}
	catch(Throwable e)
	{
		PLLog.error("PLJSONLoader::requestJSON", e);
		listener.didErrorDownload(mURL, e.getMessage(), -1, null);
	}
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:25,代码来源:PLJSONLoader.java

示例7: requestJSON

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
/**json methods*/

protected void requestJSON(PLFileDownloaderListener listener)
{
	try
	{
		if(mURL != null)
		{
			if(this.isHTTPURL(mURL))
				new PLHTTPFileDownloader(mURL, listener).downloadAsynchronously();
			else
				new PLLocalFileDownloader(mView.getContext().getApplicationContext(), mURL, listener).downloadAsynchronously();
		}
		else if(mJSONData != null)
			new Thread(new PLDataRunnable(listener, mURL, mJSONData, System.currentTimeMillis())).start();
	    else
	    	listener.didErrorDownload(mURL, "JSON string is empty", -1, null);
	}
	catch(Throwable e)
	{
		PLLog.error("PLJSONLoader::requestJSON", e);
		listener.didErrorDownload(mURL, e.getMessage(), -1, null);
	}
}
 
开发者ID:marianmoldovan,项目名称:panoramagl,代码行数:25,代码来源:PLJSONLoader.java

示例8: setPreviewImage

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
@Override
public void setPreviewImage(PLIImage image)
{
	if(image != null)
	{
		synchronized(mPreviewTextures)
		{
			this.removeAllPreviewTextures(true);
			int width = image.getWidth();
			int height = image.getHeight();
			if(PLMath.isPowerOfTwo(width) && (height % width == 0 || width % height == 0))
			{
				int[] previewTilesOrder = this.getPreviewTilesOrder();
				int w, h, tilesLength = this.getPreviewTilesNumber();
				if(tilesLength == 1)
				{
					w = width;
					h = height;
				}
				else
					w = h = (width > height ? height : width);
				for(int i = 0; i < tilesLength; i++)
				{
					try
					{
						PLIImage subImage = new PLImage(image.getSubImage(0, previewTilesOrder[i] * w, w, h));
						mPreviewTextures[i] = new PLTexture(subImage);
					}
					catch(Throwable e)
					{
						this.removeAllPreviewTextures(true);
						PLLog.error("PLPanoramaBase::setPreviewTexture", "setPreviewTexture fails: %s", e);
						break;
					}
				}
			}
		}
	}
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:40,代码来源:PLPanoramaBase.java

示例9: bindTextureByIndex

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
protected boolean bindTextureByIndex(GL10 gl, int index)
{
	boolean result = false;
	try
	{
		PLITexture texture = this.getTextures()[index];
		if(texture != null && texture.getTextureId(gl) != 0)
		{
			gl.glBindTexture(GL10.GL_TEXTURE_2D, texture.getTextureId(gl));
			result = true;
            if(this.getPreviewTextures()[index] != null)
            	this.removePreviewTextureAtIndex(index, true);
		}
		else
		{
			texture = this.getPreviewTextures()[index];
			if(texture != null && texture.getTextureId(gl) != 0)
			{
				gl.glBindTexture(GL10.GL_TEXTURE_2D, texture.getTextureId(gl));
				result = true;
			}
		}
	}
	catch(Throwable e)
	{
		PLLog.error("PLCubicPanorama::bindTextureByIndex", e);
	}
	return result;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:30,代码来源:PLCubicPanorama.java

示例10: resizeFromLayer

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
@Override
public boolean resizeFromLayer(GL11ExtensionPack gl11ep)
{	
	if(mContextSupportsFrameBufferObject && gl11ep != null)
	{
		synchronized(this)
		{
			if(mBackingWidth[0] != mSize.width || mBackingHeight[0] != mSize.height)
			{
				boolean isRunning = mIsRunning;
				if(isRunning)
					mIsRunning = false;
				
				this.destroyFramebuffer(gl11ep);
				this.createFrameBuffer(gl11ep);
				
	            gl11ep.glRenderbufferStorageOES(GL11ExtensionPack.GL_RENDERBUFFER_OES,
	                    GL11ExtensionPack.GL_RGBA8, mSize.width, mSize.height);
	            gl11ep.glFramebufferRenderbufferOES(GL11ExtensionPack.GL_FRAMEBUFFER_OES,
	                    GL11ExtensionPack.GL_COLOR_ATTACHMENT0_OES,
	                    GL11ExtensionPack.GL_RENDERBUFFER_OES, mColorRenderbuffer[0]);
	            
	            gl11ep.glGetRenderbufferParameterivOES(GL11ExtensionPack.GL_RENDERBUFFER_OES, GL11ExtensionPack.GL_RENDERBUFFER_WIDTH_OES, mBackingWidth, 0);
		        gl11ep.glGetRenderbufferParameterivOES(GL11ExtensionPack.GL_RENDERBUFFER_OES, GL11ExtensionPack.GL_RENDERBUFFER_HEIGHT_OES, mBackingHeight, 0);
		        
		        mViewport.x = -(mViewport.width / 2 - mSize.width / 2);
				mViewport.y = -(mViewport.height / 2 - mSize.height / 2);
				
				if(gl11ep.glCheckFramebufferStatusOES(GL11ExtensionPack.GL_FRAMEBUFFER_OES) != GL11ExtensionPack.GL_FRAMEBUFFER_COMPLETE_OES)
				{
					PLLog.error("PLRenderer::resizeFromLayer", "Failed to make complete framebuffer object %x", gl11ep.glCheckFramebufferStatusOES(GL11ExtensionPack.GL_FRAMEBUFFER_OES));
					return false;
				}
				
				if(isRunning)
					mIsRunning = true;
				return true;
			}
		}
	}
	else
	{
		synchronized(this)
		{
			mViewport.x = -(mViewport.width / 2 - mSize.width / 2);
			mViewport.y = -(mViewport.height / 2 - mSize.height / 2);
		}
	}
	return false;
}
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:51,代码来源:PLRenderer.java

示例11: onCreate

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
/**android: events methods*/

@Override
   protected void onCreate(Bundle savedInstanceState) 
{
       super.onCreate(savedInstanceState);
       try
       {
       	mSensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE);
       	mGestureDetector = new GestureDetector
		(
			this,
			new SimpleOnGestureListener()
			{
				@Override
				public boolean onDoubleTap(MotionEvent event)
				{
					return PLView.this.onDoubleTap(event);
				}
				
				@Override
				public boolean onDoubleTapEvent(MotionEvent event)
				{
					return PLView.this.onDoubleTapEvent(event);
				}
				
				@Override
				public boolean onSingleTapConfirmed(MotionEvent event)
				{
					return PLView.this.onSingleTapConfirmed(event);
				}
			}
		);
       	mTempRenderingViewport = new CGRect();
       	mTempRenderingSize = new CGSize();
       	mTempSize = new CGSize();
       	mTempAcceleration = new UIAcceleration();
       	mInternalTouches = new ArrayList<UITouch>(kMaxTouches);
       	mCurrentTouches = new ArrayList<UITouch>(kMaxTouches);
       	mLocation = new int[2];
		this.initializeValues();
       }
       catch(Throwable e)
       {
       	PLLog.error("PLView::onCreate", e);
       }
   }
 
开发者ID:codedavid,项目名称:PanoramaGL,代码行数:48,代码来源:PLView.java

示例12: onCreate

import com.panoramagl.utils.PLLog; //导入方法依赖的package包/类
/**android: events methods*/
 public void onCreate() {
     try
     {
     	mSensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
     	mGestureDetector = new GestureDetector (
		context,
	new SimpleOnGestureListener()
	{
		@Override
		public boolean onDoubleTap(MotionEvent event)
		{
			return PLManager.this.onDoubleTap(event);
		}
		
		@Override
		public boolean onDoubleTapEvent(MotionEvent event)
		{
			return PLManager.this.onDoubleTapEvent(event);
		}
		
		@Override
		public boolean onSingleTapConfirmed(MotionEvent event)
		{
			return PLManager.this.onSingleTapConfirmed(event);
		}
	}
);
     	mTempRenderingViewport = new CGRect();
     	mTempRenderingSize = new CGSize();
     	mTempSize = new CGSize();
     	mTempAcceleration = new UIAcceleration();
     	mInternalTouches = new ArrayList<UITouch>(kMaxTouches);
     	mCurrentTouches = new ArrayList<UITouch>(kMaxTouches);
     	mLocation = new int[2];
this.initializeValues();
     }
     catch(Throwable e)
     {
     	PLLog.error("PLView::onCreate", e);
     }
 }
 
开发者ID:marianmoldovan,项目名称:panoramagl,代码行数:43,代码来源:PLManager.java


注:本文中的com.panoramagl.utils.PLLog.error方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。