• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java PositionColorTextureCoordinatesShaderProgram类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram的典型用法代码示例。如果您正苦于以下问题:Java PositionColorTextureCoordinatesShaderProgram类的具体用法?Java PositionColorTextureCoordinatesShaderProgram怎么用?Java PositionColorTextureCoordinatesShaderProgram使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PositionColorTextureCoordinatesShaderProgram类属于org.andengine.opengl.shader包,在下文中一共展示了PositionColorTextureCoordinatesShaderProgram类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: TMXLayer

import org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram; //导入依赖的package包/类
/**
 * Create a new TMXLayer with a custom
 * {@link ISpriteBatchVertexBufferObject}
 * 
 * @param pTMXTiledMap
 * @param pAttributes
 * @param pCapacity
 * @param pSpriteBatchVertexBufferObject
 * @param pVertexBufferObjectManager
 * @param pAllocateTiles
 */
public TMXLayer(final TMXTiledMap pTMXTiledMap, final Attributes pAttributes, final int pCapacity,
		final ISpriteBatchVertexBufferObject pSpriteBatchVertexBufferObject,
		final VertexBufferObjectManager pVertexBufferObjectManager, boolean pAllocateTiles) {
	super(0, 0, null, pCapacity, pSpriteBatchVertexBufferObject, PositionColorTextureCoordinatesShaderProgram
			.getInstance());

	this.mTMXTiledMap = pTMXTiledMap;
	this.mName = pAttributes.getValue("", TMXConstants.TAG_LAYER_ATTRIBUTE_NAME);
	this.mTileColumns = SAXUtils.getIntAttributeOrThrow(pAttributes, TMXConstants.TAG_LAYER_ATTRIBUTE_WIDTH);
	this.mTileRows = SAXUtils.getIntAttributeOrThrow(pAttributes, TMXConstants.TAG_LAYER_ATTRIBUTE_HEIGHT);
	if (pAllocateTiles) {
		this.mAllocateTMXTiles = true;
		this.mTMXTiles = new TMXTile[this.mTileRows][this.mTileColumns];
	} else {
		this.mAllocateTMXTiles = false;
		this.mTMXTiles = null;
	}
	this.mTileGID = new int[this.mTileRows][this.mTileColumns];
	this.mStoreGID = this.mTMXTiledMap.getStoreGID();

	this.mWidth = pTMXTiledMap.getTileWidth() * this.mTileColumns;
	this.mHeight = pTMXTiledMap.getTileHeight() * this.mTileRows;

	this.mRotationCenterX = this.mWidth * 0.5f;
	this.mRotationCenterY = this.mHeight * 0.5f;

	this.mScaleCenterX = this.mRotationCenterX;
	this.mScaleCenterY = this.mRotationCenterY;

	this.mGlobalTileIDsExpected = this.mTileColumns * this.mTileRows;

	this.setVisible(SAXUtils.getIntAttribute(pAttributes, TMXConstants.TAG_LAYER_ATTRIBUTE_VISIBLE,
			TMXConstants.TAG_LAYER_ATTRIBUTE_VISIBLE_VALUE_DEFAULT) == 1);
	this.setAlpha(SAXUtils.getFloatAttribute(pAttributes, TMXConstants.TAG_LAYER_ATTRIBUTE_OPACITY,
			TMXConstants.TAG_LAYER_ATTRIBUTE_OPACITY_VALUE_DEFAULT));

	if (this.mTMXTiledMap.getOrientation().equals(TMXConstants.TAG_MAP_ATTRIBUTE_ORIENTATION_VALUE_ISOMETRIC)) {
		// Paul Robinson
		// Calculate the half of the tile height and width, saves doing it
		// later
		this.mIsoHalfTileHeight = this.mTMXTiledMap.getTileHeight() / 2;
		this.mIsoHalfTileWidth = this.mTMXTiledMap.getTileWidth() / 2;
		this.tileratio = this.mTMXTiledMap.getTileWidth() / this.mTMXTiledMap.getTileHeight();
		this.setIsometricDrawMethod(this.mTMXTiledMap.getIsometricDrawMethod());
	}
}
 
开发者ID:Linguaculturalists,项目名称:Phoenicia,代码行数:58,代码来源:TMXLayer.java


示例2: Text

import org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram; //导入依赖的package包/类
public Text(final float pX, final float pY, final IFont pFont, final CharSequence pText, final int pCharactersMaximum, final TextOptions pTextOptions, final ITextVertexBufferObject pTextVertexBufferObject) {
	this(pX, pY, pFont, pText, pCharactersMaximum, pTextOptions, pTextVertexBufferObject, PositionColorTextureCoordinatesShaderProgram.getInstance());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:Text.java


示例3: AnimatedSprite

import org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram; //导入依赖的package包/类
public AnimatedSprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITiledTextureRegion pTiledTextureRegion, final ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject) {
	super(pX, pY, pWidth, pHeight, pTiledTextureRegion, pTiledSpriteVertexBufferObject, PositionColorTextureCoordinatesShaderProgram.getInstance());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:AnimatedSprite.java


示例4: Sprite

import org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram; //导入依赖的package包/类
public Sprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITextureRegion pTextureRegion, final VertexBufferObjectManager pVertexBufferObjectManager, final DrawType pDrawType) {
	this(pX, pY, pWidth, pHeight, pTextureRegion, pVertexBufferObjectManager, pDrawType, PositionColorTextureCoordinatesShaderProgram.getInstance());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:Sprite.java


示例5: SpriteBatch

import org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram; //导入依赖的package包/类
public SpriteBatch(final ITexture pTexture, final int pCapacity, final ISpriteBatchVertexBufferObject pSpriteBatchVertexBufferObject) {
	this(pTexture, pCapacity, pSpriteBatchVertexBufferObject, PositionColorTextureCoordinatesShaderProgram.getInstance());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:SpriteBatch.java


示例6: NineSliceSprite

import org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram; //导入依赖的package包/类
public NineSliceSprite(final float pX, final float pY, final ITextureRegion pTextureRegion, final float pInsetLeft, final float pInsetTop, final float pInsetRight, final float pInsetBottom, final VertexBufferObjectManager pVertexBufferObjectManager) {
	this(pX, pY, pTextureRegion, pInsetLeft, pInsetTop, pInsetRight, pInsetBottom, pVertexBufferObjectManager, PositionColorTextureCoordinatesShaderProgram.getInstance());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:NineSliceSprite.java


示例7: TiledSprite

import org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram; //导入依赖的package包/类
public TiledSprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITiledTextureRegion pTiledTextureRegion, final ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject) {
	this(pX, pY, pWidth, pHeight, pTiledTextureRegion, pTiledSpriteVertexBufferObject, PositionColorTextureCoordinatesShaderProgram.getInstance());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:4,代码来源:TiledSprite.java



注:本文中的org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SecondaryIndexBuilder类代码示例发布时间:2022-05-22
下一篇:
Java Property类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap