本文整理汇总了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;未经允许,请勿转载。 |
请发表评论