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

Java ShaderProgram类代码示例

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

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



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

示例1: Sprite

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public Sprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITextureRegion pTextureRegion, final ISpriteVertexBufferObject pSpriteVertexBufferObject, final ShaderProgram pShaderProgram) {
	super(pX, pY, pWidth, pHeight, pShaderProgram);
	
	this.mTextureRegion = pTextureRegion;
	this.mSpriteVertexBufferObject = pSpriteVertexBufferObject;

	this.setBlendingEnabled(true);
	this.initBlendFunction(pTextureRegion);
	
	this.onUpdateVertices();
	this.onUpdateColor();
	this.onUpdateTextureCoordinates();
}
 
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:14,代码来源:Sprite.java


示例2: SpriteBatch

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public SpriteBatch(final float pX, final float pY, final ITexture pTexture, final int pCapacity, final ISpriteBatchVertexBufferObject pSpriteBatchVertexBufferObject, final ShaderProgram pShaderProgram) {
	super(pX, pY, pShaderProgram);

	this.mTexture = pTexture;
	this.mCapacity = pCapacity;
	this.mSpriteBatchVertexBufferObject = pSpriteBatchVertexBufferObject;

	this.setBlendingEnabled(true);
	this.initBlendFunction(this.mTexture);
}
 
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:11,代码来源:SpriteBatch.java


示例3: Sprite

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public Sprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITextureRegion pTextureRegion, final ISpriteVertexBufferObject pSpriteVertexBufferObject, final ShaderProgram pShaderProgram) {
	super(pX, pY, pShaderProgram);

	this.mTextureRegion = pTextureRegion;
	this.mSpriteVertexBufferObject = pSpriteVertexBufferObject;

	this.setBlendingEnabled(true);
	this.initBlendFunction(pTextureRegion);

	this.setSize(pWidth, pHeight);

	this.onUpdateColor();
	this.onUpdateTextureCoordinates();
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:15,代码来源:Sprite.java


示例4: Text

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public Text(final float pX, final float pY, final IFont pFont, final CharSequence pText, final int pCharactersMaximum, final TextOptions pTextOptions, final ITextVertexBufferObject pTextVertexBufferObject, final ShaderProgram pShaderProgram) {
	super(pX, pY, pShaderProgram);

	this.mFont = pFont;
	this.mTextOptions = pTextOptions;
	this.mCharactersMaximum = pCharactersMaximum;
	this.mVertexCount = Text.VERTICES_PER_LETTER * this.mCharactersMaximum;
	this.mTextVertexBufferObject = pTextVertexBufferObject;

	this.onUpdateColor();
	this.setText(pText);

	this.setBlendingEnabled(true);
	this.initBlendFunction(this.mFont.getTexture());
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:16,代码来源:Text.java


示例5: Text

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public Text(final float pX, final float pY, final IFont pFont, final CharSequence pText, final int pCharactersMaximum, final TextOptions pTextOptions, final ITextVertexBufferObject pTextVertexBufferObject, final ShaderProgram pShaderProgram) {
	super(pX, pY, 0, 0, pShaderProgram);

	this.mFont = pFont;
	this.mTextOptions = pTextOptions;
	this.mCharactersMaximum = pCharactersMaximum;
	this.mVertexCount = Text.VERTICES_PER_LETTER * this.mCharactersMaximum;
	this.mTextVertexBufferObject = pTextVertexBufferObject;

	this.onUpdateColor();
	this.setText(pText);

	this.setBlendingEnabled(true);
	this.initBlendFunction(this.mFont.getTexture());
}
 
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:16,代码来源:Text.java


示例6: setShaderProgram

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
@Override
public void setShaderProgram(final ShaderProgram pShaderProgram) {
	this.mShaderProgram = pShaderProgram;
}
 
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:5,代码来源:Shape.java


示例7: SpriteMenuItem

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public SpriteMenuItem(final int pID, final float pWidth, final float pHeight, final ITextureRegion pTextureRegion, final VertexBufferObjectManager pVertexBufferObjectManager, final ShaderProgram pShaderProgram) {
	super(0, 0, pWidth, pHeight, pTextureRegion, pVertexBufferObjectManager, pShaderProgram);

	this.mID = pID;
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:6,代码来源:SpriteMenuItem.java


示例8: UncoloredSprite

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public UncoloredSprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITextureRegion pTextureRegion, final VertexBufferObjectManager pVertexBufferObjectManager, final ShaderProgram pShaderProgram) {
	this(pX, pY, pWidth, pHeight, pTextureRegion, pVertexBufferObjectManager, DrawType.STATIC, pShaderProgram);
}
 
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:4,代码来源:UncoloredSprite.java


示例9: bind

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
@Override
public void bind(final GLState pGLState, final ShaderProgram pShaderProgram) {
	this.bind(pGLState);

	pShaderProgram.bind(pGLState, this.mVertexBufferObjectAttributes);
}
 
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:7,代码来源:VertexBufferObject.java


示例10: UniformColorSprite

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public UniformColorSprite(final float pX, final float pY, final ITextureRegion pTextureRegion, final IUniformColorSpriteVertexBufferObject pVertexBufferObject, final ShaderProgram pShaderProgram) {
	this(pX, pY, pTextureRegion.getWidth(), pTextureRegion.getHeight(), pTextureRegion, pVertexBufferObject, pShaderProgram);
}
 
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:4,代码来源:UniformColorSprite.java


示例11: TextMenuItem

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public TextMenuItem(final int pID, final IFont pFont, final CharSequence pText, final VertexBufferObjectManager pVertexBufferObjectManager, final DrawType pDrawType, final ShaderProgram pShaderProgram) {
	super(0, 0, pFont, pText, pVertexBufferObjectManager, pDrawType, pShaderProgram);

	this.mID = pID;
}
 
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:6,代码来源:TextMenuItem.java


示例12: UniformColorSprite

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public UniformColorSprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITextureRegion pTextureRegion, final VertexBufferObjectManager pVertexBufferObjectManager, final ShaderProgram pShaderProgram) {
	this(pX, pY, pWidth, pHeight, pTextureRegion, pVertexBufferObjectManager, DrawType.STATIC, pShaderProgram);
}
 
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:4,代码来源:UniformColorSprite.java


示例13: TiledSprite

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public TiledSprite(final float pX, final float pY, final ITiledTextureRegion pTiledTextureRegion, final ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject, final ShaderProgram pShaderProgram) {
	this(pX, pY, pTiledTextureRegion.getWidth(), pTiledTextureRegion.getHeight(), pTiledTextureRegion, pTiledSpriteVertexBufferObject, pShaderProgram);
}
 
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:4,代码来源:TiledSprite.java


示例14: AnimatedSprite

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public AnimatedSprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITiledTextureRegion pTiledTextureRegion, final VertexBufferObjectManager pVertexBufferObjectManager, final DrawType pDrawType, final ShaderProgram pShaderProgram) {
	super(pX, pY, pWidth, pHeight, pTiledTextureRegion, pVertexBufferObjectManager, pDrawType, pShaderProgram);
}
 
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:4,代码来源:AnimatedSprite.java


示例15: Text

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public Text(final float pX, final float pY, final IFont pFont, final CharSequence pText, final int pCharactersMaximum, final TextOptions pTextOptions, final VertexBufferObjectManager pVertexBufferObjectManager, final DrawType pDrawType, final ShaderProgram pShaderProgram) {
	this(pX, pY, pFont, pText, pCharactersMaximum, pTextOptions, new HighPerformanceTextVertexBufferObject(pVertexBufferObjectManager, Text.LETTER_SIZE * pCharactersMaximum, pDrawType, true, Text.VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT), pShaderProgram);
}
 
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:4,代码来源:Text.java


示例16: DiamondSprite

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


示例17: TextMenuItem

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public TextMenuItem(final int pID, final IFont pFont, final CharSequence pText, final TextOptions pTextOptions, final VertexBufferObjectManager pVertexBufferObjectManager, final ShaderProgram pShaderProgram) {
	super(0, 0, pFont, pText, pTextOptions, pVertexBufferObjectManager, pShaderProgram);

	this.mID = pID;
}
 
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:6,代码来源:TextMenuItem.java


示例18: getShaderProgram

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
@Override
public ShaderProgram getShaderProgram() {
	return this.mShaderProgram;
}
 
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:5,代码来源:Shape.java


示例19: DynamicSpriteBatch

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public DynamicSpriteBatch(final float pX, final float pY, final ITexture pTexture, final int pCapacity, final VertexBufferObjectManager pVertexBufferObjectManager, final ShaderProgram pShaderProgram) {
	super(pX, pY, pTexture, pCapacity, pVertexBufferObjectManager, DrawType.DYNAMIC, pShaderProgram);
}
 
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:4,代码来源:DynamicSpriteBatch.java


示例20: AnimatedSpriteMenuItem

import org.andengine.opengl.shader.ShaderProgram; //导入依赖的package包/类
public AnimatedSpriteMenuItem(final int pID, final ITiledTextureRegion pTiledTextureRegion, final ITiledSpriteVertexBufferObject pTiledSpriteVertexBufferObject, final ShaderProgram pShaderProgram) {
	super(0, 0, pTiledTextureRegion, pTiledSpriteVertexBufferObject, pShaderProgram);

	this.mID = pID;
}
 
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:6,代码来源:AnimatedSpriteMenuItem.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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